I am not able to change directory to local disk using terminal even though ls is listing them

Do it this way

cd "F drive"

or

cd F\ drive

The space in the directory name should be quoted or escaped. Otherwise the command is interpreted as cd F.


How to make the search panel non-transparent in 16.04?

There doesn't seem to be a direct option. Only way I could get around was to change the background color. Using tweak, under launcher, appearance, change the background color to a darker color (I used black) and then play with the transparency level to adjust the contrast.


I had a similar issue, though I don't know what exactly caused and solved it. The problem seems to be that the permissions on the backup drive were mucked up, so after deleting the entire directory where the file is in on the backup drive and trying again worked for me.


Windows runs fine Ubuntu freezes randomly

Launching the top command in a terminal just before the computer crashes, I have noticed a few times that the indicator-datetime process was using 100% of my CPU.

Solution:
Therefore I have disabled it from System Settings → Date and Time → Clock tab → un-check Show clock in the menu bar checkbox and now it seems to work fine.

I have seen similar issues after I had identified this on my PC, both in Ubuntu 16.10 and in much older versions. I also still don't understand why it does it with one of my users, but not with other users on the same computer.


Please advice how to get rid of unmet dependency issue

Edit the post-removal script

sudo nano /var/lib/dpkg/info/bitdefender-scanner.postrm

and delete the line

set -e

But be in mind, that's only a good idea, if you have to force the removal of a package.

  The package management system looks at the exit status from these scripts. It is important that they exit with a non-zero status if there is an error, so that the package management system can stop its processing. For shell scripts this means that you almost alwaysneed to use set -e (this is usually true when writing shell scripts, in fact). It is also important, of course, that they exit with a zero status if everything went well.

Finally, remove the package again

sudo apt-get purge bitdefender-scanner
sudo apt-get autoremove bitdefender-scanner


cannot start Ubuntu desktop from console

Open terminal and type sudo dpkg-reconfigure x11-common.

Now select Console Users Only


How to pipe/dump clipboard contents to a file?

How to pipe clipboard contents to a file?
You can do it using xsel. Type in terminal to install it,
sudo apt-get install xsel

To put the contents of the clipboard/Ctrl+C to a file use,
xsel -b > some.txt

I am putting the clipboard contents to the some.txt file.
Done.
Copy file content/string to clipboard
You can go through this answer by Radu Rădeanu which described how you can copy file content/string from a terminal to clipboard that can be pasted using Ctrl+V


Turn off automatic file extension when renaming files?

You are right, this is only with .desktop files. This was introduced a couple of releases ago to my knowledge, probably to make sure you don't break a starter/launcher.


It seems that your command-not-found package is corrupted somehow. You could purge it, remove its configuration, reinstall it and then reconfigure it as well as finally update it with:

sudo aptitude purge command-not-found
sudo aptitude purge ~c command-not-found
sudo aptitude install command-not-found
sudo dpkg-reconfigure command-not-found
sudo update-command-not-found

These are the files the command-not-found package contains: https://packages.ubuntu.com/en/disco/all/command-not-found/filelist

Good luck.


This has been affecting me also. Sometimes the mouse still works, sometimes not. Keyboard never responds. Most times, I can ssh into my machine and killall -9 chrome and the system will return to normal. Now trying Firefox to replicate the problem.
(Btw, I intended this just as a comment to the question, but I cannot figure out how to do it)


Firefox says Server not found on Ubuntu but not in Windows

I suppose that these addresses starting with 198 are wrong. Try to enter 192 instead of 198.


How do I automatically set my touchpad to turn off when an external mouse is used?

Yes, don't worry, these are safe packages, they are part of the KDE desktop and required by KDE apps, you might as well install them because in the future if you need to use another KDE app (there are many good ones like KDEnlive, Okular, Digicam, etc) you'll have them already there and won't have to install them again. Waste a bit of HD space but no security risk.


I believe this would be very difficult to arrange via permissions, because there are many dependencies, some of which may even change under updates. This is not something I would advice.

Much simpler might be just to opt for a very straightforward window manager (tvfm for example), and start firefox from its login for that user. You than can close the user's capabilities further by blocking applicable config files from writing for that user.

This is not watertight, but would be enough for normal desktop users. If you need more help with aspects, just comment on it and I will extend this answer.


Rescatux is often useful is situations like these!

It can restore a botched Windows MBR in a heartbeat.

After that's done, you need to be able to load Windows from Grub.

To do so, just boot into the Ubuntu Live CD and run a few commands.

First, identify which is the Ubuntu partition:

sudo fdisk -l

Next, mount it (replacing sda2 with the appropriate partition number):

sudo mount /dev/sda2 /mnt

And finally, reinstall Grub (replacing sda with the appropriate hard drive):

sudo grub-install --root-directory=/mnt /dev/sda

Now, reboot, and run this:

sudo update-grub

This should detect your Windows installation and add it to the Grub menu.


The default font of grub2 in 12.04 is unicode.pf2. Check this command
grep -n font /boot/grub/grub.cfg

It is described in 45th line in grub.cfg file. The location of the font is /usr/share/grub/unicode.pf2.

Check this related question on Unix.SE

Update to include information from OP's comment:
OP wrote in a later comment,

In Grub Customizer on the right side there is a little red minus sign that removes the custom font. click that and hit save and boom back to the default font


Try Webmin.

echo "deb http://download.webmin.com/download/repository sarge contrib" >> /etc/apt/sources.list
echo "deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib" >> /etc/apt/sources.list
wget http://www.webmin.com/jcameron-key.asc
apt-key add jcameron-key.asc
apt-get update
apt-get install webmin

Now,  you can access Webmin by browsing to http://your-server:10000/.To login, use root's username and password.


Check the status of the worker threads and maybe restart them:

/etc/init.d/puppet-dashboard-workers status

Check the logfile for errors:

tail -f /usr/share/puppet-dashboard/log/delayed_job.log

You might be able to get the file name with this:

grep "Importing report" /usr/share/puppet-dashboard/log/delayed_job.log

If you have found that one report is responsible for the errors, check the report files here:

/usr/share/puppet-dashboard/spool


Can the Close / Minimize / Maximize buttons be pulled out of the Global App Menu when a window is maximized?

No, this is hard coded into unity, but if we push really hard, we might be able to get them to change it for 11.10 (file a bug, or mark an existing bug for it as affecting you).


Unable to use my 4k monitor at maximum resolution when used with one or two others FHD monitors

Finally got it...

Triple check the output of /var/log/Xorg.0.log to remove as most as you can errors and warning. I mispelled one of my output DVI-O instead of DVI-0...

So, if you encounter this problem, the solution seems to be :

Describe as most as you can your configuration in /etc/X11/xorg.conf :

device section with Options "AccelMethod" "glamor" / Option "ShadowPrimary" / Option "TearFree"
all outputs of your video card and all your attached monitors

Here is the fully functionnal version of my /etc/X11/xorg.conf


Where does AdBlock Plus store it's settings

I do not use adblock on chrome, but i know that some chrome configurations can be found under:

/home/<user>/.config/google-chrome

May you should take a look in the Default/Extensions folder.

Good luck!


Well, this worked for me and it is really easy :

Open PulseAudio Volume Control (open a terminal and type pavucontrol).
Install it if you don't have it.
When you open it, go to "Configuration" : For one of the "built in audios" one has HDMI (unplugged) in front of "Profile". Choose "Off" for that profile.


Where is the »open as administrator« option in Nautilus gone?

