How to obtain a S/MIME certificate for e-mail encryption?

There are some issuing bodies that will give you a free certificate, as listed in this Mozillazine article here. One company that offers them for no charge is Comodo and another is startssl as mentioned by Taneli, so those two are two decent possibilities. Personally, I used the Comodo certificate for a while until I had to move to OpenPGP. The Comodo one is guaranteed to work with s/mime compliant applications and their information page mentions thunderbird.

Thunderbird by default has great support for S/MIME signing and encryption. As noted in another mozillazine article, it is relatively quick to setup, although it is advised to set a master password as well to protect the use of your certificates. Importantly, you need to do this before importing your certificate into thunderbird.

You need to import your certificate into thunderbird by going to edit > preferences > advanced > certificates (first screenshot).
You then need to add your certificate to your Thunderbird mail account (see second screenshot) by going to account settings and clicking the security tab. All this is simple to setup and to use once you have your certificate.
The security options are clearly visible when composing a mail (see third screenshot) and you can add your signature or fully encrypt the mail.

These screenshots are from thunderbird 14.
(Note: I have temporarily removed the enigmail OpenPGP addon from my copy of thunderbird so that the menus in my screenshots should look the same as in your thunderbird.)


Okay...So the problem wasn't in XFCE.

It was in the default Xubuntu theme "GREYBIRD". To fix this, simply go to: Settings Manager -> Window manager and change the theme to anything other than greybird or greybird_compact.   https://docs.google.com/file/d/0BxV5lO2quUeqdGV5VktublJlVm8/edit?usp=sharing

My XFCE is now FIXED!


commands from root and commands from sudo

The sudo command by itself does not imply permissions to do something, but instead changes your user ID for the duration of the command.  By not specifying a username or ID, you are defaulting to become 'root' for a short period.  Thus, doing sudo.... or loging in as root and doing the command, are the same thing.
from man sudo

DESCRIPTION
      sudo allows a permitted user to execute a command as the superuser or an‐
      other user, as specified by the security policy.  The invoking user's
      real (not effective) user-ID is used to determine the user name with
      which to query the security policy.

.....
 -u user, --user=user
             Run the command as a user other than the default target user
             (usually root).  The user may be either a user name or a nu‐
             meric user-ID (UID) prefixed with the ‘#’ character (e.g., #0
             for UID 0).  When running commands as a UID, many shells re‐
             quire that the ‘#’ be escaped with a backslash (‘\’).  Some
             security policies may restrict UIDs to those listed in the
             password database.  The sudoers policy allows UIDs that are
             not in the password database as long as the targetpw option
             is not set.  Other security policies may not support this.


I can't install anything from Ubuntu 16.04 software center

Try running all these steps.

Reconfigure unpacked packages

sudo dpkg --configure -a

Fix broken updates

sudo apt --fix-broken install

Finally, cleanup.

sudo apt-get autoclean && sudo apt-get autoremove && sudo apt-get clean

Also, try to stay away from the software center as much as you can, it's very buggy.

Instead try to use Synaptic (sudo apt-get install synaptic) which is superior and miles ahead of your current Software Center.

If you want an easy point and click Software Manager, try the Software Boutique from ubuntu-mate

sudo apt-get install ubuntu-mate-welcome


I have GTA San Andreas on my system, the save file located on ~/Documents folder, because wine link Windows My Documents to $HOME/Documents's Ubuntu.

You can see list of wine desktop integration by running winecfg, then click Desktop Integration tab.

But, if you run the games installed from steam, then the configuration file/saved file etc. should be stored on .local/share/steam, just crawl through it and you're gonna find it for sure.


How to install the taglist plugin in Vim?

Is the ctags command available in your path?

ctags --help should produce the help text.

If it is not you will need to add it to your path. Why it is trying to use a windows exe is beyond me.

Possibly something weird in a vimrc you got from a windows user or something?


Error saying "unable to update ICE authority" while booting

It's possible that you were using a graphical application running as root that has updated your ICE Authority file with root permissions.

Try the following in a terminal session:

sudo chown $USER:$USER .ICEauthority
sudo chmod 0644 .ICEauthority


Just installed Ubuntu, how do I install Internet drivers?

One of the packages you need, dkms, is on the install DVD or USB; insert it and drill down to pool > main > d > dkms and drag dkms to you desktop. Then install:

cd ~/Desktop
sudo dpkg -i dkms*.deb

Now download this package on some other computer and transfer it by USB or similar to your desktop: https://github.com/abperiasamy/rtl8812AU_8821AU_linux/archive/master.zip Right-click it and select 'Extract Here.' Now, back to the terminal:

cd ~/Desktop
sudo dkms add ./rtl8812AU_8821AU_linux
sudo dkms install -m 8812au -v 1.0

Reboot and your wireless should be working.

NOTE: This depends on the presence of build-essential and linux-headers-generic. Please check:

sudo dpkg -s build-essential
sudo dpkg -s linux-headers-generic

If either is not installed, I will edit my answer to propose a further solution.


How do I prevent Ubuntu One indicator from connecting automatically after login?

I solved the problem myself. I had to create an ubuntuone-launch.desktop file in /home/username/.config/autostart with the following text in it.

[Desktop Entry]
Name=Ubuntu One
Exec=/bin/sh -c '[ -d "$HOME/Ubuntu One" ] && ubuntuone-launch'
Type=Application
X-GNOME-Autostart-Delay=30
Icon=ubuntuone
Comment=
X-Ubuntu-Gettext-Domain=ubuntuone-client
Hidden=true
X-GNOME-Autostart-enabled=false
Name[de]=ubuntuone-launch.desktop

That prevents UbuntuOne from automatically establishing a connection after login. (Checked by removing the .desktop file)


I found the answer myself, and am answering it in hopes that it will help someone else.

In regards to using SWIFT and found in the KILO openstack documentation. I assume it holds true for most cases, CEPH, ZFS,etc? "To get the most out of your hardware, it is essential that every disk used in OpenStack Object Storage is configured as a standalone, individual RAID 0 disk; in the case of 6 disks, you would have six RAID 0s or one JBOD. Some RAID controllers do not support JBOD or do not support battery backed cache with JBOD. "


make samba share visible in Windows "Network"

I want to add this here, in case someone else comes looking. The issue with network discovery is the old way was tied to SMB1. The new way WS-Discovery, does not yet appear to be implemented in SAMBA. Windows does not yet support Zerconf so AVAHI does not work for Windows.

Falling back to SMB1 while disabling SMB2/3 is not the answer.

Someone named stilez wrote an article describing the situation here: https://www.ixsystems.com/community/resources/how-to-kill-off-smb1-netbios-wins-and-still-have-windows-network-neighbourhood-better-than-ever.106/

And the article provides a link to a python script wsdd.py(https://github.com/christgau/wsdd/blob/master/src/wsdd.py), which provides the missing functionality. Running the script caused my SAMBA AD servers to instantly appear on Win 10 boxen.


Playlists in mediaplayers not able to trace song files after restarting ubuntu 14.04 LTS

As per your question. I understand that the songs are in partition meant for Windows. Please check whether the Windows partition is listed in mounted partitions using the command:

df -h

In the case of ubuntu 14.04, by default user needs to enter sudo password to mount windows partition.

Or else you can add an entry in /etc/fstab at the end of the file.

See my above image of Disk Utility for example. Here songs are in partition dev/sda5 (See the Device type in image) and the partion is NTFS (see Type in image). I have created a directory mp3 in /opt to mount the partition.

Enter the command:

sudo gedit /etc/fstab

Add the below entry as last line and save the file.

/dev/sda5   /opt/mp3       ntfs    defaults        0       0

You have to change /dev/sda5 to your requirement. After reboot the partition will mount, by default. You don't need to mount the partition each time by using sudo password.

Hope this helps.


How to change KDE Plasma scrollbar width?

I don't know about 17.04, but in 18.04 you can select the Oxygen style, which has a setting for the scrollbar width. The default Breeze does not.

For gtk applications I created my own theme in ~/.themes based on an existing one in /usr/share/themes and modified gtk.css to make the scrollbar larger. This is easier with gtk-3.20 than with previous versions, you just have to increase some min-width in the Scrollbars section, and optionally the border-radius. In 3.18 and earlier you have to increase the stretch dimensions for many elements, in the same file.

Still, I wish developers would just use at least 20 pixels for a scrollbar by default, it's not too much out of 1920 pixels and these are well spent pixels...


Your command is not working because of the |, xargs is running as your regular user since it is working in another process than the one find is running.

find let you execute commands on files found, your command becomes:

`sudo find design -type f -exec chmod 644 {} \;`

P.S: Don't forget the space before \;.


"Failed to open a session for the virtual machine ubuntu 20.04"

The native API dll was not found
(C:\Windows\system32\WinHvPlatform.dll) (VERR_NEM_NOT_AVAILABLE).

This is not ubuntu's issue. Ask Windows support.


How do I maximize the Ubuntu screen when it is a Virtualbox guest?

As fossfreedom indicates in a comment, it is better to install the Virtualox Guest Additions first. See this question to do so: How do I install Guest Additions in a VirtualBox VM?.

After that, if you still have your problem, try changing the resolution of Ubuntu inside Ubuntu:

Go to the Dash Menu (the big Ubuntu button in the top-left corner).
Then type "Resolution" or "Displays" to see the "Displays" app.
Launch it by clicking on it.
You should then be able to augment the resolution.


Cleanup Script Based on Age and a TXT List of Directories

There's no need for any additional program or even a script, find can do this with a single call.

I assume you have a directory tree like this:

.
├── delete
├── GoT
│   ├── artwork.png
│   ├── S10E05_Everybody_dies.mkv
│   └── stream.ts
├── TBBT
│   └── Season_01
│       ├── file.avi
│       └── notes
└── The_Wire
    ├── current.mp4
    └── wallpaper.jpg

The content of the file delete looks like this:

/full/path/to/GoT
/full/path/to/TBBT

This find command will search every of those directories for files with the specified extensions and an age of more than 89 days:

find $(</path/to/delete) -type f \( -name "*.mkv" -o -name "*.mp4" -o -name "*.mpg" -o -name "*.mpeg" -o -name "*.avi" -o -name "*.xvid" -o -name "*.ts" \) -mtime +89

My example's output is:

/full/path/to/GoT/stream.ts
/full/path/to/GoT/S10E05_Everybody_dies.mkv
/full/path/to/TBBT/Season_01/file.avi

Use this to test the command. If it does what you want just add -delete to the end of the command to perform the deletion:

find $(</path/to/delete) -type f \( -name "*.mkv" -o -name "*.mp4" -o -name "*.mpg" -o -name "*.mpeg" -o -name "*.avi" -o -name "*.xvid" -o -name "*.ts" \) -mtime +89 -delete

You can run this last command periodically e.g. using a cronjob (but set SHELL=/bin/bash in the crontab first, cron uses dash by default!) – the keyword @daily could be of use:

@daily find $(</path/to/delete) …

A note on spaces in paths: I really recommend to get rid of spaces in directory and file names in general, but if you really need to have spaces in the paths you might want to set IFS=$'\n' first to allow only the newline character as a delimiter for arguments.


squid on ubuntu server stops working in specific time period for specific websites

ok finally I guess I have fixed the problem. What it seems is there is something wrong with ipv6 addressing design with my isp, because in the specified time zone I cannot ping6 to google's ipv6 but ipv4 works perfectly. hence what I did  is explicitly mentioned in squid.conf to prefer ipv4 and not ipv6. This seems to have fixed the problem. Thank you all fo your time. please see the following url for details
https://stackoverflow.com/questions/12633884/squid3-cant-access-google-com-or-bing-com


The default is gz. The best results I get with 7z though.

Here is the results for a 1.4 Gb virtualbox container:

  Best compression – size in MB:

7z 493
rar 523
bz2 592
lzh 607
gz 614
Z 614
zip 614
.arj 615
lzo 737
zoo 890

Source

  Install

 sudo apt-get install p7zip-full


There was a competition for the wallpapers for 19.04 which went from January 2019 to March 2019. The default wallpaper appeared as an entry from zero-1729. The winners were announced on 22 Mar 2019 and that wallpaper was among the winners. The winning wallpapers were added in ubuntu-wallpapers-19.04.2-0ubuntu1 which was uploaded by Olivier Tilloy. You can see the publish history of all wallpaper packages on launchpad.

Opinion:  I personally love the blue variant which appeared in Ubuntu Studio. :)


You can use cgroups to control how various system resources are allocated.

https://www.kernel.org/doc/Documentation/cgroups/cgroups.txt

Now set some parameters that are available for tuning:

sudo echo 1000 > /sys/fs/cgroup/cpu.cfs_period_us
sudo echo 500 > /sys/fs/cgroup/cpu.cfs_quota_us

Which means "for every 1000 microseconds, allow the / cgroup to consume 500 microseconds of cpu."

More info:

https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Resource_Management_Guide/sec-cpu.html

The commands above are from memory (I'm at home on Mac now), but they give the general idea.

Once you are able to see that indeed cpu is limited to 50% (using top for example to view), then it's left as an exercise for the reader to make these changes persistent.


You have some confusion in your question that needs cleared up first, but it looks like the answer is that you can not do what you want.

First, lvresize is for changing the size of an lvm logical volume, so is not applicable to /dev/md127 because that is a raid array.  Second, you asked to have unallocated space preceeding /dev/md127, which does not make sense because it is a raid array, so there is no space before or after it, in terms of the raid array.  The raid may be built on top of partitions, like /dev/sda1 and /dev/sdb1, so that must be where you want preceding free space.  mdadm can change the size of /dev/sda1 that is used for the raid, allowing you to use parted to shrink that partition, but that only moves the end of the array and partition, not the start.  There is no way to move the start.


Broken package system using Ubuntu 18.04 after running software updater

It's right there in your output: A corrupt package.
    Unpacking linux-image-4.15.0-111-generic (4.15.0-111.112) ...
    dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt

Delete the corrupt package from your archive:
sudo apt clean linux-image-4.15.0-111-generic

Re-download the correct package:
sudo apt upgrade


Dual AMD EPYC 7742 cpus show only 255 threads

Well, lscpu is telling you that cpu 255 is offline (inactive):

On-line CPU(s) list:  0-254
Off-line CPU(s) list: 255

You could try to bring it back online by

echo 1 > /sys/devices/system/cpu/cpu255/online

After some clarification in the comments, it's evident that to get all CPU's in the latest AMD EPYC processors to work, you need a more recent Linux kernel than the one that ships with older 18.04 LTS releases. According to this review the minimum recommended kernel is 4.18. Also make sure you have the latest firmware on your motherboard.


Can I delete the Windows 10 boot partition without losing my documents and data?

This partition is weird, an EFI boot partition is max. ~1G and is never in NTFS.
This must be a data partition, spin up the live USB OS run on the terminal
mount /dev/sda2 /mnt
cd /mnt
ls

If it fails do apt install -y ntfs-3g and retry
If it is empty you can just delete it, othewise have a backup before deleting


When installing the wireguard VPN software, it installs a wireguard dkms kernel module. This was fine prior to Ubuntu 20.04. Since 20.04, this kernel driver is already included, so dkms status shows us this error...

nvidia, 435.21, 5.4.0-26-generic, x86_64: installed
wireguard, 1.0.20200413, 5.4.0-26-generic, x86_64: installed (WARNING! Diff between built and installed module!)
wireguard, 1.0.20200413, 5.5.4-050504-generic, x86_64: installed

The fix is to remove the wireguard dkms kernel driver when using 20.04...

sudo dkms remove wireguard/1.0.20200413 --all # remove driver from all kernels

dkms status should now show...

nvidia, 435.21, 5.4.0-26-generic, x86_64: installed

Then reboot and retest your VPN connection.


My Ubuntu Software Center Window Freezes?

Uninstall Software Center:

sudo apt-get purge software-center

(IMPORTANT)Remember to remove the cache

sudo rm -r ~/.cache/software-center

Reinstall Software Center:

sudo apt-get install software-center


External Keyboard Space Key Somehow Changed to Another Key

Well, here's my answer.  Do you need your sign, LOL

It happens to the best of us. In all my years of troubleshooting computers, I developed a sense of where to start looking and where to go next.  I always check the plug on computers that "don't come on".  I got paid to travel over  200 miles on an emergency run to press the power button on the monitor of a computer one day.

  I hate to ask the obvious, but did you test another external keyboard
  with it just to confirm that you don't have an issue with the keyboard
  itself? – Buck 17 hours ago


How can I prevent the screen from being locked after resuming from suspend

I did the following in terminal and it worked for me:

sudo apt-get update; sudo apt-get install dconf-tools
dconf-tools

(
the equivalent terminal command is:

 gsettings set org.gnome.desktop.lockdown disable-lock-screen 'true'

)

Here's a picture of mine:


Add binary to ubuntu applications when no install or configure folder in tar.gz

Did you follow the installation process from the Gephi website ?

https://gephi.org/users/install/

If you have java installed, you just have to use the command

./bin/gephi

from the folder where you untar the file

you can also just double click on this same file from the file manager


Seems to be packaging issue. A can confirm it on my clean installation of Artful.

Below is not recommended, but you can download dependendent package from Xenial manually and then install xplayer:

wget http://mirrors.kernel.org/ubuntu/pool/universe/c/clutter-gst-2.0/gstreamer1.0-clutter_2.0.18-1_amd64.deb
sudo dpkg -i gstreamer1.0-clutter_2.0.18-1_amd64.deb

sudo add-apt-repository ppa:embrosyn/xapps
sudo apt-get update
sudo apt-get install xplayer


Does my computer have 1 or 2 CPUs? (cpuinfo and lscpu differ)

This is consistent with having a single processor containing a single core which contains two execution threads through hyperthreading. Thus you have two logical processors, but they share most of their resources (instruction decoding, arithmetic, etc.). This allows some parallelism — one thread can progress while the other one is blocked (e.g. waiting for a memory access) while keeping the hardware cost down (fewer components than two independent cores).

Look at the rest of the output from lscpu and the content of /proc/cpuinfo. See So what are logical cpu cores (as opposed to physical cpu cores)? for an example.


Bluetooth Headset - Cannot connect to HSP/HFP

A solution seems to be worked on (I hope), I've been following this bug report on Launchpad, but hasn't been very active.

If a solution comes about I'll update my answer.

https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1549163

UPDATE 6/03/17 The bug was given has fixed. I suppose we just have to wait until we receive an update.


Having problem installing Wine ( Ubuntu 14.04)

Maybe try to do it via terminal try to run the following. This will update your system and update dependencies and then install wine

sudo -i
apt-get update
apt-get dist-upgrade
apt-get install wine


Terminal freezes on running apt-get or vim

Changing the MTU value on ec2 solved it for me...

sudo /sbin/ifconfig eth0 mtu 1492


Yes, it is possible.
Just shorten your partition, create a new one, and move your data there.
Or if you want to keep Windows 7 (which I recomend you, at lest a week till Ubuntu works fine), just don't erase the windows partition while installing Ubuntu.

While installing, create 2 partitions: 1 ext4 for Ubuntu, and 1 swap (with aproximately the half of your RAM). It's very important that you select manual partitioning or something like that, in the Ubuntu installation.

Your disk should be for example like this:

400 GB Windwos 7
500 GB Your DATA
8 GB (half of your RAM) SWAP
92 (the rest) EXT4 (UBUNTU)


Merging partitions that are not adjacent

As @waltinator wrote, you can't merge those partitions into one. But you can use the Windows disk manager to create a new Windows drive from that partition.


Cannot access Ubuntu when I leave it alone for a while

Open Dash and search for Brightness and lock
In the window, set screen off when inactive for to never


you can use top or htop which both are terminal system monitor, to get info of a single PID call them with:

top -p $PID
htop -p $PID

where $PID is the process you want to monitor


Using bash for loop and parameter expansion:

for i in *.mp4*; do
  mv "$i" "${i%\?*}"
done

The parameter expansion is mentioned in the man page as

  ${parameter%word}  Remove  matching  suffix  pattern.

It removes everything after the last ? included.


gwenview - phonon backend plugin could not be loaded

After some tries, I have realised that there are separate packages for phonon qt5.

The installation of the following packages solved the issue on my system:

sudo apt install phonon4qt5 phonon4qt5-backend-gstreamer phonon4qt5-backend-vlc

Now, the installation of these packages should probably be recommended from the gwenview package, so this is probably a packaging bug.


A wireless USB receiver that works out of the box on Ubuntu

The one I have worked O-O-B. The D-Link DWA-125/RE

I don't have any others to test with. I like this one because I can also host an AP with it.


I have the same notebook and had the same problem.  I fixed it, in Ubuntu 15.04 and 16.04-alpha (I use the MATE flavor of both), by including only a line for model=,headset-mic in /etc/modprobe.d/snd-hda-intel.conf.  I.e.:

$ cat /etc/modprobe.d/snd-hda-intel.conf
options snd-hda-intel model=,headset-mic

The comma character makes it apply to the 2nd audio device which is the Azalia one that controls the internal headset.  The 1st one, the HDMI/DP one, will default and doesn't seem to need the "hp" from that ALSA configuration you found, but I haven't tried my HDMI/DP.

The fix in the kernel has recently been made.  The problem was reported to the ALSA developers and a fix is now in the official 4.5 kernel: https://git.kernel.org/cgit/linux/kernel/git/tiwai/sound.git/commit/?id=f883982dc1b117f04579f0896821cd9f2e397f94

The fix has also been requested to be included in Ubuntu 16.04: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1550765

I think the fix has also been backported to a few of the maintained older kernel versions.

With a kernel with the fix, you don't need the snd-hda-intel.conf file.

Without a fixed kernel, I also have a very annoying weird squeaky background noise in the headphones.  This has also been fixed in the kernel in the same commit, but with an older kernel without it you can manually fix it in a couple ways depending on the kernel version.  I don't know what version is the boundary.

With Ubuntu 16.04-alpha's 4.4.0 kernel, I fixed it by disabling Loopback Mixing as recommended by an ALSA developer, e.g. via alsamixer.  (But if the kernel fix makes it into the release of Ubuntu 16.04, this won't be necessary.)