Are you sure you mean 11.04?  In any event the package is still in the repos & should still work as is through 11.04 (the last version built was "nautilus-gksu (2.0.2-5ubuntu2) natty"

In 11.10 it would install but not work, as of the other day it finally was noted in the current 12.04 build

Patches dropped:

debian/patches/21_strip_blank_space.patch: No longer needed since we
don't build nautilus-gksu anymore.

As far as 11.10 & probably 12.04 the extensions will work fine, you can  install the package & either copy or link to proper dir.

Ex. of linking after install

sudo ln -s /usr/lib/nautilus/extensions-2.0/libnautilus-gksu.so /usr/lib/nautilus/extensions-3.0/libnautilus-gksu.so

To copy just replace ln -s with cp.

You actually don't even need to install the package, just place a copy of libnautilus-gksu.so in /usr/lib/nautilus/extensions-3.0

A bug I had on - at this point just hoping someone with auth will mark "Won't Fix"
https://bugs.launchpad.net/ubuntu/+source/gksu/+bug/817383

For 12.04

You can no longer just install the 11.10 package & move or link the .so. -

Easiest way is to  download the nautilus-gksu package for your architecture from either of these 2 locations, and save it in your downloads folder

http://packages.ubuntu.com/oneiric/nautilus-gksu pick architecture at bottom of page

32 bit- Direct link from ubuntu.mirror.cambrium.nl

64 bit- Direct link from ubuntu.mirror.cambrium.nl

https://launchpad.net/ubuntu/+source/gksu/2.0.2-5ubuntu2 pick architecture under "Builds"
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Once downloaded right click on the .deb > extract here. In the extracted contents, Browse to usr/lib/nautilus/extensions-2.0, inside will be libnautilus-gksu.so

As root (To enter root open terminal and enter gksu nautilus) copy the file from above in to /usr/lib/nautilus/extensions-3.0 folder in your filesystem
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Example from terminal, automated commands if you extracted in Downloads folder-

On my 64 bit install  downloaded nautilus-gksu_2.0.2-5ubuntu2_amd64.deb  & extracted right in my Downloads folder

sudo cp ~/Downloads/nautilus-gksu_2.0.2-5ubuntu2_amd64/usr/lib/nautilus/extensions-2.0/libnautilus-gksu.so /usr/lib/nautilus/extensions-3.0

On my 32 bit install downloaded nautilus-gksu_2.0.2-5ubuntu2_i386.deb  & again extracted in Downloads folder so terminal command

sudo cp ~/Downloads/nautilus-gksu_2.0.2-5ubuntu2_i386/usr/lib/nautilus/extensions-2.0/libnautilus-gksu.so /usr/lib/nautilus/extensions-3.0


Try the following solution:

sudo -i
echo "options ath9k nohwcrypt=1 ps_enable=1" >> /etc/modprobe.d/ath9k.conf
modprobe -r ath9k
modprobe ath9k nohwcrypt=1
modprobe ath9k ps_enable=1

Reboot your system to take effect.


Installing a local package to replace an already installed one

First try to resolve the problem with dependencies, then try to install it using the following command:

sudo dpkg -i -B chromium-mali-opengles_0.45-0ubuntu1_armhf.deb

From man dpkg:

-B, --auto-deconfigure
          When  a  package is removed, there is a possibility that another
          installed package depended on the  removed  package.  Specifying
          this  option will cause automatic deconfiguration of the package
          which depended on the removed package.


Distributing your software professionally in Ubuntu?

If you're doing this for one-off packages for one-off clients, doing it the way you're doing sounds about right. They'll need to add the key, add the repo, update and then install. Bit of a long route but it can be boiled into a few commands. You could also distribute a script does the above for the user but even then you need to instruct them to chmod/run it.

If you're intending this for mass distribution (same package for lots of people) and want it to go on general sale, talk to Canonical. They have partner repos and private repos for software on sale. They'll want a cut though. You can read more about it on the developer FAQ and then just sign into the developer site to get started.


How can you suggest the addition of a new package?

This page has information on how to request a new package.

  To get a package into Ubuntu, please file a bug in Launchpad and make sure it has the tag needs-packaging. Please mention where to get the source for it and which license it is under. An example request is here. Make sure you check which packages have already been requested.


Each command has its own parameters.

You can see what they are by running man command.

man gzip

 -N --name
              When  compressing,  always  save the original file name and time
              stamp; this is the  default.  When  decompressing,  restore  the
              original  file  name  and  time stamp if present. This option is
              useful on systems which have a limit on file name length or when
              the time stamp has been lost after a file transfer.


DisplayPort monitor not detected if switched off and on again

I just had the same problem with a Dell u2913wm connected to a i5-5775c Iris Pro 6200 via Displayport. When I switched inputs on the monitor, it would not display an image afterwards.

The problem could be solved by using ssh to log into the machine and running:

env DISPLAY=:0 xset dpms force off
env DISPLAY=:0 xset dpms force on

While not very practical, that would turn the screen back on.

After reading the answer that mentioned turning off DDC/CI, I fiddled with my monitor settings since manually setting dpms off and on is too cumbersome. DDC/CI setting did nothing for me, but my monitor had an additional Displayport 1.2 setting that was disabled.

After switching the Displayport 1.2 setting to enabled, my monitor started working again after changing inputs, or turning it off, just as it is supposed to.


Boot failure after upgrade to 16.04.1 LTS

I have resolved this problem.  Unfortunately, I had to resort to the 'nuclear' option.  After several attempts at trying variously proposed solutions I found here and on other sites, I could not get the system to boot "normally".  The only way I could get it to boot was by specifying Upstart from the boot menu.  I decided to format my drive(s) and re-load from the Live CD.  This has resolved whatever problem was caused by upgrading my system.


It also depends on the services you want to be made available. If you only have *nix clients, you can mount the share via SSHFS. Mountain Duck for Windows and Mac can mount SSHFS paths. On Windows, it assigns the share a drive letter. WinSCP for Windows can also use SSH to get files, but that's similar to an FTP server GUI interface.

A Samba share isn't that hard to set up either. That can have windows and *nix clients.


Find folders of size lesser than x and delete them

The simple approach is to find all directories, get their size and delete them if they are under a given threshold:

find . -maxdepth 1 -type d |
  while read dir; do [ $(du -s "$dir") -le 102400 ] && rm -f "$dir"; done

However, that will fail on directory names containing newlines or other strange characters. A safer syntax is:

find . -maxdepth 1 -type d -print0 | while IFS= read -r -d '' dir; do
    [ $(du -s "$dir") -le 102400 ] && rm -f "$dir"
done

Since this will process subdirectories before their parents, by the time dir1 is processed, dir2 and dir3 will already have been deleted so its size will be below the threshold and it too will be removed. Whether or not you actually want this will depend on what exactly you are trying to do.

This, however, is a simplistic approach. Consider the following scenario:

$ tree -h
.
`-- [4.0K]  dir1
    |-- [4.0K]  dir2
    |   `-- [ 80M]  file1
    `-- [4.0K]  dir3
        `-- [ 80M]  file2

3 directories, 2 files

Here, we have 2 subdirectories under dir1, each containing an 80M file. The command above will first find dir1 whose size is >100M so it will not be deleted. It will then find dir1/dir2 and dir1/dir3 and delete both of them since they are <100M. The final result will be an empty dir1 whose size, of course, will be <100M since it is empty.

So, this solution will work fine if you only have a single level of subdirectories. If you have more complex file structures, you need to think about how you want to deal with that. One approach would be to use -depth which ensures that subdirectories are shown first:

find . -depth -maxdepth 1  -type d -print0 | while IFS= read -r -d '' dir; do
    [ $(du -s "$dir") -le 102400 ] && rm -f "$dir"
done

This way, dir1 will be processed after dir2 and dir3 so it will be empty, fail the threshold and be deleted as well. Whether or not you want this will depend on what exactly you are trying to do.


How can I set up an authenticated encrypted SMTP server?

I would suggest Postfix. This is a mail server which is very easy to set up (in my opinion). You'll find some useful documents:

Postfix SMTP AUTH (and TLS) HOWTO
Postfix TLS Readme
Postfix-Wiki
Postfix documentation site

Those documents cover the basic setup of Postfix. If you encounter problems you should come back (or better, ask Superuser).


It appears that you set up an encrypted home directory for your user account.

You have probably broken the decryption of the ecryptfs mount passphrase and will need to use ecryptfs-recover-private to recover it - see the instructions in this answer to a related question Encrypted Home... Forgotten Password, but no Passphrase


Well, on Google Chrome (proprietary version of Chromium) I use a combination of:

Adblock
Keep MORE opts out
And Better Popup Blocker :)

Always works, no error messages.


How to redirect specific range of ports to port 80 in node.js

In your example, you are redirecting traffic that arrives on eth0 via tcp and arrives at port 80(!) to port 3000(!), so it is the other way around! To forward all traffic to port 3000, just remove the --dport 80 (the --dport 80 option means: apply this rule only to packets that are sent to port 80):

sudo iptables -t nat -A PREROUTING -i eth0 -p tcp -j REDIRECT --to-port 3000

The above command describes a rule that says: all traffic on eth0 (your network card) that uses the tcp protocol (-p(rotocol) tcp) shall be redirected (-j REDIRECT) to port 3000.

To forward all traffic to port 80 (like you originally asked, but the other way around than in your example, just remove the 3000 and insert 80 instead.


How to install dual-boot Ubuntu on ASUS F202E Notebook

if your just trying to boot off of the USB, go to system BIOS and enable CSM. you also need to put it into legacy mode.


Can a fresh installed Ubuntu 20.04 LTS Server run without snapd?

Yes, it is safe to remove snapd on Ubuntu Server 20.04.

However, you will not be able to use LXD containers.

LXD in Ubuntu 20.04 is available by snap ONLY. The deb package is transitional, and merely installs the snap.


Generate a proper 404 page for blocked sites via /etc/hosts instead of redirect to localhost

I assume you're running a local web server?  It seems like you are, so I will assume that.  Also, I'm hoping you're using Apache, although other web servers probably have the same capabilities, but I don't have experience with any others.

If you are blocking a large number of sites, this might become too much trouble, but you could probably create a virtual domain with a start page for your 404 page.  If you know PHP, you could probably customize it with the name of the site that's been blocked for a more informative message.

The hosts file would stay the same, and the additions would be made to Apache's configuration file in /etc/apache2/sites-enabled.  Initially, there is only the document root, defined, I think, as /var/www; you can not only change this, but you can add any number of additional directories with associated names and aliases.

My idea is to add one for a new directory that would contain your 404 page.  Decide on a directory and a "site name", and add a new entry to the file.  For example:

<VirtualHost *:80>
    <Directory /var/www/my404>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>
    DocumentRoot /var/www/my404/
    ServerName my404.loc
    ServerAlias www.domain.com
</VirtualHost>

You can add an entry to your hosts file with localhost   my404.loc, and then you will be able to access the page locally for testing by entering http://my404.loc.  Hopefully, you can also access it by www.domain.com if you have that entry in your hosts file.  You should be able to keep adding more "ServerAlias" entries as you add more to the hosts file.

I hope this is clear to you, and maybe even helpful.  If you think it's helpful, but it isn't clear, feel free to ask more.

No guarantees, as I've never actually tried this whole thing. :)


In my system that happens with every Ubuntu/Backbox I have tried. It seems that the CD cannot be used as a repository (see here), which makes sense: debootstrap should need a path to a repository (some local/remote folder with a predefined structure, and .deb archives) and the Ubuntu/Backbox comes with a squashfs (basically a image with a base system in it).

As Backbox seems to be just Ubuntu 12.04 (it uses as source of packages http://archive.ubuntu.com) and some additional repositories, I think you have two options here:

Create a basic Ubuntu chroot and then install all the needed software: you can provide debootstrap with a script to add the PPA's, install the software, etc.
Extract the squashfs: you will need to mount the ISO, then mount the squashfs in it and finally copy the root filesystem:

sudo mount /path/to/backbox.iso <bb_mount_point>
sudo mount -t squashfs <bb_mount_point>/casper/filesystem.squashfs <squash_mount_point>
sudo cp -rxv <squash_mount_point> <chroot_destination>

I have not tried any of those so I can't assure you any will work. Also a valid way to achieve this would be install BB on a virtual machine (you can use QEMU/KVM/etc) and then copy the root filesystem to whenever you need it.

Good luck.


Can't get pandora plugin for rhythmbox 2.97 to work

The PPA mentioned is actually mine.

It doesnt have a pandora plugin - I presume you are referring to this GitHub project:

https://github.com/mzheng/rhythmbox-pandora

Unfortunately, this plugin as not been ported to GTK3 - thus it will not run on any version of Rhythmbox used in Ubuntu 11.10 and later.

Until someone takes on this task you will not have the ability to use Pandora radio via Rhythmbox.

Alternatives:

Rhythmbox itself has built in Radio capabilities - you can add radio stations manually.

My PPA has a plugin called radio-browser which allows you to browse various radio stations

How to integrate Rhythmbox to play Internet Radio?

There are alternative Pandora clients - such as Pithos

https://github.com/kevinmehall/pithos

Taking up the challenge:

If you are a coder yourself, then the pandora plugin is written in Python.

You'll need a good guide such as the following to help you to recode this to GTK3 using GIO bindings.

https://live.gnome.org/RhythmboxPlugins/WritingGuide

Also, looking at GTK3 python ported code will help you to understand the new structures and API to use.

https://github.com/fossfreedom/radio-browser


You could try Airack-ng, it's built to pentest WiFi networks, be it encrypted using WEP, WPA, WPA2. As the site describes it:

  It focuses on different areas of WiFi security:

  Monitoring: Packet capture and export of data to text files for further processing by third party tools.
      Attacking: Replay attacks, deauthentication, fake access points and others via packet injection.
      Testing: Checking WiFi cards and driver capabilities (capture and injection).
      Cracking: WEP and WPA PSK (WPA 1 and 2).

There's also Wifite. It's less complicated than Aircrack-ng. You could just run it like sudo wifite, no arguments, and it'll scan for networks. Once you've seen the network you want to pentest, select it by entering its assigned number, then wifite will bruteforce it using different attacks. Personally, I use wifite if the WiFi network is WPS-enabled. Or to get the handshake capture of a WPA/WPA2 WiFi, then pass it along to Aircrack-ng for the dictionary attack.


Help creating crontab to help with Disk Space Management IE: Delete files over 1 week old

find /path/to/files* -mtime +7 -exec rm {} \;


Where do I put my start up script for mysql?

Converted comment to answer

I'm still putting all my scripts in /etc/init.d and I've never had a problem with them running automatically on boot. Was something supposed to have changed? – ovangle Nov 17 '11 at 16:06


how to remove tomcat8 from kubuntu 14.04

Reverse the installation via if you have used these steps to install tomcat8

sudo initctl stop tomcat
sudo rm -r /opt/tomcat
sudo rm /etc/init/tomcat.conf
sudo initctl reload-configuration

Now, to be sure, install tomcat7 again.


Get "EnvironmentError: [Errno 13] Permission denied" error when trying to pip install any package

There are two different pip packages in Ubuntu 18.04: python-pip (for Python 2.x) and python3-pip (for Python 3.x). To install packages that are compatible with the default Python version in 18.04 you need to install python3-pip.
sudo apt install python3-pip

You can also install numpy with either:
sudo apt install python3-numpy # for Python 3.x

or
sudo apt install python-numpy  # for Python 2.x in Ubuntu 20.04 and earlier

Note the python- and python3- convention for prefacing package names of Python 2.x and Python 3.x packages in the default Ubuntu repositories.
How to upgrade pip to latest version?


Make sure you have not included the cookies in the option "Clear history when Firefox closes". Also make sure you set the cookies to be kept "until they expire".

Another alternative, which is what I do, is to use the Biscuit extension. It allows to mark certain cookies to be kept, even if Firefox is set to delete cookies when closing.


Your Pi is running an ssh server. Your PC is not. Both have ssh clients available. There are numerous ssh server packages available, but I don't know what kind of machine you are running on to recommend one. A simple Google "install ssh server 'machine type, i.e., Linux'" should suffice.

To test that it works on the machine you install it on, you can usually ssh user@localhost and not see that error message.

If you do have one installed, make sure that the port (22) is actually open on your firewall.


FGLRX won't install: Unable to correct problems, you have held broken packages

Unfortunately this is due to a bug in the latest updates to Ubuntu 14.04 and 12.04:

apt-get fails to install fglrx or fglrx-updates in 14.04.2 and 12.04.5

To fix it:

Remove the hardware enablement stack

Ubuntu 14.04 (tested and confirmed working):

sudo apt-get install --install-recommends xserver-xorg libgl1-mesa-glx libegl1-mesa-drivers

Ubuntu 12.04 (untested):

sudo apt-get install --install-recommends xserver-xorg libgl1-mesa-glx

For some reason I had to run it twice since the first time returned an error.
Clean up extra packages

sudo apt-get autoremove

Install fglrx

sudo apt-get install fglrx

Reboot


It is happening becouse you have  enabled the  Orca Screen Reader .

To disable it go to System settings -> Universal Acess and disable the Screen Reader .

You can also disbale it by editing /etc/xdg/autostart/orca-autostart.desktop

Open it using gksudo gedit
/etc/xdg/autostart/orca-autostart.desktop
Now change the NoDisplay to false

NoDisplay=false


Can't Add Podcast Episodes to Ipod After Upgrading to 12.04

I'm not sure what the exact issue was, but I was able to solve it by deleting ~/.gconf/apps/rhythmbox/%gconf.xml.

After that, Rhythmbox transfer worked fine once I restarted the program.

Thanks to this article, which contained the solution.


I had the same problem yesterday when I did the upgrade to 13.10,  the "pulse" folder was owned by root and pulse audio fail to open it.

ctrl-alt-t (open a terminal)

  gksudo nautilus /run/user/(User ID)/

My user ID was 1000 but I do not know if it's the same for everyone

Inside "/run/user/1000/" delete the "pulse" folder, close nautilus and restart.

  sudo reboot


How can I make Ubuntu (preferably gnome desktop) be 3d?

heres the requirements for 3d of the 330  http://www.nvidia.com/object/3D_Vision_Discover_requirements.html

Says it only support windows, maybe not what you wanted but maybe run win7 in virtualbox then download 3d vision

http://www.nvidia.com/object/3d-drivers-downloads.html

But hey dont let me discourage you, there's always a loophole


How can I see what version of AMD catalyst is in the "Additional Drivers"

Open Ubuntu Software Center, then search for fglrx and choose Binary ATI-Xorg driver (more information button). Here you can see, which version is shipped with Ubuntu.

I do not recommend to install the proprietary driver on AMD Fusion E-350/450 platform, because bad performance in flash and other videos (my experience).

If you want to install latest catalyst drivers, follow this step-by-step instructions:

http://wiki.cchtml.com/index.php/Ubuntu_Oneiric_Installation_Guide

To have a better Flash performance on low end CPUs copy&paste this command in a terminal window:

sudo mkdir /etc/adobe && echo "OverrideGPUValidation=true"|sudo tee /etc/adobe/mms.cfg


Belkin C300 keyboard not typing anything while booting

I have this problem with my Kinesis Advantage. It's a BIOS/UEFI problem; talk to your manufacturer.


How to have cntlm configuration per user?

Maybe by using -c flag ? And call in .profile:

/usr/sbin/cntlm -c ~/cntlm.conf

if several users are connected at the same time, you may change the listening port...


Touchscreen multitouch works in XWayland but not Xorg

Figured it out! It is just this bug, reported here:

https://bugs.launchpad.net/ubuntu/+source/xf86-input-wacom/+bug/1774242

I summarize here:

/usr/share/X11/xorg.conf.d/70-wacom.conf as shipped, has this:

Section "InputClass"
    Identifier "Wacom touchscreen class"
    MatchProduct "Wacom|WACOM|PTK-540WL|ISD-V4"
    MatchDevicePath "/dev/input/event*"
    MatchIsTouchscreen "true"
    Driver "wacom"
EndSection

and also perhaps an entry for Wacom USB touchscreen class. This causes the touchscreen to use the Wacom driver instead of the much better libinput driver. Simply removing that whole section, as well as the USB one, got my touchscreen working wonderfully!


This is kind of a theoretical answer, providing background to understand the problem:

From what you write, I assume you do not want to hear the answer "Get the connection fixed!", right?

So let's see what else we can do:

A large fraction of the packages are lost. The purpose of TCP/IP (Transmission Control Protocol) is to give you a connection that delivers data that is exactly what was send, and in the same order. You still get this from the connection in perfect quality, as long as the connection is not dropped.

But, obviously there is a compromise - the connection is slow.
Because it's really difficult to simulate a perfect connection over a connection that looses about 12% of it's data in some irregular way.

We do not expect magic, so some compromise needs to be accepted.
One could ask whether it's possible to use something else that does what TCP/IP does, but faster.
For a general solution, we can just assume that TCP/IP nearly optimal, because lots of research over lots of time was spend on it.
(With a special solution for you connection, developed based on measurements on the connection, it can be faster for sure, and even faster if you use hardware adapted to your connection - but that direction makes not much sense here)

Now, all we can do is look for a different compromise:

The other end of the scale of compromises is a very fast connection, with - 12% package loss.
That is what you have if you do not use TCP/IP, but UDP/IP (User Datagram Protocol), which transfers separate packages for you, and gives no guarantee that they arrive in order, or at all.

In theory, you could have compromises with less package loss, and slower,  in between, build on top of UDP/IP. But in many cases, only TCP/IP makes sense.

So, the practical anser is: "Get the connection fixed!"

Some practical notes:

Regarding why the connection get's slow: TCP can recognize when it sends too many packages, and slow down, but I do not think that's what is happening here.
Loosing packages is a very different problem compared to sending too many packages.

I think the time is spend on retransmitting lost packages, and waiting for missing packages in between, that need to be delivered befor others that were already received.

As you did not say which kind of data you want to transfer: There are good reasons to prefer 12% packet loss over UDP/IP for some use cases:
It you transfer real time video from a camera, you only care about packets that arrive in time to be displayed on the screen. With TCP, the data would arrive complete and in order, but unuseable, because too late. Getting 88% of a video stream right in time is a lot better, it can even be enough for a good transmission.


How to check for errors in RAM via linux?

By installing the memtester package, you can check your system for errors while it's still running. No need for a restart, just run that application.

To install it, open a terminal and type:

sudo apt-get install memtester

You can then use it like so:

sudo memtester 1024 5

This should allocate 1024MB of memory, and repeat the test 5 times.


How to blacklist zfs kernel module during boot?

If I'm correct that you installed ZFS via dkms then it looks like you need to remove it via the same tool.

dkms remove [module/module-version] [-k kernel/arch] [--all]

       Removes a module/version or module/version/kernel/arch  combination
       from  the  tree.   If  the  module is currently installed, it first
       uninstalls  it  and  if  applicable,  will  replace  it  with   its
       original_module.   Use  the  --all  option  in  order to remove all
       instances for every kernel at once.

Source: http://manpages.ubuntu.com/manpages/trusty/man8/dkms.8.html

Note: You might wish to avoid using the --all option until you are certain that you have obtained the desired results.


Extended Desktop broken into 4 halves on 2 monitors

I had the same problem, found a workaround here: http://ubuntuforums.org/showthread.php?t=2149791.

xrandr --output LVDS1 --auto --left-of HDMI1 --output HDMI1 --auto --scale 1.0001x1.0001

(Adjust outputs accordingly)
The important thing is to change the scale of your output. Beats me why this works, I hope they'll come up with a proper fix.


I run a whole Ubuntu media centre complete with Boxee on a machine with less power than that (using an Atom N270 which is a lot less powerful than the D410). It does have a graphics card to help with the video decoding but that doesn't lift all the weight off the CPU.

You can actually rent dedicated hosting servers that use the D410. This little CPU is up to the task... Just be aware that it's (obviously) not going to be as fast as a "real" server or desktop processor.

Ubuntu Server will do just fine.


How to install Windows 8.1(10) in a pre-installed Ubuntu 14.04

Windows ties its boot mode and partition table type together quite tightly:

An MBR partition table may be used if and only if the computer boots in BIOS/CSM/legacy mode.
A GUID Partition table (GPT) may be used if and only if the computer boots in EFI/UEFI mode.

You currently have an MBR partition table. The error message you report indicates that you booted the Windows installer in EFI mode. To install to your disk, you must boot the installation disc in BIOS mode. Your firmware is almost certainly already configured to support this (see below), but you happened to follow an EFI path when booting the Windows installer. Try again by using the computer's built-in boot manager (typically accessed by hitting a function key early in the boot process). This time, though, carefully read the options. There will probably be two options for the optical drive or USB flash drive you're using. One option will include the string "UEFI" and the other won't. Select the option that lacks this string and you should boot in BIOS/CSM/legacy mode.

If you don't see a BIOS-mode boot option, it's possible that your boot medium lacks that support. A few USB flash drives seem to be unbootable in BIOS mode on some computers, in my experience, even when they've got the right data; this seems to be something electrical about the device. Thus, you might need to try another USB flash drive. It's also possible for a USB flash drive or optical disc to be missing the necessary files or data structures, in which case you may need to prepare the disc in some other way. I don't know what that way might be for a Windows installation medium. You may need to ask on a Windows forum if you think this is the problem.

Incidentally, you are almost certainly already booting Ubuntu in BIOS mode. I say this because, when Ubuntu installs in EFI mode, it uses GPT by default, but your fdisk output and screen shot both show an MBR partition table. Furthermore, it's an MBR partition table that lacks an EFI System Partition (ESP), which is where EFI boot loaders are stored.

If you can't seem to get the Windows installer to boot in anything but EFI mode, you can convert your Ubuntu installation to boot in EFI mode, too. This process is not risk-free, so you should back up before proceeding. To try:

Download the USB flash drive or CD-R image of rEFInd. Prepare a boot medium and test that it works. (You should be able to boot your existing Ubuntu installation with it.)
In Ubuntu, launch gdisk on your hard disk (as in sudo gdisk /dev/sda).
In gdisk, type v to verify the disk. If gdisk reports any errors, abort by typing q and fix the problem.
If there are no problems, type w to save your changes (the conversion from MBR to GPT that gdisk does automatically).
Reboot into an Ubuntu live CD.
Use GParted to resize a partition so that you've got ~550MiB of free space. This free space can be anywhere, but it's best near the start of the disk.
In the free space, create an ESP. This should be a FAT32 partition with its "boot flag" set.
Install Windows.
Using the rEFInd CD or USB drive, test that you can boot both Windows and Ubuntu.
Using rEFInd, boot to Ubuntu.
Install a Linux boot loader. Two relatively easy options are:

Install the rEFInd Debian package or PPA.
Run Boot Repair to replace the BIOS-mode GRUB you've got now with an EFI-mode GRUB.

Reboot and hope it all works.


install the pre-requisites:

sudo apt-get install xbindkeys xautomation

Then create the xbindkeys config file:

touch .xbindkeysrc

bind the key:

Now we need to figure out what the keysym of your caps lock button is. Run

xev | grep key

Put your mouse into the box that appears and press the caps lock button. This is what I get.

The important part here is

(keysym 0xffe5, Caps_Lock),

Write the keysym (0xffe5) down, you'll need it later.

Now edit the xbindkeys config file.

gedit .xbindkeysrc

And add the following to the file:

" xte 'key 0xffe5' "
b:2

(note, replace 0xffe5 with whatever number you got earlier. I bet it will be the same, but I'm not sure).

Save and close the file.  Now run:

xbindkeys

You're done!

Caveat:

On my keyboard, this method didn't toggle the light on the caps lock key, (which is understandable), so you will probably lose any indicators you have that caps is enabled. Any software indicators should still work though.


It looks like that you have an older gtksource version, so you need to update to the correct version. You do this by issueing following command in a terminal:

sudo apt-get install gir1.2-gtksource-3.0

Also, never edit the fstab file with just gedit Try one of these:

gksu gedit /etc/fstab

OR

gksudo gedit /etc/fstab


Cannot connect Micromax MMX354G datacard in Ubuntu

Assuming you only want to connect to the Internet using the datacard and nothing else (such as making calls using the custom software your datacard manufacturer has provided), you just need to create a new mobile broadband connection for which you probably don't need to install those drivers.

Your data card should show up a usually within a minute of plugging in. Follow the following steps:

Click the network manager icon and you should see Mobile Broadband.
Once you see that, it means that your data card has been detected. Click Edit Connections.
In the Network Connections dialog, click on the + button to add a new connection.
Choose your Connection type as Mobile Broadband.
Click next and choose your country.
Click next and choose your operator.

Finish and you should see your connection in Network Manager. Click on it to connect to the network.


How do I check if a file is DRM protected?

Audio DRM is mostly format specific in that most DRM-capable formats are readily identifiable by their container which is usually reflected in their extension. This is to let the player know what it's dealing with, without having to analyse the file. A common example is an AAC file that you might buy from iTunes. If it's protected with FairPlay DRM the file is named as .m3p (vs the unprotected .m4a).

There's nothing to stop companies encrypting a .mp3 and leaving the extension the same - it's just going to annoy users when they switch to one of the billion available MP3 players and it doesn't work.

For video things can be a little more complicated. Some video container formats support DRM so their extension doesn't neccessarily change. I'd suggest trying to get ffmpeg or themonospot to analyse each file.

Here's a little bash function I've just written that can get the codecs from a file:

function codec() {
    ffmpeg -i "$1" 2>&1 | grep Stream | grep -Eo '(Audio|Video)\: [^ ,]+'
}

In action:

oli@bert:~/Desktop$ codec "The Beatles - 01 - Back In The U.S.S.R.mp3"
Audio: mp3

You could trim that down even more but give it a shot on some known DRM-laden media and see what happens. It'll either explode or will tell you about the DRM.

Anyway, once you know what to expect, you can batch that, or something like it to quickly tell you which files have DRM.


have an error about locating the package during the install

Libnet is a high-level API (toolkit) allowing the construction and injection of network packets. In all currently supported versions of Ubuntu libnet is provided by libnet1 (library for the construction and handling of network packets). Open the terminal and type:

sudo apt-get install libnet1


You are installing lowlatency modules with a generic kernel.
It won't install this way. You need to download all generic, or lowlatency packages.


Protecting sensitive data when giving the laptop to a technician

Important to note:

If you give your system to a bad guy you should consider it as compromised and it could not be trusted any more.

Short answer to:

  Is there a way to let the technician freely boot into my machine (using a guest account), and at the same time, prevent the technician from viewing personal data on my computer?

Encrypt your HOME directory (Can't protect you against all possibilities)

What you have to do?

Don't give it to anyone you don't trust
If you have to:

Remove the important parts (like hard disk).
Keep track of device's frameware information if it's possible (ex: BIOS details [which can be faked anyway] )

If you can't remove the hard disk, then encryption is the best you have.   However remember that even encryption can be attacked using different methods.

As a simple example they can compromise the boot partition on your full encrypted hard disk to find your passphrase.
Change the programs on your root to find the passphrase of encrypted home directory.
Or real attacks like investigating your memory, cloning your hard disk.

In your situation the best way that I can consider is encrypting your HOME directory. So they can boot into your system and fix the issue but  can't access your data.

After you get your laptop back consider re-installing your operating system, and checking what you keep track of to make sure nothing has been changed.

And remember as my explanations suggests, the device could be physically compromised too.

So... Don't give it to a bad guy.


Do a Ctrl+Alt+F1

login and do

sudo apt-get update
sudo apt-get upgrade
sudo ubuntu-drivers devices

see what is recommended

sudo apt-get install nvidia-xxx (xxx is your recommended driver)

reboot.


Panel/Pop Up Notification issues after upgrading to Kubuntu 19.04

You could just remove the panel and add a new one. Did you try it?

To remove the panel you just have to right click it, choose "Edit Panel" and finally "Remove Panel".

To add a new one you just have to right click anywhere in your desktop, put the mouse over "Add panel" and then choose the panel template you want to add.


How can I upgrade a package without removing its dependencies?

Only way i know for holding is using aptitude, where you can set packages to hold. The only problem is, that you should further use aptitude for every updating/installing/removing task, because AFAIK other package manager tools does not care about hold-flags. In apt-get docs is also option --ignore-hold, but at least last time i used apt-get with hold-flags set to some packages, it ignored them anyway.


How do I serve a website from a virtual machine on virtualbox?

As CelticWarrior mentions, Easiest way is to change the Network configuration of the VM in your Hypervisor (either Vbox or VMware or KVM). Whichever Hypervisor you are using, configure the Network connection to sit in the same network as the HOST, instead of Natted.

If you still want to NAT on your VM, or do not have the option to change it; you can configure IPtables to perform a Port-Forward to the VM's IP and port number. Using something like the following link:

Simple port forwarding


How to run commands in the shell in parallel without disrupting the output?

Meet GNU parallel  (sudo apt install parallel):

  GNU parallel is a shell tool for executing jobs in parallel using one
  or more computers. (…) [It] makes sure output from the commands is the
  same output as you would get had you run the commands sequentially.
  (man parallel)

In your case with repeating arguments you can make use of bash Brace Expansion to easily build the command lines. The basic syntax is parallel COMMAND {} ::: ARGUMENTS, if you want to give each run multiple arguments take care of proper quoting to prevent word splitting, e.g.:

$ parallel echo ./run some args {} ::: {"1 0 "{10,25},"2 0 10"}\ {0.{1,2,5},1}
./run some args 1 0 10 0.1
./run some args 1 0 10 0.2
./run some args 1 0 10 0.5
./run some args 1 0 10 1
./run some args 1 0 25 0.1
./run some args 1 0 25 0.2
./run some args 1 0 25 0.5
./run some args 1 0 25 1
./run some args 2 0 10 0.1
./run some args 2 0 10 0.2
./run some args 2 0 10 0.5
./run some args 2 0 10 1


It pretty much tells you what is wrong:

XAMPP: Another web server daemon is already running.
XAMPP: Another MySQL daemon is already running.

XAMPP doesn't start apache because another webserver is  running. Seems it doesn't like nignx even though you changed the port. XAMPP also doesn't start its own MySQL server because you are running another one.


Obviously that task of filtering runs in a single thread. If an application is not written to take advantage of more threads/cores, operating system cannot do anything to run it in parallel, and you can have as many cores as you can, but only one will be used. Operating system can run independent applications in parallel. Within application, the application must make sure to take advantage of parallel computing. Some tasks can be executed in parallel and some need to wait for a result from previous command, so they have to run sequentially, and there is no way to split in it pieces and run them in parallel. Operating system cannot know which parts of an application can be parallelized. That is application's responsibility.


You can install it without that files, just open terminal and run:

sudo apt-get install wkhtmltopdf

Then use it from the command line like:

wkhtmltopdf example.org
wkhtmltoimage example.org

Or you can copy the files you've downloaded to /usr folder using your window manager or running sudo mv * /usr from in the directory you uncompressed the tar.xz file.

Or you can run the file from where you extracted them using:

chmod -R u+x /extracted/path
./extracted/path/bin/wkhtmltopdf <arguments>

Cheers.


Where does Ubuntu store its keyboard shortcut configuration?

Since Ubuntu 17.10

On this paths:

dconf dump /org/gnome/desktop/wm/keybindings/
dconf dump /org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/  # Custom

You can also use dconf-editor (GUI) or gsettings (CLI).

Since Ubuntu 12.10-17.04

~/.config/dconf/user (in dconf-editor: org.gnome.settings-daemon.plugins.media-keys.custom-keybindings (custom shortcuts)

~/.config/compiz-1/compizconfig

Until Ubuntu 12.04

The shortcuts are placed differently depending on witch desktop you are using (gnome/unity, kde, xfce, lxde,etc).

For gnome, they are under
~/.gconf/desktop/gnome/keybindings (custom shortcuts)

and under
~/.gconf/apps/metacity.


Recovering file from bad synchronization

Versioning is a strength of CouchDB, but CouchDB is not used by file synchronization.

However, conflicts are handled gracefully, albeit not entirely user friendly yet. In the same directory as your original file, you will find files called filename.u1conflict*, like mydocument.odf.u1conflict and mydocument.odf.u1conflict2, etc. Those are the original conflict files, so you can just rename and use them as before.


If it starts blinking when you access flash in Google Chrome, it might be caused by a bug in their Pepper-based Flashplayer. To fix it, go to about:plugins in Chrome, click +Details to expand all items, then disable the plugin /opt/google/chrome/PepperFlash/libpepflashplayer.so. Leave the regular libflashplayer.so plugin enabled, or install it if you need to. Should stop the blinking.


BIOS
Gigabyte motherboard-GA-970A-DS3P
You have BIOS version F1.
There's a newer BIOS available, version F2j, for motherboard rev 1.x, and can be downloaded here.

Note: Verify that I have the correct web page for your model version #.
Note: Have good backups before updating the BIOS.
Note: For revision 2.x motherboard, see here.
Memory
Ryzen processors are notorious for memory compatibility issues.
Go to https://www.memtest86.com/ and download/run their free memtest to test your memory. Get at least one complete pass of all the 4/4 tests to confirm good memory. This may take many hours to complete.
CPU Support List: https://www.gigabyte.com/Motherboard/GA-970A-DS3P-rev-10/support#support-cpu
Memory Support List: https://www.gigabyte.com/Motherboard/GA-970A-DS3P-rev-10/support#support-doc
Update #1:
To check your file system...

boot to a Ubuntu Live DVD/USB in “Try Ubuntu” mode
open a terminal window by pressing Ctrl+Alt+T
type sudo fdisk -l
identify the /dev/sdXX device name for your "Linux Filesystem"
type sudo fsck -f /dev/sdXX, replacing sdXX with the number you found earlier
repeat the fsck command if there were errors
type reboot


One possible solution could be as follows:

apt-cache show hello
apt-cache show hello-debhelper


Doomsday application - How do I delete it?

Copy and paste or type this into your terminal and it should work for you:

sudo apt-get remove doomsday doomsday-common doomsday-data fluid-soundfont-gm freedoom libassimp3v5 libfluidsynth1 libmad0 libminizip1 libsdl2-mixer-2.0-0 musescore-soundfont-gm timgm6mb-soundfont

That looks like all the packages related to it!

Also, to find out what packages on which a certain package depends, you can use the command

apt-cache depends packagename

which will list all dependencies for packagename, so

apt-cache depends doomsday

will list all the packages associated with doomsday.


Problem with permissions after upgrading

Can you reproduce this symptom with a fresh, new user account?


You need to log out again for these changes to take effect. The shell defined in the /etc/passwd file is your login shell :-) So you need to log in actually for that.


How to specify default Ubuntu 16.04 installation language in isolinux/lang?

Found a different workaround for this. Set Ubuntu installer to select default values automatically and proceed with installation:

sed -i -r 's/timeout\s+[0-9]+/timeout 1/g' /isolinux/isolinux.cfg

Source: https://github.com/fries/prepare-ubuntu-unattended-install-iso/blob/master/make.sh


Is there any XBMC remote control for Ubuntu?

There is a web interface for XBMC which allows you to use your browser to pick media, but it is more limited than the UPnP remote controls for eg, Android. Nonetheless, if you just want to play things it's perfectly servicable.

Enable the web interface from within XBMC with System->Settings->Network->Services->Allow Control of XBMC via HTTP.

Then point a browser at http://host:8080/, where host is the IP address of the device running XBMC. If (as implied by raspbmc) the device is a raspberry pi, by default I think you should be able to use raspberrypi.local instead of needing to look up the IP address.


GT 310M Graphics drivers for Ubuntu 15.04

Run in terminal

sudo apt-get purge bumblebee nvidia*
sudo apt-get install nvidia-340 nvidia-prime

and reboot.

Bumblebee does not work well in 15.04. You can switch the adapters by nvidia-prime.

Switching adapters is done by

sudo prime-select nvidia

or

sudo prime-select intel


Record video but not audio playing on system

There are several applications and techniques that could be used here but the easiest and probably most effective is to use the application SimpleScreenRecorder, a great front end for FFmpeg:
sudo apt-get install simplescreenrecorder

For this to work in your case you need to:

Use the 'Select window...' option for Video Input to select your webcam playback window.
Change the Audio Input Source to the source relevant to your webcam.

Here is a screen capture of this working on my own system:

This worked well on my system and should on yours as well...


Edit /etc/default/haproxy and make sure it has a line that says ENABLED=1 in it.

The default is ENABLED=0. This is done because haproxy has no sane default configuration, so you need to first configure it, then enable it.


Ubuntu GRUB installation error while installing Ubuntu on MacBook Pro 2019

The newest Macs can have a SSD that requires a driver that your version of Ubuntu may not have. You should make sure you are installing the latest version of Ubuntu. The versions of macOS available to your Mac have a built‑ in driver for this type of drive. Also, Apple supplies a driver that allows Windows 10 to be installed on this type of drive. If you can not get your version of Ubuntu to install, then you should opt to install Ubuntu to an external drive.


Apart from creating aliases for your programs, it's not really possible to have setsid automatically prefixed before every command typed in the terminal. However, I find it is very useful to create an .inputrc in your home folder and place in it (observing the quoting):

Control-o: "setsid "

You can now hit Ctrl+o in the terminal and then type your command; it saves a lot of time if you need to keep repeating it. There is no error in the placement of quotes: it allows you to immediately type a command after the shortcut is used. This functionality and much more is provided by bash's readline library: see man bash or the Ubuntu manpages online.

With reference to your second question, it isn't bad practice to use setsid a lot and just depends on your particular needs. In fact it is extremely useful, because, as noted at kernel.org,

  setsid creates a new session if the calling process is not a process group
         leader.  The calling process is the leader of the new session, the process
         group leader of the new process group, and has no controlling tty...The calling process will be the only process in this new
         process group and in this new session.

Hence the program launched with setsid has complete independence from the terminal from which it was started, as a new process has been forked.

There are also other similar, but different ways of detaching a program from the terminal such as nohup or disown. (It should be said that setsid is a program from the util-linux package, while disown is a bash builtin.)  This question may be of great interest, as it touches upon such related topics:

Running programs in the background from terminal


With rename, assuming that a . only appears at the end of the filename for the extension, you can use the following expression:

s/-[^-]*\././

This replaces a hyphen followed by characters other than a hyphen until a ., with ., effectively deleting the last hyphen and the characters following it. Use it thus:

rename -n 's/-[^-]*\././' *

If the changed names look fine, then run without -n.


Add a user as a sudoer is not enough for the GUI - the user / group also needs to be configured as an admin in polkit. For example, if you want to allow all members of the non-standard / custom sudocustom group to run sudo graphically, assuming they're configured as sudoers, you could modify /etc/polkit-1/localauthority.conf.d/51-ubuntu-admin.conf from:

AdminIdentities=unix-group:sudo;unix-group:admin

to

AdminIdentities=unix-group:sudo;unix-group:admin;unix-group:sudocustom

This should give you a selection of users from the list of groups to elevate as (i.e. all members of sudo, admin and sudoers above).


From command line :

sudo shutdown -h 23:30

The computer will shut down at 23h30.

sudo shutdown -P 45

The computer will shut down in 45 minutes.

Graphical solution : EasyShutDown


How do I restore old Empathy logs from a previous installation?

You can restore saved logs only if your Ubuntu installation as been upgraded from a previous version or if you (or the man who supported you) backed up your data in advance.
Reading your question I understand your helper put all your old data in a separate partition/position.

If so, first of all, ask him where he put your old data, and take a note: from now on I'll call this path <OLD-PARTITION>.
Then, note your user name: it is the name you can read in the top-right corner of your desktop in Ubuntu 11.04. I'll call this <your-new-username> from now on.
Same for your old user-name before upgrading (in case it was different): <your-old-username>.

Now, open Nautilus, the file browser. If you don't know how to do, just open a terminal and type nautilus <OLD-PARTITION>.

Now you shall browse till you reach the path below. Starting from the <OLD-PARTION> part, you only need to right click folders between "/" to reach it. If you cannot see the .local folder, press CTRL+H in Nautilus to show hidden files. Once you reach the "TpLogger" folder, right click on the "logs" folder and select Copy:

<OLD-PARTITION>/home/<your-old-username>/.local/share/TpLogger/logs

Then, do the same to restore, using following path.  Once you reach the "TpLogger" folder, right click folder list and select Paste:

/home/<your-new-username>/.local/share/TpLogger/logs

After this, restart Empathy.


acpi_listen only detects every other backlight hotkey press

I was do the same as above. Then I had to Text my g75VW and closed the lid.

I come back after a while then I opened the lid and then the backlight was working with F5/F6 as it should be…

Only the onscreen display not showing…

I tried again with lid closing and after a while open it and it still working..

Hope it's helps.


Install the xdotool package, you can read the manpage at http://manpages.ubuntu.com/xdotool.
Add a small delay after starting the window and you should be able to set the focus on it from the start script.


You'll need to install pulseaudio-module-jack and ensure the jackdbus-detect module is loaded in pulseaudio, for it to release control of the sound device and allow jackd to grab the hardware instead. Or you'll need a secondary audio card or interface for using with jack.

I have a secondary USB audio interface for use with jack and the pro audio tools in my setup, and let pulseaudio keep the internal Intel audio card, for example.

You'll also likely want to install the linux-image-lowlatency kernel for better RT processing support with jackd.


Centrino Ultimate N wireless card not working on a Thinkpad X230T

Please do:

    gksudo gedit /etc/modprobe.d/iwlwifi.conf

Add a single line:

    options iwlwifi 11n_disable=1

Proofread, save and close gedit. Reboot and tell us if the behavior improved.


Some useful information on wireless trouble shooting  can be found here.

Although if you are trying to capture packets for analysis maybe use wireshark?

If you intend to use aircrack ( like here ) or some variant then I'm not sure this forum is the best place for your question?

Also, to set a device to monitor mode I think this would need to be done.

sudo iwconfig wlan0 down
sudo iwconfig wlan0 mode Monitor
sudo iwconfig wlan0 up


how to install nvidia drivers for Geforce 750M? (no bumblebee)

It's hybrid graphics laptop. You can't install nvidia graphics driver directly. As i know NVIDIA doesn't work in VGA(low graphics mode or minimal graphics support) in hybrid system. You have to install bumblebee and configure bbswitch to always use the card(battery issue, no recommended).

Install bumblebee-gui to easily select application which you want to run with nvidia. To install bumblebee successfully in ubuntu 13.10 follow this thread.


iptables-persistent / netfilter-persistent has (dependancy?) problem on 15.1

Apparently this seems to be a manifestation of Debian bug 124518, which can be fixed by determining which module is causing the problem at startup (journalctl -xn), then removing it from /etc/modules as per this post.

After doing those steps, I was able to reboot, install iptables-persistent, and write persistent rules to /etc/iptables that were then loaded after a second reboot.


DNS - Hosting domain - IP provided by ISP

First of all you need to have your domain pointing towards your server.

Go to your domain manager or domain acount from where ever you have bought the domain.
Edit nameservers for the domain.
Put the IP address of your server in place of nameserverone and nameservertwo.
In your server you should have LAMP installed or any popular control panel (CPanel or Plesk) there are some opensource and free as well. to have control panel is optional but recommended to make life easier.
Than in control panel you can setup new domain acount and dns to as you wish. You can add nameserver entries.(NS)
Or you can have webmin installed on your server thats free it can help you manage your server dns, and everything.


Installed everpad, but lenses doesn't work

I believe a bug report already exists see: Everpad lens 13.10+

A work around does exist and appears to work well. See: Unity Scope Everpad


Unable to install nodejs script from nodesource

I recommend installing the latest version of Node.js natively as a snap package rather than trying to install the Node.js package from nodesource.com.
Node.js is available as a snap package in all currently supported versions of Ubuntu. Specific to Node.js, developers can choose from one or more of the currently supported releases and get regular automatic updates directly from NodeSource. Node.js versions 6, 8, 9, 10, 11, 13 and 14 are currently available, with the Snap Store being updated within hours or minutes of a Node.js release.
Node can be installed with a single command, for example:
sudo snap install node --classic --channel 11/stable

The node snap can be accessed by the command node, for example:
$ node -v
v11.5.0
An up-to-date version of npm will installed as part of the node snap. npm should be run outside of the node repl, in your normal shell. After installing the node snap run the following command to enable npm update checking:
sudo chown -R $USER:$(id -gn $USER) /home/your-username/.config
Replace  your-username in the above command with your own username. Then run npm -v to check if the version of npm is up-to-date. As an example I checked that npm was up-to-date, checked the version of an already installed package named yarn with the command npm list yarn and then updated the existing yarn package to the latest version with the command npm update yarn
Users can switch between versions of Node.js at any time without needing to involve additional tools like nvm (Node Version Manager), for example:
sudo snap refresh node --channel=10/stable

Users can test bleeding-edge versions of Node.js that can be installed from the latest edge channel which is currently tracking Node.js version 12 by switching with:
sudo snap switch node --edge

This approach is only recommended for those users who are willing to participate in testing and bug reporting upstream.
Node.js LTS Schedule
Release LTS Status  Codename    LTS Start       Maintenance Start Maintenance End
6.x     Active      Boron       2016-10-18      April 2018        April 2019
7.x     No LTS
8.x     Active      Carbon      2017-10-31      April 2019        December 2019
9.x     No LTS
10.x    Active      Dubnium     October 2018    April 2020        April 2021
11.x    No LTS                                  2019-04-01        2019-06-30
12.x                            2019-10-22      2021-04-01        2022-04-01
13.x    No LTS                                  2020-04-20        2020-06-01
14.x    Current     Fermium     2020-10-20      2021-10-20        2023-04-30


Ubuntu 17.04 - Apple Magic Mouse 2 Scrolling Not Working

it almost works for me with ubuntu 18.04.

kernel 4.15.0-13-generic
module mac_hid

Device Enabled (142):   1
Coordinate Transformation Matrix (144): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Natural Scrolling Enabled (277):   0
libinput Natural Scrolling Enabled Default (278):   0
libinput Scroll Methods Available (279):    0, 0, 1
libinput Scroll Method Enabled (280):   0, 0, 1
libinput Scroll Method Enabled Default (281):   0, 0, 0
libinput Button Scrolling Button (282): 3
libinput Button Scrolling Button Default (283): 3
libinput Accel Speed (284): -0.237410
libinput Accel Speed Default (285): 0.000000
libinput Accel Profiles Available (286):    1, 1
libinput Accel Profile Enabled (287):   1, 0
libinput Accel Profile Enabled Default (288):   1, 0
libinput Send Events Modes Available (262): 1, 0
libinput Send Events Mode Enabled (263):    0, 0
libinput Send Events Mode Enabled Default (264):    0, 0
Device Node (265):  "/dev/input/event22"
Device Product ID (266):    76, 617
libinput Drag Lock Buttons (291):   <no items>
libinput Horizontal Scroll Enabled (292):   1

libinput Scroll Method Enabled (280):   0, 0, 1 initially was 0, 0, 0. After changing to 0, 0, 1 clicking and holding right button enables scroll by moving the mouse


see https://bugs.launchpad.net/ubuntu/+bug/1173834

Setting "Show desktop icons" ON fixes the problem for me.

You can access this configuration using the "Ubuntu Tweak" utility in 'Tweaks->Desktop Icons'.


What is the best app for search and play youtube videos?

I recommend SMPlayer it's my fav. it's got Youtube browser built-in.

sudo add-apt-repository ppa:rvm/smplayer
sudo apt-get update
sudo apt-get install smplayer smtube smplayer-themes smplayer-skins

Alternative is Youtube Viewer.

P.S.

Because of Google policies and restrictions if you can't play VEVO videos for now this is how it's gonna be.


Ubuntu touch reverse tethering and click apps/updates

worked well here with revision OTA-8 BQ Aquaris E4.5.
thanks for your mini-tutorial. I add some informations:

On phone device:

android-gadget-service enable rndis
sudo route add default gw your_computer_usb_ip
echo nameserver 8.8.8.8 > /etc/resolvconf/conf.d/tail
resolvconf -u

On computer:

echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward
sudo iptables -t nat -A POSTROUTING -s 10.0.0.0/8 -o eth0 -j MASQUERADE


Can I install Ubuntu without first booting Windows 8?

I have recently installed Ubuntu 12.04LTS on a Samsung NP355V5C, which is I think a series 3, and did not boot into windows at all.  It is very easy.

As pointed out, you need an install CD or a UEFI boot USB.  To do this, you can buy one, ask a friend to create one on his computer, or you could get the windows-8 set up on your PC, just to create the UEFI booting USB.  When you have a USB ready, but not plugged in to the Samsung, switch the laptop on while holding down F2 to get to the BIOS. In here I altered the boot option to disable secure boot, but this is probably not necessary.

Windows 8 does not bypass the BIOS, but the BIOS is set to run the windows startup programs (you can see the setting in the BIOS).  This disappears when you disable secure boot, but if you do want secure boot you can have it with ubuntu 12.10.

Reboot with the USB inserted, and take the options to install ubuntu as the sole operating system.  This WILL create partitions and scrub off the windows-8, but if you just take the default options it does this automatically without you being aware of it.  You (after restarting when prompted) will then be running the laptop 100% in ubuntu.

Everything I want works - sound, ethernet, wifi, DVD, etc.  But if your laptop is an AMD processor like mine, in the ubuntu additional drivers you should select "ATI/AMD proprietary FGLRX graphics driver" to get resizeable starter icons and (they say) better graphic performance.


well you can install Point Linux , it also uses Gnome 2.x only. I have read the Doc at it official site : http://pointlinux.org/

its also Debian based Linux.

Screen shots:They are different languages.

**@OP As I have seen **

Ubuntu 10.04 LTS Desktop supports ,May 9 2013 ( Reached EOL already)
Ubuntu 10.04 LTS Server supports, April 2015 ( We have two more years)

So you can install Ubuntu 10.04 LTS server edition (http://releases.ubuntu.com/lucid/ for download links) and then

sudo apt-get install ubuntu-desktop

will install gnome 2.X in your Ubuntu and you can enjoy it for two more years.


Specific version of library is not available

To install version 1.0.1f if it is missing from your repos after an upgrade you can install it with this deb file

For 64bit

wget archive.ubuntu.com/ubuntu/pool/main/o/openssl/openssl_1.0.1f-1ubuntu2_amd64.deb

sudo dpkg -i openssl_1.0.1f-1ubuntu2_amd64.deb

For 32bit

wget archive.ubuntu.com/ubuntu/pool/main/o/openssl/openssl_1.0.1f-1ubuntu2_i386.deb

sudo dpkg -i openssl_1.0.1f-1ubuntu2_i386.deb

Or find the downloads for may linux versions here.


How to check whether a partition is mounted by UUID?

lsblk might help. It can print just the UUID and mount point, so, given the UUID, just see if the mount point is not empty:

uuid=foo
lsblk -o UUID,MOUNTPOINT | awk -v u="$uuid" '$1 == u {print $2}'

So:

uuid=foo
mountpoint=$(lsblk -o UUID,MOUNTPOINT | awk -v u="$uuid" '$1 == u {print $2}')
if [[ -n $mountpoint ]]
then
    echo mounted
else
    echo not mounted
fi

Since lbslk can act on specific devices, you can also do:

mountpoint=$(lsblk -o MOUNTPOINT "/dev/disk/by-uuid/$uuid" | awk 'NR==2')

With the first method, there won't be an error if that UUID isn't from a currently connected disk. With the second method, lsblk will error out if /dev/disk/by-uuid/$uuid doesn't exist.


Thanks everyone for your suggestions. I found it easiest to understand how to do it (though I still don't understand the logic behind it) with:

cd ~/workspace_b4a
cd android-sdk-linux
cd platform-tools
ln -sv ../build-tools/20.0.0/lib/ .


ubuntustudio-controls instead of qjackctl 19.04

If qjackctl was working for you before, go ahead and use it. The settings you use in qjackctl should easily transfer to Ubuntu Studio Controls, so I find it peculiar that it's not working well. Disabling the PulseAudio bridge might help reduce your Xruns as it requires a higher buffer.

Unfortunately, there is no easy way to troubleshoot this easily via this forum, so I encourage you to join one of our chat support methods (and stay connected until someone can respond, be very patient) linked at https://ubuntustudio.org/support.


You need to add the Git Maintainers repository in order to get the latest Git version.

Please run these commands in order:

sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git

Then, check the version of the installed Git:

git --version

It's not always necessary to remove the existing Git before upgrading it, but if you run into any problems, do the following and then repeat the steps mentioned above:

sudo apt-get remove git


Ubuntu 18.04 abiword - Unable to init server: Could not connect: Connection refused

Abiword seems to need an X server to convert things, even without causing any obvious windows to appear.

You could try setting up a dummy X server, or maybe SSHing in from a client with a GUI.

On Linux you could try ssh -X, or on Windows, Xming/PuTTY has worked for me in similar cases, as long as you enable X11 forwarding (in Connection -> SSH -> X11).


Set custom added PATH vars to work in each Terminal session

Adding them to ~/.profile (apply to your user) or a /etc/profile.d/*.sh file (apply to the entire system) is the correct way. In order for the change to apply, you have to log out of your system and log back in, as ~/.profile and /etc/profile.d/*.sh are loaded when you login.

To 'reload' ~/.profile in a running terminal, you can use source ~/.profile


You should enable gpu decoding using this guide How do I enable hardware accelerated video in VLC with Intel HD 4000 GPU? and see if that helps it really helped with my netbook a dell mini 1012


From the QEMU  3.0.0 documentation

qemu-system-XXXyour_machineXXX [options] [disk_image]

Option:
-numa node[,mem=size][,cpus=firstcpu[-lastcpu]][,nodeid=node]
-numa node[,memdev=id][,cpus=firstcpu[-lastcpu]][,nodeid=node]
-numa dist,src=source,dst=destination,val=distance
-numa cpu,node-id=node[,socket-id=x][,core-id=y][,thread-id=z]

Define a NUMA node and assign RAM and VCPUs to it. Set the NUMA distance from
a source node to a destination node.

Legacy VCPU assignment uses ‘cpus’ option where firstcpu and lastcpu are CPU
indexes. Each ‘cpus’ option represent a contiguous range of CPU indexes (or a
single VCPU if lastcpu is omitted). A non-contiguous set of VCPUs can be
represented by providing multiple ‘cpus’ options. If ‘cpus’ is omitted on all
nodes, VCPUs are automatically split between them.

For example, the following option assigns VCPUs 0, 1, 2 and 5 to a NUMA node:

    -numa node,cpus=0-2,cpus=5

‘cpu’ option is a new alternative to ‘cpus’ option which uses ‘socket-
id|core-id|thread-id’ properties to assign CPU objects to a node using
topology layout properties of CPU. The set of properties is machine specific,
and depends on used machine type/‘smp’ options. It could be queried with
‘hotpluggable-cpus’ monitor command. ‘node-id’ property specifies node to which
CPU object will be assigned, it’s required for node to be declared with
‘node’ option before it’s used with ‘cpu’ option.

For example:

-M pc \
-smp 1,sockets=2,maxcpus=2 \
-numa node,nodeid=0 -numa node,nodeid=1 \
-numa cpu,node-id=0,socket-id=0 -numa cpu,node-id=1,socket-id=1

‘mem’ assigns a given RAM amount to a node. ‘memdev’ assigns RAM from a given
memory backend device to a node. If ‘mem’ and ‘memdev’ are omitted in all
nodes, RAM is split equally between them.

‘mem’ and ‘memdev’ are mutually exclusive. Furthermore, if one node uses
‘memdev’, all of them have to use it.

source and destination are NUMA node IDs. distance is the NUMA distance from
source to destination. The distance from a node to itself is always 10. If
any pair of nodes is given a distance, then all pairs must be given
distances. Although, when distances are only given in one direction for each
pair of nodes, then the distances in the opposite directions are assumed to
be the same. If, however, an asymmetrical pair of distances is given for even
one node pair, then all node pairs must be provided distance values for both
directions, even when they are symmetrical. When a node is unreachable from
another node, set the pair’s distance to 255.

Note that the -numa option doesn’t allocate any of the specified resources,
it just assigns existing resources to NUMA nodes. This means that one still
has to use the -m, -smp options to allocate RAM and VCPUs respectively.

You can take a look at this tutorial how to set up a VM machine.


I have solved my problem.

Here is Step-by-step instruction.

№1
Reinstall mesa.

sudo apt-get install --reinstall libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa libglu1-mesa

№2
Restore alternatives:

sudo update-alternatives --auto gl_conf

№3
Steps №1 and №2 solved problem with:

update-alternatives: warning: force re-alternatives /usr/lib/i386-linux-gnu/mesa/ld.so.conf,

But when I tried to install fglrx driver, I got message than installer cannot create file in /etc/X11/Xsession.d. I checked /etc/X11 but there was no Xsession.d folder:

sudo mkdir /etc/X11/Xsession.d

№4
Install fglrx from generated packages and reboot.


What are the advantages and disadvantages of creating a /usr partition for a desktop environment (16.10)?

I would advice not to spread your system directories over more than 1 disk. You are creating more points of failures: if your HDD dies you can not boot your system. If your HDD is slow to boot the system might reach the mounting, not see /usr or /var and crash. If your SSD dies you can not boot and /usr and /var become useless.

Besides all that: the HDD will kill your boot time.

I myself would keep the system on /, maybe create a /home/ on it and put all your user data on the HDD (you can easily change the directories in /home/$USER/ to a data partition. Makes it easier to maintain, and makes it also easier to backup (all you need to backup is the data partition).

Mind though, this is regarding a desktop. For a server version that has a website, a dataserver, a mailserver or something similar it might be smart to put /var on a different disk (since we are talking about userdata in /var) or at least set it up such that the user data is (also) on the HDD.


Problem with Ubuntu installation - Black Screen

https://wiki.ubuntuusers.de/Grafikkarten/AMD/radeon says that the AMD® Radeon™ R9 390 GPU is supported since Ubuntu 14.04 by default.
If it's not, you should try sudo apt-get install xserver-xorg-video-ati
Maybe you could also try your luck with using https://wiki.ubuntuusers.de/Grafikkarten/AMD/fglrx


VPN configuration with same remote and local gatway IP address

So, what I did to solve this is adding a explicit route of the remote network (192.168.0.0/24 in the case above) through the VPN gateway (192.168.100.1 in the above case).


Are system packages installed into /usr allowed to be broken by source installations into /usr/local?

Based on my experience installations into /usr/local didn't affect binaries /usr/bin/[binary], but maybe that was just by accident.

You should hang out around Ask Ubuntu more often. :)

Using sudo pip install, which installs to /usr/local, breaking various Python applications is IME by far the most common Python problem I have seen here. If you installed a PyPi package that already had a system package present, it could break whatever was using the system package. Just a few weeks ago I had apt-get-installed certbot break due to a pip-installed certbot plugin.

Packages aren't supposed to officially install anything in /usr/local (exceptions like CA certificates, aside), since that is the system administrator's domain - but that's the only restriction. Clearly if the system administrator is to make full use of the power that /usr/local provides, then things elsewhere in /usr must be able to be affected them. It's not so much that they're "allowed to be broken" by source install; it's more that the system administrator is trusted to know what effects their installing things in /usr/local will have.


Nextcloud does not start after installation

I solved it by downloading the Appimage file and starting it directly.


Search not coming up with Super key after upgrade to 20.04 LTS

Do you have more than one keyboard layout?

There is a bug with the latest Gnome that makes the Super key not function with the second and forth keyboard layout in the list.


I've been unable to get it to work following the directions in the README so what I did was navigated to where I extracted the files, opened the yofrankie-win32 folder right-clicked on the highlighted file and chose Open With A Wine Application.

Some light research indicates that the inability to use the directions in the README may be a blender bug. This part I have not confirmed. However the instructions outlined above do work.


The problem seems to have solved itself.  I tried logging as a different user and the microphone worked.  I tested it using the Skype echo test and also with Audacity.
For anyone else encountering a dead mic, see if the problem is still there when you log in as a different user.  Whether the mic is working or not, you'll exclude a whole lot of possible causes of the problem.


Try installing using CD drive instead of USB. I face same problem everytime when I install Ubuntu with USB. Infact, Ubuntu even run slow. I know it sounds weird and I don't know the reason behind, but it does happen everytime. So, try installing using CD drive.


Yes. This is three finger tap followed by hold to switch between app windows. The explanation here. https://wiki.ubuntu.com/Multitouch


Install XFCE4 environment on Ubuntu 18.04 LTS

Did you choose" Xfce desktop " at the login screen ? You  might have missed that. If you are in Gnome Desktop and installed xfce4 DK as well then you have Gnome and XFCE desktops as well. So how you choose is to logout or restart , then On login screen, select the XFCE DK which can be done by clicking the setting icon near to username usually and position or option varies according to your login service whether is GDM or lightdm, etc.


It seems that linux can't resolve any ip addresses. Check your /etc/resolv.conf file if there are any nameservers. Ubuntu will replace the content of the file when it gets a new dhcp request. If you want to have a quick fix add the following lines at the top of /etc/resolv.conf:

nameserver 8.8.8.8
nameserver 8.8.4.4

this will add googles public dns servers to your linux. If you want to configure these nameservers permanently simply add the following line dns-nameservers 8.8.8.8 8.8.4.4 to your network configuration /etc/network/interfaces. In the end the configuration might look similar to this:

allow-hotplug eth0
iface eth0 inet static
    // [....]
    dns-nameservers 8.8.8.8 8.8.4.4

if the file is empty except of the lo device add the following lines:

allow-hotplug eth0
iface eth0 inet dhcp
     dns-nameservers 8.8.8.8 8.8.4.4

(the default network device will be configured through dhcp).


Boot from the live cd. Mount your destination media to (say) /mnt.
dd if=/dev/sdXXX of=/mnt/mybackup.ddimg

To restore:
dd if=/mnt/mybackup.ddimg of=/dev/sdXXX

The destination drive should be the same size or bigger than the original.

A better way is using tar.
Mount the source to /mnt, mount the destination to /home (say)
tar cvfpz /home/mybackup.tar.gz /mnt

This can then be restored to any size drive:
tar xvfpz /home/mybackup.tar.gz

(After mounting source to /home and destination to /mnt.)
Then just install grub.


How to change "inode change time" of a file?

There is no general command to do this. However, depending on the filesystem and your administrator privileges, you can do it.

Here is an answer for the case of ext2/3 and possibly ext4.


Change GUI/Menu's language to Chromium on Ubuntu 12.04

After trying many solutions that did not work for me, here's something that just worked fine (not on Ubuntu but Linux Mint).

 sudo apt-get install chromium-browser-l10n


I cannot give you an answer, but we are many to have the same problem for the last 24h after upgrading from pulseaudio 3 to 3.1. To confirm that this is the same issue, run in a terminal

grep pulse /var/log/apt/history.log

If you obtain something like

Upgrade: libpulsedsp:amd64 (1:8.0-0ubuntu3, 1:8.0-0ubuntu3.1), pulseaudio:amd64 (1:8.0-0ubuntu3, 1:8.0-0ubuntu3.1), libpulse0:amd64 (1:8.0-0ubuntu3, 1:8.0-0ubuntu3.1), libpulse-mainloop-glib0:amd64 (1:8.0-0ubuntu3, 1:8.0-0ubuntu3.1), pulseaudio-module-x11:amd64 (1:8.0-0ubuntu3, 1:8.0-0ubuntu3.1), pulseaudio-module-bluetooth:amd64 (1:8.0-0ubuntu3, 1:8.0-0ubuntu3.1), pulseaudio-utils:amd64 (1:8.0-0ubuntu3, 1:8.0-0ubuntu3.1)

please go on this link and report that this bug is affecting you as well to increase the priority.


I am not able to write on a network drive (Hosted with samba) using a php program. Why?

CIFS filesystems get their owner and group from parameters of the mount command:

mount -t cifs -o 'uid=...,gid=...,file_mode=...,dir_mode=...,credentials=...'

See the manual page for mount(8) for details.

You probably want to mount the filesystem with the uid/gid under which the Apache HTTP server runs.


sudo iptables -L

You need to use sudo with iptables

Edit: strikthrough due to updated answer


Is it possible to lock pdf with blank password?

qpdf and it is available from the software center

Example:

qpdf in.pdf out.pdf --decrypt --password=''


19.04 does not offer livepatch(?).
My 19.04 claims:

Livepatch is not available for this release.

Maybe it was intended to work but they cancelled it (again as they did with 18.10).
An Ubuntu One account is required. And a token. And since you have a token I'd assume it does not work (yet) for 19.04.

The wiki Kernel Livepatch only points to LTS so the websites that show what is new are probably wrong or got wrong information from Canonical.

This is a collection of notes and FAQs for the Canonical Livepatch Service. That page has a general introduction, data sheet and the ability to sign up for the service.
Kernel Version

Ubuntu 18.04 LTS 64-bit x86 4.15 GA generic and lowlatency kernel variants only

Ubuntu 16.04 LTS 64-bit x86 4.4 GA generic and lowlatency kernel variants only

Ubuntu 14.04 LTS 64-bit x86 4.4 Hardware Enablement kernel only

Additionally, network access to the Canonical Livepatch Service (https://livepatch.canonical.com:443) and the latest version of snapd (at least 2.15) are needed.


Secure Download (HTTPS) for Ubuntu Desktop

Current Ubuntu images come with MD5 and SHA256 checksums.  The checksum files are GPG signed with an Ubuntu public key.  The public key is obtained verifiably from the Ubuntu keyserver.  Easy-to-follow instructions are in How to verify your Ubuntu download.

To add to this, the binary images are signed by the Canonical Master CA, which has a chain of trust to a certificate in your machine's TPM, and will not run if tampered with and you run under SecureBoot.

Short of hopping on your bike and having the people at Ubuntu burn a fresh image while you watch them, I think this really is as good as it gets.


Windows8 uses UEFI boot, so follow the 1st paragraph of the Ubuntu Community Doc about UEFI: https://help.ubuntu.com/community/UEFI


Migrate windows 7 network drive to Ubuntu 11.10 for use as a file server

A Samba file server would work great for this. I'm not sure exactly what you mean by "linked", but you shouldn't have any problems as long as you retain the same share directory tree as you had on windows, and as long as the programs are looking for the Z:\ drive (or whatever drive letter you map the share as) and not the specific IP Address or Domain Name of the Windows machine.

Here is the official Ubuntu documentation to setup a Samba File Server.
Here is the advanced guide that shows you how to setup authentication.


The requirements for Ubuntu 18.04 minimum advisable for the Desktop version is 2GB. I ran a Samba on an Ubuntu 18.04 with that memory (server version) and I have 12-15 users working continuously. You can quietly use only 2-4 GB. 8 GB, it's already a lot to my understanding


ubuntu 12.10 failed to create a file system error

try to manage hardrive using ubuntu boot live cd .Search for gparted in dash ,you can create and manage partitions easy with this instructions here is video and link to manual

https://www.youtube.com/watch?v=qBCHsgry2RQ
http://www.linuxbsdos.com/2011/05/04/manual-disk-partitioning-guide-for-ubuntu-11-04/


MAAS deployment of node via MAAS API fails, boot error

The error was in the BIOS configuration, i disabled hard drive booting.
solution: Activate hard drive booting in BIOS options.


Brother DCP-7055 scanner: where do I put vendor/product ID?

I have got the same problem as you; and although I do know what config file you need to insert vendor and product ID, I fear it will not be enough to get rid of the "Invalid Argument" error. (At least, I am still stuck with it.)

The file you want to edit is /lib/udev/rules.d/40-libsane.rules. Here, you need to insert the following line:

# Brother scanners
ATTRS{idVendor}=="04f9", ATTRS{idProduct}=="0248", ENV{libsane_matched}="yes"

(Actually, most tutorials I found so far content themselves with `ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes"'. Your posting here was the first time I've seen a product ID to try.)

My current status: After adding my own user account to the "lp" group, I am at least able to start xsane again. But on clicking the "scan" button, I only receive an "Invalid Argument" error message.


Bumblebee with nvidia 540m 12.04 (ACER ASPIRE 5755g)

1

Open the terminal (alt+ctrl+T) and type or copy/paste

  gksu nautilus /etc/bumblebee/bumblebee.conf

Now change this line:

LibraryPath=/usr/lib/nvidia-331:/usr/lib32/nvidia-331

to this:

LibraryPath=/usr/lib/nvidia:/usr/lib32/nvidia-331

Save the file (ctrl+s) and close the textfile, folder and terminal.

2

Open the terminal again and type or copy/paste

  gksu nautilus /etc/bumblebee/xorg.conf.nvidia

and change:

#"BusID PCI:01:00:0"

to this:

BusID "PCI:01:00:0"

Once again, save the file, close the file and the folder and close the terminal.

Reboot into ubuntu. After rebooting open a terminal and type or copy/paste:

optirun glxspheres

I hope this solves your issue.


There is a post on Ubuntu forums about protecting entries by password, basically to make the recovery menuitems require you to login as superman with password 1234 you need to edit some very hairy config/script files:

Add to /etc/grub.d/00_header

cat << EOF
set superusers="superman"
password superman 1234
password bill 5678
EOF

Change /etc/grub.d/10_linux

From:

printf "menuentry '${title}' ${CLASS} {\n" "${os}" "${version}"

To:

if ${recovery} ; then
   printf "menuentry '${title}' --users superman ${CLASS} {\n" "${os}" "${version}"
else
   printf "menuentry '${title}' ${CLASS} {\n" "${os}" "${version}"
fi

Perfecting protection is profoundly hard

Other things you need to do is to password protect your bios, disable booting from anything else than primary hard drive, and encrypt your root partition and mount any other partition as noexec. This still leaves lots of vectors.


I was able to resolve this by uninstalling NPM & nodejs then reinstalling.

Then I had to hash bower:

hash -d bower

Then I just set the permissions to npm and it sorted it

sudo chown -R $USER:$GROUP ~/.npm
sudo chown -R $USER:$GROUP ~/.config


I solved this by removing the oxygen-gtk theme.

sudo rm -rf /usr/share/themes/oxygen-gtk/

See Restore GTK integration after removing KDE


The Arch Wiki is incorrect. You need to remove the "Requires" line in the *.timer file and remove the "[Timer]" section in the *.service.

I have updated the Arch Wiki to reflect this.


I installed and configured some applications after installing ubuntu 11.10 to configure power related settings. Though the battery life is not as good as I had managed in Ubuntu 11.04 but it is still not bad after applying these settings. I have managed to cool down the fan. My post is at  http://ubuntuforums.org/showthread.php?t=1859945.


I've done a comprehensive guide on "How to play League of Legends on Ubuntu 14.04". It covers everything: optimus notebooks, maestro disconnection error, user store error, in game shop big items etc... now League of Legends is 100% working here! If it helps you too, please, up vote my guide (:

How to install League of Legends in Ubuntu 14.04


Always on top sidebar : how to make all applications think the screen is less wide than it is

After reading this question and answer by Ryan Reich i could achieve this with compiz.

As you can see, I have conky running in the right and when a window is maximize... does not cover my conky configuration.

In my example, I have this Desktop resolution "1920x1080" and my conky use 270 px in the right.

1) Firs you need to install the Compiz configuration settings manager package.

2) Open Compiz configuration settings manager and go to "General Options" > "Display Settings" Tab.

3) Edit these settings according to your needs, in my example "uncheck" the "Detect Outputs" and in "Outputs" settings, create 2 entries. The first one for the area that the applications "can see" to maximize.

my case is 1650x1080-270+0 (1920 - 1650 = 270px to conky in the right).

The other entry is you full resolution, my case 1920x1080.

Then go to the "Overlapping Output Handling" setting and choose "Prefer smaller output".

4) press Alt + F2 and execute:

compiz --replace

Now the windows when are maximized left the 270px free for conky to be displayed.

If you want to change to your full resolution... change the "Overlapping Output Handling" setting for "Prefer larger output".

Hope this will helful.


Deleted my ubuntu partition off windows. The system will no longer boot up (Only boots into grub)

well go to an live cd and try

https://www.boyans.net/dual-boot-repair-windows-10.html
or

Uninstall Grub and use Windows bootloader


How to set default layout/profile for Terminator for tabs on start?

Your terminator starts with the solarized-dark layout because of your layout config for the first child specifies so.

[layouts]
  [[default]]
    [[[child1]]]
      ...
      profile = solarized-dark

If you want to make solarized-dark your default profile change your profile default config (you can copy/paste or rename your current solarized-dark profile to default)

[profiles]
  [[default]]
    # solarized-dark
    palette = "#073642:#dc322f:#859900:#b58900:#268bd2:#d33682:#2aa198:#eee8d5:#002b36:#cb4b16:#586e75:#657b83:#839496:#6c71c4:#93a1a1:#fdf6e3"
    foreground_color = "#eee8d5"
    background_color = "#002b36"
    cursor_color = "#eee8d5"

Ideally we would have the option of referencing a profile config on the default section (instead of having to have a copy) but AFAIK that is not possible.

PS: I don't like the idea of always_split_with_profile = True because it forces to inherit the profile which might not be desired in all situations.


You may need to do some manual changes to your ESP (EFI-System-Partition)
Start Lubuntu from your Installer-USB-stick, Try Lubuntu.
Now we will mount the ESP and create some directories, copy the file grubx64.efi
to the new directories and rename the copied file.
First mount the ESP in terminal with

sudo mount -t vfat /dev/mmcblk0p1 /mnt

You may open your filemanager now and browse to /mnt.You should find the following
directories and files:

/mnt/EFI
/mnt/EFI/ubuntu
/mnt/EFI/ubuntu/grubx64.efi

If you can't find the file grubx64.efi, you should run Boot-repair again with the
Recommended-repair-option, but it looks like you have done that already and the file is
in the correct location.
If you found the file grubx64.efi in /mnt/EFI/ubuntu, go back to terminal and use the following commands:

sudo mkdir /mnt/EFI/Microsoft
sudo mkdir /mnt/EFI/Microsoft/Boot
sudo mkdir /mnt/EFI/BOOT

sudo cp /mnt/EFI/ubuntu/grubx64.efi /mnt/EFI/Microsoft/Boot
sudo mv /mnt/EFI/Microsoft/Boot/grubx64.efi /mnt/EFI/Microsoft/Boot/bootmgfw.efi

sudo cp /mnt/EFI/ubuntu/grubx64.efi /mnt/EFI/BOOT
sudo mv /mnt/EFI/BOOT/grubx64.efi /mnt/EFI/BOOT/bootx64.efi

Please be aware of case-sensitivity, if possible use copy and paste.
Restart the machine and boot directly to EMMC: HBG4e 32G
If you are still unable to boot Lubuntu from your internal drive now,
I will be out of ideas.

Here you can find some
background-information.


The issue was arising because of different timestamps on the CPU clock and the NIC.
NIC was two hours ahead and caused the time to change for all other systems.

These two commands worked for me:

sudo ptp4l -i <interface> -2
sudo phc2sys -a -rr

-2        IEEE 802.3

-i        interface

-a        turn on autoconfiguration

-rr       synchronize system (realtime) clock and also consider it as a time source


Brightness keys do not work: gmux_backlight and nv_backlight

A workaround could be to create such a key-binding that will edit gmux_backlight/brightness if you're stroke your keys for brightness. Unfortunately I have no Xubuntu running, so I'm not sure if you can configure this via Settings-Manager xfce4-settings-editor or you have to use xbindkeys essentially you could execute a shell script. For example the shell script which reads the current brightness-value and reduce it would look like:

backlight=`cat /sys/class/backlight/gmux_backlight/brightness`;
if [ $backlight -gt 1 ]; then
       backlight=$((backlight - 1));
       echo $backlight > /sys/class/backlight/gmux_backlight/brightness;
fi


Ubuntu 14.04 LTS, can not use apt-get -f install

please try:

 `sudo rm /var/cache/apt/archive/lock`
 `sudo dpkg--cofigure -a`

I had same problem and they worked for me


Other than suggest you to keep more atention next time and don't go around pasting commands (this is a comment in the site you mention: "This repository no longer has elementary-desktop package" and you also verify this in the PPA itself) the best you could do is remove the PPA along with any package that installed. This wont guarantee anything and please be careful with pasting commands when you don't know what they do.

To remove this PPA and the packages it installed you should first install PPA purge with this command:

  sudo apt-get install ppa-purge

Following with:

  sudo ppa-purge ppa:elementary-os/stable

This should downgrade any package you installed back to the official Ubuntu repository ones.