With Ubuntu 15.04's (and maybe others') older kernel that doesn't have Loopback Mixing for our device, you can use the white_noise_fix.py script from http://xps13-9333.appspot.com/root/usr/local/bin/white_noise_fix.py, as described at http://xps13-9333.appspot.com/#background_noise and Noise from headphones.  You'll probably want to run it at boot time, which I do by invoking it from /etc/rc.local, i.e. add this line to /etc/rc.local: /usr/local/bin/white_noise_fix.py

With white_noise_fix.py, when my notebook resumes from sleep, the background noise comes back, so I manually run sudo /usr/local/bin/white_noise_fix.py.  I think you might be able to automate this with a pm-utils script in /etc/pm/sleep.d but I haven't tried that.

You might also want to do what those articles I linked say to do to disable the power saving mode of the audio card to prevent pop noises.  I did this in Ubuntu 15.04 but I don't really know if it was needed.

(I'd also found the configuration you showed, and it didn't work for me either.  It was from an Arch Linux user, and I think the lines other than the model option one interfere with what Ubuntu already does for the audio device.)


In 14.04 Packages/reboot warnings in motd take an additional login to show up

This is filed as bug 1368864 in Ubuntu's tracker.

The fix requires modifying a pair of files:

The first is /etc/pam.d/login

Find these lines:

session    optional   pam_motd.so  motd=/run/motd.dynamic noupdate
session    optional   pam_motd.so

and change them to:

session    optional   pam_motd.so  motd=/run/motd.dynamic
session    optional   pam_motd.so noupdate

Next, open /etc/pam.d/sshd

Find these lines:

session    optional     pam_motd.so  motd=/run/motd.dynamic noupdate
session    optional     pam_motd.so # [1]

and change them to:

session    optional     pam_motd.so  motd=/run/motd.dynamic
session    optional     pam_motd.so noupdate # [1]

The reason you need to modify both files is because, if you only change login, then any logins done via SSH will fail to display the system information the first time you log in.


Need to install Canon ip2600 printer using 12.04

After trying many things I finally stumbled onto this page which solved my problem:
http://www.ppsolution.net/en/articles/linux/ubuntu_driver_printer_canon_ip2600.pdf

I used the shell script method and the printer installed with no problems.
They have not only the explanation of the problem but the solution. They deserve some "attaboys".


How to create a PATH environment variable for Android Studio?

This question is related to some of the other posts on askubuntu.com
The following might be of help in answering your questions about the PATH environment variable in general as well as your specific Android studio setup.

General PATH related questions on Linux:

What is $PATH

Add a directory to your path

There are also some old Android SDK path questions that may help you on askubuntu. You can find them by searching askubuntu for "android sdk path"


autofs is not able to mount the remote folder

Add the line

automount: files

to the file

/etc/nsswitch.conf

unless, of course, it is there already.

Next, enable autofs with the command (I think):

# systemctl enable autofs

You can check enabling with

# systemctl is-enabled autofs


How can I remove the first whitespace of every line of a file?

You can use sed:

sed 's/ //' file > newfile

or, if you want the changes to be made directly to the original file, you can use the -i command line flag - either along with a backup file

sed -i.bak 's/ //' file

or without creating a backup if you prefer

sed -i 's/ //' file


Cant create a file and write to it from a .sh script

What exactly is $artifactId ?? If I try to run your code by modifying it like this, it work perfectly fine, so there must be some problem in your cd command

facesConfigContent="<?xml version='1.0' encoding='UTF-8'?>
<faces-config version=\"2.2\"
          xmlns=\"http://xmlns.jcp.org/xml/ns/javaee\"
          xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
          xsi:schemaLocation=\"http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-facesconfig_2_2.xsd\">
</faces-config>"
facesConfigFileName="faces-config.xml"
cd ~/Desktop/
echo ${facesConfigContent} > ${facesConfigFileName}


Go to System Settings, and under the Hardware section click on Keyboard. You'll see Shortcut settings there, and Alt+F4 should be under "Windows."


Also maybe try update-grub and then grub install onto the main HDD. The Ubuntu installer might have found the recovery partition only. sudo update-grub and sudo grub-install. Report back if it helped.


You could try command sudo apt-get install --reinstall apache2-bin - int will install a bunch of modules and recreate the directory.


Ubuntu installation problem (Secure boot)

If your windows is installed under UEFI, you will have to install Ubuntu under UEFI too to make dual boot work.

To get over the boot problem, you will have to disable Secure Boot in UEFI setup .. in what in the old days was called bios-setup .. not disable UEFI itself.


How to check the number of fields given to the `read` command?

The best way to check if you have received a value in your varTWO is to check if varTWO is empty as follows:

read varONE varTWO
if [[ $varTWO = '' ]]; then
    echo "failed"
fi


Layer and toolbox window doesn't appear when I reopen GIMP after closing it using the launcher

Yes. Use single-window mode:

  GIMP 2.8 introduces an optional single-window mode. You can toggle
  between the default multi-window mode and the new single-window mode
  through the Single-window mode checkbox in the Windows menu. In
  single-window mode, GIMP will put dockable dialogs and images in a
  single, tabbed image window. The single-window mode setting is of
  course preserved if you quit and start GIMP again. Single-window mode
  removes the necessity for users of having to deal with multiple
  windows.

https://www.gimp.org/release-notes/gimp-2.8.html


Subversion 1.7 on 12.04 precise: libsasl error, compiling from source?

This is a bug. One would hope any "obvious fix" would be added to the PPA immediately. One workaround I have seen (from one of your links) is to just configure it with the --without-sasl flag but you'll need to mess around with the build scripts for that.

Here's the standard way of building the package from repo sources. If your PPA has source, it will use that source. You'll know fairly quickly if it worked because the directory will be subversion-1.7...

This also gets the dependencies (through build-dep).

sudo apt-get build-dep subversion
apt-get source subversion
cd subversion*
dpkg-buildpackage -us -uc -nc
dpkg -i ../subversion*.deb

Edit: Just got to the end of your macports link. Looks like there's a fix in libsasl. Find a separate PPA for that, or build that and you might be okay.


From the sudo man page:

 -E          The -E (preserve environment) option indicates to the security policy that the user wishes to preserve their existing environment variables.  The security policy may return an error if the -E
             option is specified and the user does not have permission to preserve the environment.

Without knowing what the error you were getting when you didn't include the -E option in 14.04, I'm not sure how to answer your real question.. but it probably had to do with environment variables you already had for your local user and in 16.04 those same variables are either not needed or already present in the root user.


What are your settings in Appearance->Fonts->Rendering? This may be an OS setting, not the reader's fault.

OP's answer: Disabling "sub-pixel rendering" in Appearance -> Fonts -> Rendering "fixes" the blur.


Nvidia graphics problem with suspend and resume, system hangs

Does that pointer move ? Is numlock light blinking ? Are you running unity or gnome ?

here is some howto for debugging problems with suspend

https://wiki.ubuntu.com/DebuggingKernelSuspendHibernateResume


How does one detect when the currently visible workspace is switched?

The question marked as providing an answer does indeed provide an ample solution to my specific problem, but is a slightly narrower question. In the interests of the community, I shall summarise the parts relevant to this broader question, and in a more general manner:

The tool one requires is wmctrl (installable through apt-get install wmctrl). wmctrl -d gives information about the current desktop, including (DG) the total size of the virtual desktop (i.e. the combined size of all workspaces) and (VP) the absolute position of the top-left corner of the current workspace relative to the virtual desktop. The column of the currently active workspace can be determined by dividing the x-coord of VP by the horizontal part of the current screen resolution. The row of the current workspace can be calculated using the y-coord of VP and the vertical part of the current resolution. To detect a switch, one should use a while loop to constantly check the row and column of the current workspace and determine if it has changed / meets a certain test.


How to direct Ubuntu to use USB connection for Internet

To use any DataCards on Ubuntu for Internet

sudo apt-get install wvdial

run these:
lsusb
modprobe
wvdial
modprobe usbserial vendor =0x0eab product =0×9357
(check the output of lsusb for it)
open editor for the file /etc/wvdial.conf (you can run the command gksu gedit /etc/wvdial.conf in a terminal) and enter the following lines and save:

  [Dialer Defaults]

Init1 = ATZ

Init2 = ATE0V1

Modem Type = Analog Modem

Baud = 115200

New PPPD = yes

Modem = /dev/ttyUSB0

ISDN = 0

Stupid Mode = 1

Phone = #777 // this is for dialing e.g for reliance

Password =

Username =

To avoid modprobe everytime system boots write a simple script i.e on a simple text file and save it with the name modprobe-1.sh , make it executable by running chmod +x modprobe-s.sh and save this file in /usr/bin or in /bin after that just run modeprobe-1 ( it will work like custom command).

  #! /bin/bash

  echo pwd | sudo -S modprobe usbserial vendor =0x0eab product =0×9357

  echo pwd | sudo -S wvdial

(where pwd is your sudo password)


How to cleanup entries in OpenWith List?

Remove ~/.local/share/applications/mimeinfo.cache

rm ~/.local/share/applications/mimeinfo.cache

Restart Nautilus…

nautilus -q

Credit for solution


Ubuntu 11.10 has taken the necessary step up updating from Gtk2 to Gtk3. Most of the system is noticeably slower then previous releases and requires a faster computer to run smoothly (does not mean you cannot run).

With your computer specs I would recommend that you run Ubuntu 10.10 (change the release on the dropbox Download Options) or running any Ubuntu alternatives with a lighter desktop environment, ie: xubuntu or lubuntu.

If you still think Ubuntu is the way and 11.10 is the release to go then you should be for sure using Unity2D instead of the default Unity3D.

There are some tweaks that you might do and get some very limited boost in performance, but those take more work than should and the difference in the end will barely be noticeable


BIOS version on XPS8700 and Updating Dell BIOS via Ubuntu

Is there any compelling reason to upgrade to anything more recent?

I wouldn't say there are compelling reasons, however performing an upgrade might be wise. I had a Dell laptop some years ago and I upgraded its firmware because they improved the power management and it showed.

Therefore, you should check out the Dell website for the changelog and then decide for yourself. Upgrading firmware and other "low-level" software is usually a good idea, but the final decision is yours.

  What is a decent way to update the BIOS on this system to a more recent one?

The Ubuntu community help contains a good explanation of the process. In particular, the Dell Bios page explains how to perform the upgrade using FreeDOS. Here are the relevant steps:

  Follow the directions here to create a FreeDOS USB drive: http://chtaube.eu/computers/freedos/bootable-usb/

  After you've done that:

  Eject the USB drive, then re-insert it so you can see the new FreeDOS file system.
  Copy your BIOS update file to the drive.
  Reboot, press F12 for the one-time boot menu, and boot from the USB Storage Device.
  Choose "fdos".
  Choose "4 - Load FreeDOS without drivers."
  Execute the BIOS update.

Regarding the last step, executing the .exe file is similar to what you would do in the terminal. Assuming the file is called upgrade.exe, you will run this at the FreeDOS prompt:

upgrade.exe


I'm not sure that this topic is for askubuntu.com, but will try to answer it.

You have proxy_pass http://localhost:8080/; which is something that nginx expects to work and proxy all the requests there.
Maybe you have apache too and its not running after the servers reboot.

Try start it using : service apache2 start and see if you have "It works!" page!


If you're using a recent version of Ubuntu, the built-in ath5k driver should kick in and work. If it doesn't, it might be getting locked out by older ath drivers.

Click here to see how to block the old drivers.

ath5k will generally deliver better results than madwifi. And madwifi is better than ndiswrapper IMO.


Change the opacity of a cut selection (nemo.css)

A workaround would be to create a small code inside theme folder exactly at:

sudo vim /usr/share/themes/Ambiance/gtk-3.0/apps/nemo.css

note: change vim with your favourite text editor

.nautilus-desktop.nautilus-canvas-item:selected {
color: @theme_selected_fg_color;
background-image: none;
background:#778196;
}

Now we should give gtk-main a path to our file ,open the file at

sudo vim  /usr/share/themes/Ambiance/gtk-3.0/gtk-main.css

add to the file

@import url("apps/nemo.css");

Save & close it.Reboot. That's it, done!


If Ubuntu loads well on your TV, but not on the monitor, hook up both together and configure the monitor while looking at the TV using the system settings - screen display.  Once done configuring, shut down the computer, remove the TV and boot the computer again.

This will then give you a working system on the monitor.


Installing Offline Ubuntu 16.04 how to load apt-offline & install <14e4:43b1 system updates install

By using Ubuntu, You can install Apt-Offline using the following command:

  sudo apt-get install apt-offline

If you need any more help, here is a guide in order to help you to Fully Update And Upgrade Offline Debian-based Systems


Your hard drive should be /dev/sda. If it is not, change to the hard drive number.
type sudo fdisk /dev/sda
Then type "p" to print table. Look for linux partition id (83) and swap. It will have a nuber after it, like sda6. To avoid any changes to your partition, make sure to tyoe "q" to exit. type "n" to show all option. It is self explanatory, but dangerous if you mess up.The NTFS is the windows partition.


The file seems to be owned by root, so first we need to make sure the file is owned by lorenzo. We need to do it as mentioned by @waltinator, using this more specific command in a terminal:
sudo chown lorenzo:lorenzo Examples/AliceTPC/plot_gas.C

But please make sure you need only this file to be owned by lorenzo. If you need the whole AliceTPC folder to be owned by lorenzo, then run something like this:
sudo chown lorenzo:lorenzo Examples/AliceTPC/* -R

This will recursively change the owner to folder itself and every single file inside the folder.
That might not be sufficient and you yet need to check the file's permissions with something like this:
WAIT: Just make sure you run this in the proper files.
chmod 777 FILENAME

Or this for every single file.
chmod 777 *

If the element we wish to change permissions is a folder then run:
chmod 777 AliceTPC -R

Then you can edit any file with your favorite text editor, in example:
nano plot_gas.C

No need to use sudo to do this, unless the files should be root owned.
Please make sure you use the proper file permissions when running the chmod command on your files.


Installing wine and steam (linux version) simultaneously on the same machine with Ubuntu 18.04?

From the Debian bug report about this behaviour:

  This is a bug in Steam, which I think is specifically in the bundled copy of SDL 2.0.6 that it uses. It will crash in this way on everything that isn't a Debian derivative. On Debian derivatives, until recently a Debian-specific patch downgraded the response to failing the precondition check to a warning (this was done "temporarily" 11 years ago). "export DBUS_FATAL_WARNINGS=0" before running Steam would do the same thing as that patch. This will avoid the crash and just spam warnings instead, unless you are unlucky with the contents of uninitialized memory, in which case it might still crash.

So, the simplest workaround until this is fixed on the Steam side would be to run:

export DBUS_FATAL_WARNINGS=0

before running Steam from the command line. Alternatively, you can set this variable permanently for your session.


Can't Logout in Ubuntu 12.04 x64 with Nvidia drivers

The Nvidia drivers seem to have problems reloading during X server restart.

I faced this very same issue myself, using a GT520 card. The answer to me at least was posted on this forum:

For now, you can go around the issue by setting the Nvidia driver to persistent mode:

nvidia-smi -pm 1

Fixed it for me.


If you don't need a specific version of lilypond, just execute the following to install a stable version of lilypond:

  sudo apt-get install lilypond

Alternatively, use the software center or synapticto install lilypond.

The Ubuntu 14.04 package repository contains lilypond 2.16. The upcoming 14.10 will likely have lilypond 2.18.

In general, installing software "manually" (as you've tried) is only required in certain cases: for example, if you require a specific version that isn't available in the ubuntu software repositories, or if you want to install anything that's missing completely in the repos. So, it's usually the easiest way to check the software repositories (via Software center or synaptic) first.


grub fails to boot after Windows upgrade

Windows 10 Anniversary Update, and the more recent Windows 10 Creators Update, have a really bad habit of wiping out Linux partitions on MBR disks. Sounds like you're a victim.

Recovery is possible, but it can be tricky.

Boot to the Ubuntu Live DVD/USB.

Open Software & Updates and make sure that all of your software repositories are enabled.

In terminal...

sudo apt-get update # update the software database
sudo apt-get install testdisk # install testdisk
man testdisk # read the manual
sudo testdisk # start testdisk

You can also get specific instructions here: http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step

Update:

Your missing Ubuntu partitions were between partitions 4 and 5, and went from 1015GB to 1983GB-1.


Annoying file system check, when starting the computer with WOL

I changed mine to run once every month with this command:

tune2fs -i 1m /dev/sda1

You can find your device name with the mount command.


I suggest you add a ppa so that the program gets updated regularly:

sudo apt-add-repository ppa:smathot/cogscinl

Say yes/press enter to accept any requests.

sudo apt-get update

wait for it to complete, then:

sudo apt-get install zotero-standalone

This will install the program.


After installation we need to configure ushare to meet our network settings. This can be done using the ushare configuration assistant

sudo dpkg-reconfigure ushare

We can also set configuration options in /etc/ushare.conf. For streaming to an XBox 360 make sure this file contains the following lines:

USHARE_ENABLE_XBOX=yes # for Xbox360 support
USHARE_ENABLE_DLNA=no # only needed for Playstation 3

The ushare service can then be started or stopped with

sudo service ushare start # stop for terminating

or by running ushare from the command line

ushare -D --name=<name_of_my_stream> --content=<path_to_mediafiles>

For further options see also the project home page at geekbox.
There is also a GUI to set up shared directories and start the stream (stream2ip).
If configured you can also use the ushare webinterface for configuring stream directories:  http://localhost:49200/web/ushare.html


Ubuntu 16.10 - why the package update is failing?

It's failing because archive.ubuntukylin.com is unreachable:

$ wget http://archive.ubuntukylin.com:10006/
--2017-02-26 22:15:19--  http://archive.ubuntukylin.com:10006/
Resolving archive.ubuntukylin.com (archive.ubuntukylin.com)... 114.67.37.1
Connecting to archive.ubuntukylin.com (archive.ubuntukylin.com)|114.67.37.1|:10006... failed: No route to host.

You can avoid the error if you disable the repository in question since it doesn't contain anything important to run Ubuntu. One way to do that would be:

grep -lZEe '^[^#]*archive\.ubuntukylin\.com' /etc/apt/sources.list{,.d/*.list} | xargs -r0 -- sudo sed -i -re '/^[^#]*archive\.ubuntukylin\.com/s/^/# /'


You're probably running into the problems encountered when you don't use application specific passwords https://support.google.com/mail/answer/1173270?hl=en


By using the opensource nouveau driver that is installed by default, swapping graphics cards should not (usually) be an issue.

However, since you have installed the nvidia proprietary drivers, then you should deactivate the nvida driver from the Additional Hardware window followed by renaming any generated xorg.conf file:

sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup

Swap you graphics card, reinstall the nvidia-current driver (the recommended driver) from the Additional Hardware window.

Finally run nvidia-settings to customise your specific monitor(s) settings such as resolution etc.


Clamav scan finds PUA.HTML.Exploit.CVE_2014_0322

This one is Windows only; so yes it is a false positive when using a non-Windows system.

This site shows what other scanners show. Only ClamAV complains, all the others do not see a problem. That might be due to ClamAV using a better definition but it was noticed a year ago so that also is a big indicator it is a false positive.


I cannot update my computer with the GUI updater due failure of internet

It looks like your /etc/apt/sources.list file might have duplicate entries in from what I can see in the pastebin. I would manually remove the lines using a text editor like nano or gedit.

And the failed to download repository information is being caused by having a non existant repository in the sources.list file - it looks like that the extras repository doesn't exist for Xenial yet. Removing the line
deb http://extras.ubuntu.com/ubuntu xenial main
should fix updating.

I would also do 'apt-get clean' as well afterwards.


Ubuntu 18.04 GNOME looks weird after changing display managers

It seems your GTK theme got switched to Adwaita, the default GTk theme for GNOME (Ubuntu doesn't use this one by default, 18.04 has Ambiance and Radiance). So you just need to change your GTK theme to something you like.

To do that first install (GNOME) Tweaks by running the following command in Terminal

sudo apt install gnome-tweaks

Then launch Tweaks and change the application theme in the 'Appearance' section.


To have global autostart you have to copy this file to /etc/xdg/autostart by the below command:
sudo cp /usr/share/applications/syncthing-start.desktop /etc/xdg/autostart/

and reboot.


How can I get a more traditional drop-down like menu for Unity?

Cardapio is a nice middle-ground between the old and new interfaces:

This screencast shows it in action. The custom launcher available from Web Upd8 makes it quite convenient to use.

It's currently only available from a PPA:

sudo add-apt-repository ppa:cardapio-team/unstable
sudo apt-get update
sudo apt-get install cardapio


Sudo command not found (su login not working)

I think the only possibility left it that one of the directories leading to sudo doesn't have the other executable bit set, so although the directory is in your path, bash can't find the binaries inside. When you try with full path, then of course you get the permission denied message. This problem with the directories is likely also the cause of your original problem with the low-graphics mode thing.

So please try

ls -ld /usr
ls -ld /usr/bin

both of these should report:

drwxr-xr-x

permissions. If not, then it is your problem and you should set those permissions for those folders, and likely for some other folders also. But you can't do it from your installation, because you don't have access to sudo. So either boot into recovery mode or use a live CD to correct the errors. (Which were likely caused by a wrong chmod command.)


Ubuntu Server 16.04 name resolution does not work after joining a Windows domain

We have a Windows DNS which means the DHCP is registering DNS for the computers. As we have a static IP address on the Ubuntu server it does not have a DNS registration for it.

So only a very small step was missing: make a static DNS record for this Ubuntu server. Problem solved. The name resolution is working from Windows machines on the network. :)


Using unity-tweak-tool, you can change the theme, which is the problem, not the Gnome Desktop. The theme was installed as Gnome Desktop uses it by default. It is called 'Adwaita', the default theme for Unity is 'Ambiance'. You also need to go to Window Controls, and change it from 'right' to 'left'. Note that these change will affect Gnome as well.

No reinstalling required. You can even reinstall Gnome, if you like.


Gvim GLib-GObject-WARNING in ubuntu 13.10

This doesn't fix your issue, but I tried removing and installing vim-gnome and had the same problem.
So, I removed vim-gnome and installed vim-gtk and it works fine.


Clean Ubuntu 13.10 64 bit install crashes on NVidia 8400M G 128 MB

I have exactly the same problem. Clean Ubuntu 13.10 32-bit install. After a few seconds the screen becomes garbled with flashing parts, and the laptop freezes. I have an Acer Aspire 5520G with Nvidia GeForce 8400M G.

For now, I've found installing bumblebee helped, but my screen only runs in a much lower resolution than it should (1024x768). I don't know how to solve that yet. At least, it works and I can use my laptop.

The command I used in the terminal was:

sudo apt-get install bumblebee bumblebee-nvidia

Obviously, you need to be connected to the Internet to run it. I'm hoping to find out how to set the resolution to 1280x800.


Ubuntu prompts me for a username and password when i didn't make one for Ubuntu

Change the password in recovery shell and set up the auto-login for lightdm greeter (aka login screen)

1) When you boot, go to "Advanced options for Ubuntu" and select recovery mode.

2) Once you see the menu below, select root shell, execute the following command mount -o rw,remount /.   Next, change your password with passwd username, where username is your actual username. You will be prompted to enter new password.

3)  Next execute the command nano /etc/lightdm/lightdm.conf to edit the configuration file for the login screen (lightdm greeter). You will need two lines, [Seat Defaults]  and autologin-user=username where username is your actual username. Refer to the image below.

4) All done! Reboot


portable monitor isn't detected after sleep

I have the same issue. Here are some things I tried:

Updating firmware via Ubuntu Software Center
Turning it off and on again
Plugging and unplugging
setting autosuspend to -1 in /etc/default/grub

It finally worked after I unplugged the power, plugged the USB-c dock into the power dock and heard the "click" sound which meant it had been mounted on my machine. I then unplugged it and plugged it into the USB-c port on the right side of the machine and everything was detected. I will test it again tomorrow. If this is the solution, then Dell has serious issues.
WHOSE CRAZY IDEA was it to have only one port?! I hope that person has been sent away.


How to use Tamil typewriter keyboard in ubuntu?

Install the ibus-m17n package and relogin. Then you will find a few additional Tamil input sources in Text Entry. Hopefully one of those, e.g. "Tamil (typewriter (m17n))", is what you are looking for.


Can I stream Netflix to Ubuntu via a Mac?

While not exactly using the MAC - I have had success using PlayON media streamer, which will pull the netflix stream, decode it, and then through UPNP magic give you a streamable connection which you can open in VLC to watch the transcoded stream.

http://www.playon.tv/playon

Its not free, its not open source, and if you have less than 1 GB of ram expect your transcoding sessions to fail constantly.

again, please note, that playon has a licensing fee, or basically a yearly subscription cost. Runs natively on windows (parallels may come in handy here. I can attest I've had quite a bit of joy using it in a virtual machine just for grins. BARE MINIMUM of 1GB of ram)

also, did I mention you'll need some beefy video ram or system ram to handle the transcoding process?


You can install Ubuntu Tweak if you do not have it already. Then when you start it go to Gnome settings and on that tab you can change Ubuntu Logo. That will change only your logo and not a whole theme.


Blacklisting Nouveau not working on Ubuntu 14.04

You may need to edit grub to prevent the kernel from ever loading nouveau at boot. Run the following commands:

cp /etc/default/grub ~/grubbackup
sudo sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="/GRUB_CMDLINE_LINUX_DEFAULT="nouveau.blacklist=1 /g' /etc/default/grub
sudo update-grub

Reboot.

The file should look like this:

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="nouveau.blacklist=1 quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

You can run the following command to verify the contents of the file to be safe before you reboot:

cat /etc/default/grub

If you need to make changes, you can run the following command to edit the file:

sudo nano /etc/default/grub

Press CTR+o to save the file and then press CTRL+x to exit nano.

Also, don't forget to update grub after making changes:

sudo update-grub


How to uninstall Paper icon theme in ubuntu?

Based od install-icon-theme.sh, it's in standard location...

here:

/usr/share/icons/

or

~/.local/share/icons/

just delete the folder containing the icon theme (folder should be called "Paper")


How to prevent command execution edited with fc

fc will not execute the command if the editor command did not exit successfully. In Vim, there's a command for forcing this: :cq:

                                                        :cq :cquit
:cq[uit][!]             Quit Vim with an error code, so that the compiler
                        will not compile the same file again.
                        WARNING: All changes in files are lost!  Also when the
                        [!] is not used.  It works like ":qall!" :qall,
                        except that Vim returns a non-zero exit code.

So, when you don't feel like running the command, use :cq to quit instead of :q!. It might be possible to make Vim do this if you didn't make any changes, but that will probably be more annoying to get to work reliably than just using :cq.


maybe it's off topic to you but I think that your specific problem can be avoided by rethink the service :

why bother booting with NFS ?

You can try to boot with iscsi (in a read only mode to allow more than one connection to the image) and then use iscsi or nfs (ipv4) for the user shares if you need to. You can achieve this with the ipxe project.

Another way is to use squashfs+tmpfs and not to bother so much with shares during the booting process of the system and then do remounts depending on the user authentifications (however this have a higher memory consumption on the client side).

Hopes that helps you.


How to make package manager recognize libs that were compiled manually?

The answer is simple (but it is more complicated to follow it):

you have to create a debian package of the code you compiled (OpenCV 2.4) and install that package. This way the package manager knows that the package exists.

Guides on how to create a package are:

https://wiki.ubuntu.com/PackagingGuide/Complete

http://developer.ubuntu.com/packaging/html/

http://developer.ubuntu.com/resources/tools/packaging/

There also seems to be a fake version of the above: create a package that pretends to be OpenCV 2.4 and install this package. How to do this is explained here


The tutorial you are following is for windows but you may follow that as there is not significant change in how dosbox works in Linux (except for path of the files which I have explained below).

There is no 'C:' drive or any other windows drives in Ubuntu. The root directory is '/' (like C: drive in windows). Normally your files are downloaded or saved to /home/user or /home/user/Desktop where user is the name you have given to your account.

Open the directory you want to mount using a file manager(like nautilus) and note down the path shown in the properties of the folder.
Now in dosbox type

mount c: <path>

Example:

mount C: /home/xyz/TC

Additional Info

If you want the directory to be mounted at dosbox startup.

Goto your home folder (i.e. /home/user).
Open dosbox.conf (It should be there).
At the end of the file add these lines, save and close the file.

[autoexec]
mount C: <path>

Note: Any command under [autoexec] will be executed at startup

Optional

You can use '~' instead of '/home/user'

Example:

mount c ~/TC


ENCYRPTED partition-wide persistance in Ubuntu

In my opinion the path of least resistance would be to use a regular live USB flash drive with persistence enabled, create a LUKS container and mount it when needed...

To create a LUKS container, here named Vault.dat, open it and format it ext4:

dd if=/dev/urandom of=Vault.dat bs=1M count=1024
cryptsetup luksFormat Vault.dat
sudo cryptsetup luksOpen Vault.dat Vault
sudo mkfs -L VAULT /dev/mapper/Vault
sudo cryptsetup luksClose Vault

To open the encrypted container, use it, then close it:

sudo cryptsetup luksOpen Vault.dat Vault
sudo mount /dev/mapper/Vault /mnt
# ... the encrypted container is mounted on /mnt ...
# ... you can write, edit and read files from /mnt ...
# ... you may want to chown $USER /mnt ...
# ... close the container when you are done ...
sudo umount /mnt
sudo luksClose Vault

DigitalOcean provides a good tutorial, https://www.digitalocean.com/community/tutorials/how-to-use-dm-crypt-to-create-an-encrypted-volume-on-an-ubuntu-vps.

Tested with ubuntu-16.04.1-desktop-amd64.iso written to a USB flash drive by Universal USB Installer 1.9.6.8.


According to one of its developers, Akira Fujita, e4defrag needs more feedback - which IMO translates to "not ready for prime time". I wouldn't use any defragmentation tool that's not thoroughly tested.

Here are some interesting slides from his recent talk at the LinuxCon 2010.

e4defrag is now in the development version of Ubuntu 12.04, see its man page for details.


The usermod option -G adds supplementary groups. You want option -g to change the primary group. I.e. your command should have been:

# usermod -g pserver pserver

Note, this will also change group ownership of files in the home directory, but not elsewhere.

More generally, the syntax for changing user 'user' to have primary group 'group' is:

# usermod -g group user


How can I reduce or increase the number of workspaces in Unity?

15.04 and later
On later versions of Ubuntu Workspaces are in the Workspace switcher. The number of desktops can be modified by installing the CompizConfig Settings Manager and changing the numbers listed under "General Options > Desktop Size".
13.04 -14.10
Workspaces are by default disabled on a new install of Ubuntu v13.04.
You can toggle workspaces on/off as well as defining the number of workspaces through unity-tweak-tool  (sudo apt install unity-tweak-tool)

12.04
The number of workspaces can be safely set without using CCSM through MyUnity

Move the slide-bars to change the number of horizontal & vertical workspaces
for example 4x1


No application switcher in compiz settings manager

Alright I finally got it. On ubuntu 12.10 there are a few plug-ins missing in compiz. So you have to install compiz-plugins-extra:

sudo apt-get install compiz-plugins-extra

voila the options appears. Then you can follow this guide: http://ubuntuforums.org/showthread.php?t=1968630


To delete a directory with rm, you need to add the -d option (if it is empty), or the -r option to delete recursively. Also you can use rmdir to delete empty directories. Check if you have inside some content you want to save to avoid accidental deletion.


How to use unity-2d-panel standalone with global menu

Your question is somewhat vague in areas, so I will answer it the best I can given my understanding of what you are asking.

You can run the unity-2d panel with the dash from another DE (like Lubuntu) after installing unity-2d (and all the things it pulls in) by pressing Alt+F2 and typing in unity-2d-shell  (or opening a terminal and using the same command)
This will give you the lefthand sidebar with the dash. However, this will interfere with your Lubuntu setup as Nautilus handles the desktop, etc...

If however you are just trying to run unity-2d log out and choose it from your session menu.

unity-2d-panel is the upper panel with global menu integration.

unity is a very self integrated DE, and it is not good at playing with other DE (like LXDE, XFCE4...)  So problems can easily occur trying to use the panel only, or the sidebar only in another DE.

edit: since my post was down-voted with no reason given, I will add more information here. Though the lack of clarity in the question requires somewhat ambiguous answers, I will continue to try to address my understanding of what the OP might want to do.

Running unity-2d-panel global menu by itself is pointless.  A window manager is needed.  if you are trying to remove the unity-2d-shell from your current session, edit your /usr/share/gnome-session/sessions/ubuntu-2d.session file removing the DefaultProvider-shell=unity-2d-shell line and the word shell; from the RequiredProviders line.

If you are trying to run it from another window manager then running it with unity-2d-panel may work but by only using some of the components of Unity (a very tightly integrated DE) will probably cause you issues.  unity-2d has been abandoned in all future releases of Ubuntu, so this is only pertains to the LTS (and the older releases that are soon to lose support like 11.10 at the current time of writing this)

P.S. launchpad is the place to report bugs, if you believe this is a bug file it there.


Edit /etc/security/limits.conf and configure nprocs appropriately.

You may need to add pam_limits to your pam configuration.  The default configuration has pam_limits configured for many services.   You may want to add pam_limits to /etc/pam.d/common-session.


How do I change the name of a file once I have uploaded it to the Ubuntu One Cloud?

You can just rename it on your local computer and it will be synced to the cloud.


No unity-greeter.conf file in /etc/lightdm/

unity-greeter.conf was replaced with gsettings in unity-greeter 0.2.1, and hence unity-greeter.conf has been removed.  To change a global setting you run

sudo -u lightdm dbus-launch gsettings set com.canonical.unity-greeter <setting-name> <setting>

For string settings, I think you need quotes around the setting value.

For example:

sudo -u lightdm dbus-launch gsettings set com.canonical.unity-greeter background '/usr/share/backgrounds/Twilight_Frost_by_Phil_Jackson.jpg'

I use dconf-editor to browse through these settings, it's available in the dconf-tools package.

Now, what Mitch is saying does work, but it seems it might require you to change the wallpaper twice for the greeter to pick up the change.  What you do is change your wallpaper, then change it back to what you want.  Now when you click on different users in the login screen you will see different wallpapers.  If you want the global change for users who haven't set a custom wallpaper, use the method above.


How can l rename a set of directories given the list of new names?

You can just put the two lists of names in text files to do the renaming like this :

Create the two lists

echo "'archery','benchpressing','bikingthroughsnow','blowingoutcandles','bowling','brushingteeth','cleanandjerk','divingcliff','drummingfingers','golfchipping','golfdriving'" |sed -e "s/'//g ; s/,/\n/g" > listorig
echo "'Archery' ,'BenchPress' ,'Biking' ,'BlowingCandles' ,'Bowling' ,'BrushingTeeth','CleanAndJerk' ,'Diving' ,'Drumming','GolfSwing1', 'GolfSwing2'" |sed -e "s/'//g ; s/,/\n/g" > listdest

Put the two lists side by side and do the job  in "Dry run" mode

paste listorig listdest | awk '{print "mv " $0}'

If the check is good, really do the job :

paste listorig listdest | awk '{print "mv " $0}' |sh

And the job is done :)


Unable to adjust the brightness in Ubuntu 16.04

I think this might help:
Cannot change backlight brightness Ubuntu 14.04

There is also a Ubuntu article on it:
https://wiki.ubuntu.com/Kernel/Debugging/Backlight

According to the top article:

sudo nano /etc/default/grub
change line

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video.use_native_backlight=1"

then save, exit and run:
    sudo update-grub

then reboot

Explanation is that acpi adds its own backlight control even if one is already present which is intel_backlight, adding this line forces acpi to use the intel backlight.


Your routing looks like it's not set right.
Routing to a gateway at 0.0.0.0 is not gonna work ;)

Try running this command to set the correct default gateway:

route add default gw GATEWAY_IP_ADDRESS

Make sure you can ping the address as well.

Let me know if that still doesn't work...


With the default image - you can't.
Most cloud images don't have username/password authentication enabled, and rightfully so - using key pairs is much safer. But the console will not allow you to log in with a key-pair.

For development/debugging purposes, it is a good idea to add a 'debug' user to your image, with a configured password. Just don't use this image for production, or on a public cloud.

You can, of-course, ssh into the VM, set a password for the user and then use the openstack console. Just keep in mind the security implications.


I managed to get shutter running by:

Purging my current install sudo apt-get purge shutter
Installing Shutter from their PPA: http://shutter-project.org/faq-help/ppa-installation-guide/
Running killall shutter to remove active Shutter processes if any
Running shutter -f which captures the whole screen and displays it in Shutter.

After this, Shutter is working as it should.


Different metric of file size as output of ls command

total and ls -s by default print the number of blocks of 1024 bytes or the size defined in BLOCKSIZE or BLOCK_SIZE environment variables.

To "regularize" the units for ls -l output add --block-size argument, for example:

for KiB (2^10):

ls -l --block-size=K

for MB (10^6):

ls -l --block-size=MB

You can also specify 1M to display only numbers and skip the unit.

For all units and options refer to the Block Size chapter of GNU docs.


How can I free space on a Ubuntu Usb drive?

I recommend you use at least 2GB or even larger USB stick (1 or 2 GB for persistence) in order to avoid such space problems, and install a program like Bleachbit  to clean cache, etc. from time to time.
As a temporary solution to the problem with your present USB drive, you can try and delete the contents of a number of your (hidden) folders (which you can see when you press Ctrl+H in Nautilus) in your home folder such as: .cache, .thumbnails, .mozilla, etc.


How to shutdown Ubuntu on the computer without power button

From a terminal / ssh prompt run sudo shutdown -h now to power down the server.
Also poweroff might work.


IO WAIT

Take a look at the "wait" (wa) when you do a top in a terminal, it will show you if your system is waiting after IO to process further instructions.

Tasks: 216 total,   2 running, 213 sleeping,   0 stopped,   1 zombie
Cpu(s): 13.8%us, 15.9%sy,  0.0%ni, 69.3%id,  1.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   2020492k total,  1717168k used,   303324k free,    41664k buffers
Swap:  4796412k total,   374820k used,  4421592k free,   483220k cached

MEMORY

Check for defect/faulty memory by using the memtest86 option when you boot to grub.
A lot of good tests are also mentioned here https://help.ubuntu.com/community/FaultyHardware

LIVECD

Check with the Ubuntu LiveCD if you still have the same problems.
You may want to try UBCD also to do some hardware tests.


How do I make Nautilus use preview thumbnails for OpenOffice.org documents?

As indicated here, you can install libgsf-bin to enable that feature.


I can't set background image on Gnome Terminal 3.14

Gnome-terminal's background feature has been removed since 3.8.1. Though I couldn't find this in the official release notes, but this is all known by now and they don't want that feature be back. This is one of the discussion assuring https://bbs.archlinux.org/viewtopic.php?id=161798

Note: This is community Wiki and if anyone finds the reference of this feature removal, add it to the answer by editing this.


Launcher Search is showing duplicate icon

The two are actually different. One is for Cinnamon, the other is for Unity.

To fix:

Run this command:

sudo -H gedit /usr/share/applications/cinnamon-session-properties.desktop

Find this line:

Name=Startup Applications

Replace it with this (or similar):

Name=Startup Applications Cinnamon

Save & close the file.
The Startup Applications should now have different names.


Do I Have Two kernels Running at the same time?

No. From the man page: "last reboot will show a log of all the reboots since the log  file  was created." Every time you reboot, you'll get another entry there (and when the log file rotates, they'll all go away). You're only running one OS at a time, though.


How to use the Linux driver for a Huion drawing tablet

In the terminal type:

uname -r

It will tell you the kernel version you are using.If it says, for example, 3.13.0-44-generic - It means your kernel version is higher than 3.12.2. If it shows number less than 3.12.2 , for example 3.12.1 or 3.11.5 it means you have to use the driver.

If your kernel version is higher most probably the drivers are already built into the kernel.

Otherwise you should install the driver.


The problem was fixed after I ran a software update. This time, Opera was updated.

But before being able to run software update I had to clear some space from my root partitition, and I think this was like the real culprit.


How to extend my hard disk into a second hard disk?

I would not recommend trying anything fancy like making one logical disk out of two physical disks. A better option would be to simply format your second hard drive using GParted. You probably want to use ext3 or ext4 if the hard drive will be Linux-only. After formatting it, simply move some lesser-used and larger files over to the second drive to make space on the first.


Some open file dialogs don't see other partitions

That's a QT file/folder dialog which doesn't show (un)mounted drives in the left column. This happens because the developer(s) of those applications didn't add places and URLs to the dialog sidebar using QFileDialog::setSidebarUrls().

Yet, you can still access mounted drives:

Plug in the HDD and click on it in the file manager to get it mounted.
In that file dialog, navigate to /media/<username> or /mnt folders and you should see the hard drive partitions as folders there. You can browse in them the contents of the drives.

You must navigate to the mount point of the partition. There you'll find its contents. You can see mount points in Disks utility (gnome-disks).


constant monitoring of answers on a port given

The netcat utility will do exactly what you are looking for:

$ nc -lk 1234

The -l option will start netcat listening on a port. The -k option forces it to keep listening for new connections.

Netcat should be installed on your system by default; it is part of ubuntu-minimal. If not, you can install it with apt-get install netcat-openbsd.


Open Terminal. Do the command :

  sudo nautilus

Go to /var. Right click on www folder and choose the option properties.
On the tab permissions change all folder access to Access Files or Create and Delete Files.


How to switch between host and guest OSes in virtual box

This is caused by the fact that Virtualbox "captures" keystrokes for the guest OS. You can disable this momentarily by pressing the "Host" key, which normally is the right Ctrl button.

Try pressing the right Ctrl button and then Alt+Tab-ing, you should go back to the host OS.


Boot a live environment (eg. your Ubuntu install media, selecting 'try ubuntu') and do a fsck (file system check) of your partitions.

Reboot and it should be okay.

This is suggested due to a scan of https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/439784 (old) which showed the most common cause for this error was file-system corruption.


This repository does not support Xenial.

If you need codeblocks, add the official PPA for the latest version (https://launchpad.net/~damien-moore/+archive/ubuntu/codeblocks-stable) or install it from the official repositories.

If you need builddeb, just install it from the official repositories (bzr-builddeb).

If you need DoUML, run:

git clone https://github.com/DoUML/douml.git
make
make install

Do be warned that DoUML is not completed and is still a work in progress.

If you need premake, the one in the official repositories should fit your needs (premake4).

If you need scite, just install the one from the official repositories.


Media keys, xfce4-notifyd stops working if headphones are unplugged once after startup, ubuntu 18.04

I went to xfce4-keyboard-settings settings (search keyboard) and added the following:

amixer -D pulse sset Master 5%+
amixer -D pulse sset Master 5%-

For the key, I just input media up and down keys.

Now with the xfce4-notifyd being enabled, it correctly tracks the sound volume up and down keys, even when headphones are unplugged and re-plugged in.


You might want to try this. Success was reported with this solution on the 3721.

http://ubuntuforums.org/showthread.php?t=2148814


So I have been having this same problem. It seems to be a permissions problem and I found two ways to fix it. Both of assumes you are using XAMPP. If you are using LAMP just change /opt/lampp/htdocs to /var/www/html

The first I am using a VM on MacOS and I fixed it by using 'chmod'.

sudo chmod -R 755 /opt/lampp/htdocs/

This makes it so the owner of the file can read, write, and execute. Everyone else can only read and execute.

Here is the second one I found to be helpful on stackoverflow.

This one uses chown to change the ownership of the 'htdocs' folder by replacing the 'root' owner with your 'username'.

sudo chown -R username:username /opt/lampp/htdocs/

I ran this on ElementaryOS using Dell All-In-One Desktop.

Hope this helps.


Access network shared printer from wine command prompt

save the text file to your Ubuntu desktop, and print the file with lpr. Check this page, it might be of some use.


Why are NTFS partition UUIDs shorter than normal?

Because those values aren't UUIDs; they're NTFS serial numbers. They're identified as UUIDs in /etc/fstab (and elsewhere) because the developers chose to use the identifier "UUID" for fundamentally non-UUID data, rather than use some other identifier.

The same is true of FAT, by the way, but FAT serial numbers are even shorter than NTFS serial numbers.


Ubuntu Touch - Telegram new message count not reset after message has been read

It's an old known issue. One workaround is to launch the telegram app from the the left unity sliding bar (where you see open and/or pinned apps) or the apps scope instead of the notification menu at the top.


Evolution mail client, calendar not syncing

To use Outlook.com in Evolution, you need to go to the account settings (Edit->Preferences->Mail Accounts).

[
Add a new account, enter you adress and go to the Receiving E-mail section:

and enter

Host URL: https://outlook.live.com/EWS/Exchange.asmx

OAB URL: https://outlook.live.com/OAB

After entering your  credentials everthing should be fine (tested with Evolution 3.20.5).


Why should I prefer ppa wine over the wine in the official repository?

The WINE ppa offers a later version of WINE than the repos do. The current stable version of WINE (in the Ubuntu repos) is 1.4.1; 1.5 is a beta version.

By recommending that you install WINE from the PPA, these tutorials you speak of a really suggesting installing a beta version of WINE. The beta version has support for more Windows programs, but that support has not been perfected yet, which is why Ubuntu doesn't add the beta versions to their repos.


How to package shared library in deb packages

No, your shared library should be installed:

to /usr/lib directly
or to /usr/lib/<package-name> with a shortcut in /usr/lib

The manual means:

by supporting files like plugins and modules (in binary form) that your program would scan them by itself. They could be shared libs .so or any other format, even custom formats.
by run-time support programs the executable programs that are used by your program, but are not useful for the user to run them directly, so that note suggests to avoid installing them to /usr/bin

The support files in text format (not generated-binary at least) are more convenient to be installed in /usr/share/<package-name>

I would recommend to you, making quick look on examples from other packages.

tree /usr/lib/libreoffice/
tree /usr/lib/gimp/


Are my md5 keys actually different? Do I have to redownload Ubuntu?

Yes, you got that right. You have to redownload it in order to get an image you can be sure to be safe.

If you have a low bandwidth and/or a lot of connection drops, I recommend downloading it using a BitTorrent client. The BitTorrent protocol features automated error correction; the defective chunks are redownloaded automatically, so you don't have to start all over.

You can get the torrent file from the Alternative downloads page. As a torrent client, I can recommend µTorrent for Windows or Mac OS X, or Transmission for Mac OS X and Linux, but there are many other clients available.


Is there a way to use Evince to view PDF attachments in Gmail

Unfortunately, Gmail is designed to open such files with Google Docs and there is no way that can stop it from doing this.


Is "sudo apt-get update" mandatory before every package installation?

Your copy of Ubuntu has a private copy of the list of packages that are in Ubuntu's repositories. When you install a package, apt-get reads the list and determines the URL of the package to download (which typically contains package version information).

apt-get update updates the package lists. If you don't do it before an installation, apt-get might complain that it cannot find the package in the repository, because it computed the URL based on an old version of the list (which listed an older version of the package).

Of course, apt-get update is necessary after you have changed the repositories, because the system needs to download the list for the new repositories.

It is essential before upgrading the installed packages, because the system cannot know whether the repo has a new version of a package, unless it has an up-to-date copy of the package list.

There is no reason not to run apt-get update before installing a package. However, it is not necessary, if you know that no new version of that package and of its dependencies have been made available on the mirrors since the last apt-get update. A special case of this is when the package lists are up to date, which is after a reasonably short time since the last apt-get update; this means that all packages on the mirror are the same version as they were.

The package list changes whenever a package is upgraded on the mirror. It is impossible to predict how often it changes, in general, without reference to a specific issue or bug report, or without following the development of that Ubuntu release.


You need the 12.04 version of Wubi to install Lubuntu which you can find here.

Because Lubuntu is not an LTS (long term support), there is no 12.04.3 version, and the Wubi.exe you are running is looking for that. If you use the 12.04 version it will recognize and use the 12.04 Lubuntu ISO you've downloaded.

PS Move the file C:\ubuntu\install\lubuntu-12.04-desktop-i386.iso out from under C:\ubuntu and save it with the correct wubi.exe before you try to reinstall and then it won't download it all again.


Open mailto: links in Unity with non-default browser webapp?

Create a custom script with e.g. name "mystarter.sh" (make it executable) , paste inside it the two line command:

#!/bin/bash

/usr/bin/chromium-browser --app=https://mail.google.com/mail

Then you can set the required mailto: handler in Firefox.

Open the Preferences->Applications type mailto -> select action "other" and set the 'mystarter.sh' script.

Next, open gconf-editor and go to
/desktop/gnome/applications/url-handlers/mailto and set the command for your chromium webapp


Shutdown option is not working in Ubuntu 11.10

To fix it, you must to edit grub file as follow: Type in terminal:

Type in terminal: sudo -H gedit /etc/default/grub
Find the line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
Change this to: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=force"
Save and close the file.
Finally, in terminal: sudo update-grub and sudo reboot.


An easy way to switch from Apache to Nginx


How to connect Brother MFC 255 CW wireless printer?

I just went through this for the same printer.

If you haven't already, install the Brother Drivers as Michal suggested. Both the LPR and Cupswrapper drivers. You say your printer works over USB, but not wireless. If so (or once you get your drivers installed):

Go to http://localhost:631/printers in browser to manage your printer.
Click on your printer name, Administration and then Modify Printer.
Select your printer under Networked Printers, click continue.
Enter the IP address for your printer, click continue.
Select your printer name with "Cups" version.
Click Modify Printer and that should be it.

BTW, on that printer you can see your IP address by going into it's menu then selecting (5)Network, (1)TCP/IP, (2)IP Address.


You can but it's risky.

There are drivers for Windows to access ext partitions such as ext4. However, many experienced folks (including yr. humbl. correspondent) report losing lots of data when writing into ext4 partitions from Windows, even with the latest version of the driver.

It is infinitely preferable to boot from an Ubuntu Linux LiveUSB and perform the file transfer under Linux into another HDD or SSD (normally made with NTFS by Windows), or to a USB flash memory drive which is traditionally partitioned as FAT32.


How to install apps for windows phone in Ubuntu?

May be you are trying to directly install the Zune program in ubuntu so
You can first install Zune in windows, after that boot linux and try to add zune with WinE or add .exe file in WinE now it may be work.


rsync won't exclude folders passed as a variable in a script

NB not properly tested; I added -n to the rsync command for testing purposes

Try something like:

#!/bin/bash

declare -a excludes

echo "Type the path of the folders to exclude: "
while IFS= read -r folder
do
    excludes+=( --exclude="$folder" )
done

rsync -n -avh "${excludes[@]}" -- source/ destination/


Firefox Becomes Unstable Playing Youtube Videos

I ended up fixing this by disabling all of my extensions and then adding them back in one by one.  For some reason Firebug or the Web Developer extension seemed to be causing the issue.  I disabled both of those and now things work fine.


Why wont Ubuntu recognize Rogers LTE Rocket stick 330U Sierra wireless modem?

You might need to enable the "sierra" module. You can do this by typing sudo modprobe sierra and then opening up NetworkManager a minute or two later.


Permission error when formating USB sticks with GParted

After trying a lot of things and getting a lot of errors like this:

I stumbled upon the option of changing the UUID number of the Sticks!
For some reason the rights to the file-system hangs on the UUID - and survive reformation!!

Chainge the UUID before risking to lock the USB-stick up totally (see abowe)!
This will get rid of all the Read only restrictions for all users in both Fat and Ntfs !!!
Wonder where our devises hide this information, cause it isn't on the PC - it is on the sticks somewhere - moving to an other PC keeps the problem just fine (sucks) But changing the UUID breaks the chain!! and the stick works again!

Now I just have to resurrect the USB-stick that gives all these errors - changing partition tables too much can wreck havoc!


Okay, Goto chrome://settings/content/camera?search=camera and check either the sites you mentioned are in Allow or Block.
Try Enabling or Disabling "Ask before accessing".
Also, try https://storyxpress.co/webcam-test webcam test tool if your camera work here or not.


Yes, the Touchegg might be a good solution for Gnome or Arch linux users, but XSwipe is the best for Ubuntu with Unity I have used so far. Check it out!

The configuration may take a couple of hours but it worth.


Is Ubuntu Phone's GUI going to be ported to desktop Ubuntu?

Unity already supports touchscreens. See, for example, this article. Unity was made from the very beginning to work the same way on different kinds of devices with different kinds of input hardware--that's why it's called "Unity".

So it's unclear exactly what it would mean for the "touch version" of Unity to be ported for desktop use. Not much information is available about Ubuntu for Phones yet, and it's not available for use or testing, so it would hard to answer highly specific questions.

Right now, we don't know what changes, if any, will be made to the phone version of Unity but not to mainline Unity. For all we know, they might end up having the same source code (perhaps with some differences in configuration or build options). From the official information about how Ubuntu for Phones works, the interface is shown to be operated in the same way.

On the other hand, perhaps there will be extensive changes. After all, Unity is a Nux plugin for Compiz, which may not be available on phones (or may work differently) even by the time Ubuntu for Phones ships.


Why does uninstalling boost uninstall aptitude and libreoffice?

This is happening because these packages have a dependency on one of the libboost* packages you are removing.

For example, libreoffice-core depends on libboost-system1.54.0

So if you remove libboost-system1.54.0, libreoffice-core will not work.  Nor will all of the libreoffice packages that depend on libreoffice-core.  So the package manager wants to remove them instead of leaving you with a bunch of broken packages.

You could theoretically prevent this, but why? You would be left with a bunch of broken packages on your system.

Probably the question you should ask is why you need to remove libboost* That appears to be a really bad idea.


Alienware 13 touchpad not working under any distro [DLL068B:00 06CB:76E9] [hid-rmi]

I found an solution:

Type in the terminal

sudo su
echo 'blacklist i2c_hid' >> /etc/modprobe.d/blacklist.conf
depmod -a
update-initramfs -u

and reboot

Hope did work for you!!


How can I make stars appear when I type sudo password?

After entering sudo at the Terminal if you want stars / asterisks to appear with each password character you type you need to configure it using:

sudo visudo

Locate the line containing env_reset and add the parameter , pwfeedback behind it.  Here is an example:

  GNU nano 2.5.3                      File: /etc/sudoers.tmp                                          Modified

#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults        env_reset, timestamp_timeout=120, pwfeedback
Defaults        mail_badpass
Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification

^G Get Help     ^O Write Out    ^W Where Is     ^K Cut Text     ^J Justify      ^C Cur Pos      ^Y Prev Page
^X Exit         ^R Read File    ^\ Replace      ^U Uncut Text   ^T To Spell     ^_ Go To Line   ^V Next Page

After making changes save the file using Ctrl+O to write the file. You will be prompted for the file name but simply press Enter to accept the default. After saving, exit the editor using Ctrl+X.

Also on this example the timeout value has been set to 120 minutes (2 hours) so that you aren't constantly prompted for sudo password every 15 minutes. You can leave this option out if you like or increase / decrease it as you like.


In ubuntu

nano /etc/apache2/apache2.conf

edit the AllowOverride feature to ALL

 <Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>

You need access to .htaccess.

ErrorDocument 500 "Sorry you are late Session Time out!!!"

ErrorDocument 403 /xyz/yxz/error.html


Error 0xc000007b after installing Ubuntu 13.10

UEFI is known to cause problems with Ubuntu. I have yet to find a case where a UEFI installation initially works. The best fix for this is boot-repair. Here's what you can do to fix your problem:

Start  up your Live CD
Open Terminal by pressing Ctrl+Alt+T
Run sudo apt-get update && sudo apt-get install boot-repair
Run sudo boot-repair
Choose the Recommended Repair
Follow the instructions you are given, then reboot once finished
Profit!


Lubuntu 14.04 Tired about suspend e hibernation "power manager not authorized"

On my machine, I was able to have the machine suspend after inactivity by modifying the file
/usr/share/polkit-1/actions/org.freedesktop.upower.policy/org.freedesktop.upower.policy and set

<defaults>
  <allow_inactive>yes</allow_inactive>
  <allow_active>yes</allow_active>
</defaults>

I hope this helps


Is there a keyboard shortcut for the indicator area?

F10, then cursor keys.

The key in configurable in the compiz configuration manager (not installed by default).

What are Unity's keyboard and mouse shortcuts?


disk mount: what does "require additional authorization to mount" do?

I think the udisks manpage does a fairly good job of explaining this:

ACCESS CONTROL
   By default, logged-in users in active log-in sessions are permitted to
   perform operations (for example, mounting, unlocking or modifying) on
   devices attached to the seat their session is on. Access-control is
   fine-grained and based on polkit(8), see the “Authorization Checks”
   chapter in the udisks documentation for more information. Note that the
   x-udisks-auth option can be used in the /etc/fstab and /etc/crypttab
   files to specify that additional authorization is required to mount
   resp. unlock the device (typically requiring the user to authenticate
   as an administrator).

So, by default, a user who is locally logged in (and not remotely, say via SSH, etc.) can plug in a USB disk and mount it without having to authenticate as the administrator. The x-udisks-auth disables this and forces you to provide authorization.

Authorization will be done via polkit, as it says. So you will have to authenticate as a user who has rights to the Polkit actions corresponding to mounting, unmounting, ejecting, etc. By default, those will be administrator users (those belonging to the sudo group).

If you are an administrator, you just have to provide your password:

In the image, the Polkit action is org.freedesktop.udisks2.filesystem-fstab.

If other administrator users are also present on the system, you'll be able to select which user to authenticate as.


Ubuntu Budgie 18.04: Is there a way to customize date format?

Options to set the date format

1. Calendar applet

The default installed Clock applet does not have an option to set a custom date format. Not from GUI (Budgie Settings), not from dconf.

However, you can install the Calendar Applet, which does offer the option. To install:

Choose from the main menu Budgie Applets, and install the Calendar Applet
Log out and back in
Open Budgie Settings from the main menu, add the applet to the panel (click the + -> add)

Then, in the applet's settings, tick "Custom date" and set your string format:

..and here we are:

2. ShowTime applet (on the desktop)

Not literally the question, but in the latest version of the ShowTime applet (time on the desktop) you can also set a custom date format.

To change the format from:

into:

Simply run:

gsettings set org.ubuntubudgie.plugins.budgie-showtime dateformat '%d %b'

and subsequently restart the applet or log out/in. To revert, run:

gsettings set org.ubuntubudgie.plugins.budgie-showtime dateformat ''

N.B.

For the latest version to be available, you need to enable Backports repository from Budgie Welcome (in Recommendations)


New Ubuntu installation with Win 10 no dual boot screen

Turn on your computer than Keep clicking escape untill it takes you to the menu then go to boot manager there will be windows and ubuntu, select ubuntu hit enter and it will boot ubuntu..

Go to the boot options and change the boot order and put ubuntu at the top, with the f5 and f6 keys..


I'm using 14.04, and I've had similar glitches, though not this particular one. Perhaps it has to do with Unity. If you only had one such image to export, I would try:

Save your work
Close Inkscape
Reopen Inkscape
Export Bitmap

But since you have over a dozen to export, may I recommend using the command line, as described below?.

Using the command line to export works around the GUI issues, and it is fairly straightforward (it just means you need to know what your parameters are and type them out.)

From: https://inkscape.org/en/doc/inkscape-man.html

  EXAMPLES

  While obviously Inkscape is primarily intended as a GUI application,
  it can be used for doing SVG processing on the command line as well.

  Open an SVG file in the GUI:

inkscape filename.svg

  Print an SVG file from the command line:

inkscape filename.svg -p '| lpr'

  Export an SVG file into PNG with the default resolution of 90dpi (one
  SVG user unit translates to one bitmap pixel):

inkscape filename.svg --export-png=filename.png

  Same, but force the PNG file to be 600x400 pixels:

inkscape filename.svg --export-png=filename.png -w600 -h400

  Same, but export the drawing (bounding box of all objects), not the
  page:

inkscape filename.svg --export-png=filename.png --export-area-drawing

  Export to PNG the object with id="text1555", using the output filename
  and the resolution that were used for that object last time when it
  was exported from the GUI:

inkscape filename.svg --export-id=text1555 --export-use-hints

  Same, but use the default 90 dpi resolution, specify the filename, and
  snap the exported area outwards to the nearest whole SVG user unit
  values (to preserve pixel-alignment of objects and thus minimize
  aliasing):

inkscape filename.svg --export-id=text1555 --export-png=text.png --export-area-snap

  Convert an Inkscape SVG document to plain SVG:

inkscape filename1.svg --export-plain-svg=filename2.svg

  Convert an SVG document to EPS, converting all texts to paths:

inkscape filename.svg --export-eps=filename.eps --export-text-to-path

  Query the width of the object with id="text1555":

inkscape filename.svg --query-width --query-id text1555

  Duplicate the object with id="path1555", rotate the duplicate 90
  degrees, save SVG, and quit:

inkscape filename.svg --select=path1555 --verb=EditDuplicate --verb=ObjectRotate90 --verb=FileSave --verb=FileClose


if you have a seperate space for /home u can reinstall ubuntu without loss any data in users! but carefull : you must use exactly previous username in install steps.

otherwise login in recovery mode and use update-grub2 command and write demsg output here.


The easiest and fastest way to share files between 2 computers is  NitroShare.  It works on Windows, Ubuntu and even on fruity-flavoured OSes...  ;-)

There is also a PPA (ppa:george-edison55/nitroshare-dev) if you want the development version... The downloads in the link above are stable!

Just install it on both machines and that's it!

Go to the dash:

and start nitroshare (or add it in the Startup Applications on Ubuntu and the Startup Programs on Windows) and a little icon like this:  will show up in your panel at the top of your screen and that's all you need to start sending files from one machine to the other and vice versa...