Need to move my swap partition to let my root partition grow. How?

The resizing operations won't cause any issues with the filesystem, but you may need to update your /etc/fstab to point at the new partition ID.

use GParted as you've described.
Find the updated UUID of the swap partition from the output of:

sudo blkid
edit /etc/fstab in the guest OS to have the new UUID in the line with a 'type' of 'swap'

That should do it.


How to create a bootable Clonezilla USB that works?

Clonezilla live USB works very well with UNetbootin (unetbootin) from the default Ubuntu repositories. Clonezilla is in UNetbootin's list of compatible distros in the UNetbootin == Select Distribution == dropdown menu. You should reformat the USB flash drive as FAT32 in GParted first if you have ever used the USB flash drive to boot a Linux distro.

UNetbootin has been dropped from the Ubuntu 18.04 repositories. When I tested the built-in Startup Disk Creator application as a UNetbootin replacement app with a Clonezilla .iso image it worked in Ubuntu 18.04.


"Waiting for Sound System to respond." error dialog

I managed to solve the problem myself.

The problem was that, for some reason I don't know or remember, I was not the "owner" of my home folder, and because of that I couldn't kill the pulseaudio process... I realized that when Ubuntu tried to update the .ICEauthority file located in my home folder and had trouble with the permissions.

Running the following command should solve the .ICEauthority and volume control not working for people with the same problem as me:

sudo chown "user":"user" /home/"user"

And thats it! :)


Trouble with dual boot after Windows 10 update, used bcdedit, now can't access BIOS

Ok I solved the problem (I believe), so I will share how I did it to help others with same problem.

As oldfred suggested, I copied all files from /EFI/ubuntu to the /EFI/BOOT folder and the problem with errors was solved. Or I don't see it anymore, can't tell.

Problem with system asking for BIOS password was still there. It didn't happen before this mess. Rest of my solution has nothing to do with Ubuntu.

If you miss your BIOS password 3 times in a row, system will lock your computer and give you a System Disabled number. You will need this number.

Open BIOS master password site. Enter the system disabled number you wrote down and check the list of master passwords. Find your manufacturer and enter the password for it.


Mounting external disk with defaulted 13.10 FDE

I tried some experimenting with a 10MB file, using cryptsetup to "luksFormat" and "luksOpen" it (then used gparted on the /dev/mapper/xxxx device to create a MBR & partition & format it - I'm not sure if that's how a standard disk encryption works, or if it just formats the /dev/mapper/xxxx device & mounts it).

Then I can use dmsetup ls to see the "/dev/mapper/xxxx" file, and dmsetup is for "low level logical volume management". So you might want to try the sudo dmsetup ls command and see what it says, there might be a "partition" device like /dev/mapper/securediskp1 that you should try mounting...

Or, this very helpful archwiki page has info on using LVM on LUKS, mainly how to set it up though.

This very brief webpage indicates "Mount LVM partitions from an external hard drive" should be pretty easy, I think it should work after the device has been luksOpen-ed:

As root (sudo), run

vgscan
vgchange -a y

and all the partitions should have devices created in the form /dev/volumegroup/logicalvolume,
which you can then mount in the usual way:

mount /dev/volumegroup/logicalvolume /mnt/somewhere

This link "How to mount Linux LVM volume partitions on Linux" has some slightly different info:

[root]# pvs

This will list the volume groups to which our physical volume /dev/sda2 belonged. It would be of the form

PV          VG          Fmt    Attr    PSize     PFree
/dev/hda2   VolGroup01  lvm2   a-      148.94G   32.00M

The second field, VG, shows the Volume group. The above output is just an example, showing that we are concerned with the Volume group "VolGroup01". The next step is to list the information about this volume group.
[root]# lvdisplay /dev/VolGroup01

It will throw a bunch of ouput, but the one we are concerned with is LV Name. It will look something like this

LV Name /dev/VolGroup01/LogVol00

In our case, there were two entries of type LV Name, the other being LogVol01, the swap. The whole output along with it will help you to identify the target logical volume you are looking for. Assuming that the above one is the partition that we need to mount, just use the usual method to mount it.
[root]# mount /dev/VolGroup01/LogVol00   /mnt

Now, you can to find the data you were looking for in the /mnt folder.

Other helpful looking questions:

How to mount an LVM volume?
How to mount a LVM logical volume in linux


How can I add another GMail entity in Thunderbird?

In Thunderbird, if you click Edit > Account Settings, you will be given a window which allows you to make all sorts of changes.  From the menu on the left, choose "Outgoing Server (SMTP)," and then on the right side you'll see the current SMTP servers you have set up.  Click the "Add" button to, um, add a new SMTP server:

Once you have entered the new information into the smaller window, click OK.  You can now highlight this server in the Outgoing Server (SMTP) Settings window, and choose the "Set Default" button on the right. Choose the OK button at the bottom, and then close Thunderbird and reopen it, and when you send e-mail it will use the account you have chosen for your SMTP server.

Your POP or IMAP server will receive mail, and your SMTP server will send it.


After upgrading from 13.10 to 14.04 LTS Intel drivers not loading only Gallium 0.4

I have figured out the problem. Apparently something didn't upgrade correctly for the xserver-xorg-video-intel packages.

So I followed the selected answer of this package How reinstall the default graphics drivers? which fixed the problem.

Basically I reinstalled the packages and restarted the computer (it should be noted that the final terminal call unity --restart is deprecated, so I simply restarted the computer). Once reinstalled and restarted the Sandybridge was visible in my System Settings-->Details section and my FPS returned to normal.


The thing is what you are experiencing in your desktop upper part is not panel.......When you open any of your nautilus then it automatically convert your folder's status bar......If you put your cursor over there then it appears......Instead of going every time with cursor there use these shortcuts....

View----Alt+V

Edit----Alt+E

Help----Alt+H


How can I make a bash script display its output like `man`, not filling up the terminal?

As stated in this thread, you can toggle the screen using tput smcup and tput rmcup and just wrap it in while loop like so:

tput smcup

#Do stuff here

echo "Press Q to quit"
while true
do
  read -n 1 -s
  if [[ $REPLY =~ ^[Qq]$ ]]
  then
    tput rmcup
  fi
done


Cannot drag Firefox windows with title bar disabled using touch-screen

You can drag not by title bar but window content while holding Alt key


If the slides look like this:

You can select and drag the Slides bar to the left hand side until a dotted line appears on the left side, meaning that it will be dropped there

If that does not work, you can move or rename the registrymodifications.xcu config file in ~/.config/libreoffice/... to reset the configuration. This may reset other settings as well, which is why I suggested only renaming it. You can do this from file manager, either use Ctrl+L and type in:

~/.config/libreoffice

Or navigate to the home directory, and press Ctrl+H to view hidden files (beginning with .), and select .config then libreoffice, and look for registrymodifications.xcu

Hope this helps.


The problem is deleting open files.  They remain open at full size until the owning process is restarted.  lsof -L1 shows the problem.  Restarting the VM's cleared the drivespace.

A better solution appears to be to truncate the file rather than delete it with

 :>/offending.log

so its not actually deleted.

Thanks for your time all


After much investigation, it turned out that both printers I was using were parallel to USB converted. The printers themselves have a USB port each on them but internally, it seems, there was a converter used.

To solve this, I bought a different printer model as the second printer.


"Failed to retrieve share list from server" error when browsing a share with Nautilus

I found this advice from Gord Nickerson worked for me:
The error message is 'failed to retrieve share list from server' so it cannot browse a Windows 7 pc or a Ubuntu 10 pc or a mac desktop pc.

First of all, the Samba daemons smbd and nmbd must both be running for network browsing to work. They can be started with service, or with systemctl start for the newer systemd-based releases of Ubuntu.

smbtree lists all the shares from machines on the network.

So, off to /etc/samba and we sudo pico smb.conf.

The name resolve order uses hosts files first and broadcasts last and it is commented out! Maybe we change that to:

name resolve order = bcast host

and then restart the servers with service smbd restart and service nmbd restart

Works! This is an awful mistake to make in an upgrade. Upgrade should not break what is working, particularly something as important as networking. Good thing i recall the manual work you had to do to get samba working back in redhat 5 and 6.


How to change putty color scheme on linux user basis?

Normally you would set colors in ~/.bashrc

Perhaps copy the ~/.bashrc from another user or /etc/skel/.bashrc

What colors do you want to set ? Prompt? ls ?


Should I use the ATI proprietary or free drivers with two Crossfire HD5850s?

Proprietary ATI drivers usually gives better performance and lower power consumption, but also can cause some minor graphic glitches due to some incompatibilities. But I have no experience with using multiple monitors so I can't say which one is better for this purpose.


Often you can't delete session files even with command like sudo rm -rf /var/lib/php/sessions/* because a path name expansion occurs BEFORE the sudo (https://serverfault.com/a/851261/591003).
You can try another command like sudo sh -c "rm -rf /var/lib/php/sessions/*" but if you have tons of files you'll get an answer that rm: Argument list too long because the list of session files is usually very huge (up to millions of files).
I propose a really simple way:

Create a new folder sessions_new: mkdir /var/lib/php/sessions_new
Set the same permissions as for old sessions directory: sudo chmod --reference=sessions sessions_new
Do the same with ownership: sudo chown --reference=sessions sessions_new
Kill it! sudo rm -rf /var/lib/php/sessions
You don't need to wait a result for a long time. You can check it immediately in a new terminal window by sudo find /var/lib/php/sessions/. -type f|wc -l. This command counts the number of files inside your sessions folder. Run it two times. If the second time you run the command, you get a lower number than the first time, then the process is going in the right direction.
Wait for a long time :P
When process has finished just rename the session_new directory: mv /var/lib/php/sessions_new /var/lib/php/sessions


Have you tried using xinput? Such as:

xinput --list
xinput --list-props #deviceid
xinput --set-prop #deviceid #propid value


Try mounting your hard drive in read-write mode; you should probably do this from recovery mode accessed in GRUB and drop to root terminal and use:

sudo mount -o remount,rw /

Exit to recovery menu and resume normal boot, see if that does anything..


torsocks/torify ssh doesn't work as regular user in ubuntu 20.04

Problem due to file permissions ~/.ssh/config
$ ls -alh ~/.ssh/
total 24K
-rw-rw----  1 ilya ilya 1.7K Aug  5 22:19 config
$ chmod g-rw ~/.ssh/config
torsocks ssh blabla.com
1596659405 ERROR torsocks[38123]: General SOCKS server failure (in socks5_recv_connect_reply() at socks5.c:527)
ssh: connect to host blabla.com port 22: Connection refused


When I boot computer has only a black display

I have already found the problem. i switched "switchable" to "descrete" at the graphic mod in bios.


How to enable multi-touch gestures on Lenovo Thinkpad W510 w/touchscreen - 12.04 w/Unity

I think in the gestures in the video are all based on a single touch which is acting as a mouse. You could configure those gestures using Easystroke Gesture Recognition application which is available from the repository.

I just received my X220 multitouch tablet and asked a question about ways to improve multitouch in Ubuntu 12.04, you might be interested in that question as well as hopefully more answers will be provided, or I figure things out.


To recover the xfce default panel, go to all settings from the menu and choose panel.

Now at the top is a bar, it will be empty, click the + symbol under it to add a panel, then choose backup and restore

In the menu is a list, the default XUbuntu panel is XUbuntu modern click this and then hit apply in the bottom left (the little cog symbol)

This will restore the default XUbuntu panel.


Top Ubuntu Download Manager with bandwidth limiter and

You will be surprised by what you can achieve in command line in linux.

Install aria2 and have look at the man pages. There is basically nothing it cannot do that any other GUI based download manager can.

sudo apt install aria2


Ubuntu 14.04 will not install or run from USB stick

I finally got Ubuntu to install on the Zoostorm by adding nomodeset to the Live USB boot menu options as follows:

On the startup boot screen press e
Find the line ending quiet splash and add nodemodeset just
before it.
Press F10 to boot (for me I have try before install selected before I pressed e)
Choose install Ubuntu from the desktop. (This will probably also
work if you choose install Ubuntu from the startup menu, but I
haven't tried it).
Wait for this install then choose "restart now". (NOTE: During the
install my screen went black but pressing "any key" refreshed the
screen - looks like a screen saver blank screen or something).
The machine then restarted and I saw the Ubuntu loading logo.
Shortly after this the machine rebooted again. Restart the machine
by turning it on and off again and hold down shift to
ensure that you see the grub boot menu.
At the Ubuntu boot menu press e again and repeat steps 2. and 3.
You should then boot in to your Ubuntu install.
You will now need to permanently modify your kernel boot parameters
(unless you are going to try and find the right video driver). To do
this I installed Grub Customizer following these instructions. From Grub Customizer choose the
"General settings" tab and enter "nomodeset" in the kernel
parameters before "quiet splash". Then hit the "Save" button.
Next reboot and check that you log in to Ubuntu without the machine
 rebooting itself.

I got the above idea when looking at Ubuntu forums this post. According to this article:

  Adding the nomodeset parameter instructs the kernel to not load video
  drivers and use BIOS modes instead until X is loaded.


Application for sharing mobile broadband with other computers(hotspot)

First, check if your network card supports the infrastructure mode. If it does, well and good. If it doesn't, you'll have to use the ad-hoc mode.

Either way, the steps to be followed are given here at this link.


Clickable Gnome-style notifications in Unity

You can have clickable notification with Unity.

Tested with 12.10, 13.04, 13.10, 14.04, 14.10, 16.04 (thanks @ManseUK).

What we want

Notification are supposed to non-obstrusive, non-disrupting of your train of thought, and provide a shortcut when relevant.

Problem in Unity (12.04, 12.10 at least)

Default notification engine is notify-osd.

notifications are not clickable (which hurts efficiency for those that offer to quickly bring you to the place of interest).
when several happen quickly, they queue and appear only one after the other : no way to see them quickly, you just have to ... wait.

Solution

Current XFCE notifications on the other hand implement just that, and they can be used with Unity. I just tested it with a separate account (default config) to rule out any user-specific settings.

Howto

Here's how install and use XFCE4's notifications instead of Unity's:

sudo apt-get install xfce4-notifyd ; sudo apt-get purge notify-osd

To get immediate effect this may help (else logout/login):

killall -v notify-osd
/usr/lib/*/xfce4/notifyd/xfce4-notifyd &

You might want to test and adjust appearance:

xfce4-notifyd-config


The simplest way to "subtrack" a string variable in terminal?

In Bourne-like shells, such as dash ( /bin/sh on Ubuntu ), bash and ksh there is something known as parameter expansion, and is a feature specified by POSIX standard.  Specifically, to quote dash manual:

 ${parameter%word}     Remove Smallest Suffix Pattern.  The word is expanded to produce a pattern.  The parameter expansion then results in parameter, with the smallest
                       portion of the suffix matched by the pattern deleted.

 ${parameter%%word}    Remove Largest Suffix Pattern.  The word is expanded to produce a pattern.  The parameter expansion then results in parameter, with the largest
                       portion of the suffix matched by the pattern deleted.

 ${parameter#word}     Remove Smallest Prefix Pattern.  The word is expanded to produce a pattern.  The parameter expansion then results in parameter, with the smallest
                       portion of the prefix matched by the pattern deleted.

 ${parameter##word}    Remove Largest Prefix Pattern.  The word is expanded to produce a pattern.  The parameter expansion then results in parameter, with the largest
                       portion of the prefix matched by the pattern deleted.

Thus, to replace asd part you can do:

$ var="asd 123"
$ echo ${var#asd*}
123

To remove 123 you can do:

$ echo ${var%*123}
asd

bash goes even further with this with another form: ${parameter/string/replacement} and ${parameter//string/replacement}. First one replaces first occurrence of string. Second form replaces all occurrences. For instance:

$ echo ${var//123/}
asd
$ echo ${var//asd/}
123

Note that according with the syntax, the replacement part is empty string


Using an external flash drive with a Snappy application

That's a good question to start with! I don't think we've defined a formal way for a device to mount a disk. The general zen of Ubuntu Core / snappy would say that we want to offer that disk to a single snap (application) on the device.

If your device is really only going to do one thing, then that will be easy from a security point of view. If you are going to want to have a general device with all sorts of snaps from the store, then we'll also need to think about the security implications of mounting disks, because (believe it or not) mounting disks is not something that can easily be done securely; you prety much need to trust that the disk filesystem hasn't been designed to mess with your kernel.

We'd probably be comfortable with this in  general purpose device (with other snaps from the store) if it was an ext4 disk.

I would suggest you bounce this question to the snappy-devel list, it's a very good one.


F10 key, what is this, that it's doing on my PC?

This is keyboard backlight intensity. With this on, you should be able to see keys in keyboard even in darkness.


Windows Vista disappeared after installing Ubuntu10.10?

If you had really important files in your Vista partition, then stop doing anything. If you had erased your files, each time that you write to you're disk recovery will be harder. Go to some professional that can help you to recover the files.

If the files are not so important, i.e. you don't want to pay to recover them, the first thing to do is to know what exactly had happened:

Please insert the Ubuntu CD again and boot your computer.
When asked choose to Try Ubuntu (not install it).
When Ubuntu has finished loading, go to the System Menu-> Administration->Disk Tool
Please give us the info from that screen. Specially the layout in the right side.
If you hit the Print Scrc key, it will take a screenshot of the screen. If you can post it here it could be very helpful.

Note that this is not really an answer, but this is too many information for a comment. It's likely that askubuntu is not the best place for this kind of problem.


With Ubuntu 16.04 laptop doesn't suspend when lid is closed

I stumbled across an answer that seems to have worked. Too bad there is not a cleaner way to do this than to alter the default settings. Would rather the System Settings|Power setting worked.

I edited the file '/etc/systemd/logind.conf'

sudo vi /etc/systemd/logind.conf

Then I uncommented the line (removed the beginning #) containing 'HandleLidSwitchDocked=ignore' and changed the value to be:

HandleLidSwitchDocked=suspend

After a reboot all seems to be working as expected, though I'm still prompted to login twice. (Once to unlock, and again as a user of the OS.)


How do I install KDE and retain LightDM as a login manager?

Simplest way of doing this is to install Kubuntu and when its installed opening a terminal and typing sudo apt-get install lightdm.

When you do that dpkg will ask you which login manager you want to use between the ones you have installed in your system. You need only to choose lightdm and that is all. You will have KDE, KDM and LightDM installed and you will be using LightDM as login manager.

If you already have a working Unity desktop and you want also to use KDE as a choice, you need to install the KDE desktop environment from the Ubuntu Software Center or with sudo apt-get install kubuntu-desktop.

Then just reinstall lightdm or use sudo dpkg-reconfigure lightdm to reconfigure your system to use LightDM.


Can't boot into windows after installing xubuntu i384 - Tried many things

Add ppa : sudo add-apt-repository ppa:yannubuntu/boot-repair
Update : sudo apt update
run boot-repair : boot-repair select Recomended Repair
update grub : sudo update-grub
reboot pc :reboot


Network manager forgets wireless network key

Click on the network icon in the panel and choose Edit connections...
Go to the wireless tab, select your network and click edit.
On the Wireless security tab, make sure the password field isn't empty.


Terminator : Window flickers when hit  in screen

Adding

vbell off

to .screenrc file fixed it.

Thanks!


Driver for Integrated Display on Lenovo 420s Core i7

To turnoff nvidia graphics card and use it only when required install The Bumblebee:

If you are on 11.04 or older , you  will need new drivers, run

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update

Add the Stable Bumblebee Releases PPA and install Bumblebee using the proprietary NVIDIA driver:

sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo apt-get install bumblebee bumblebee-nvidia

If you have 32-bit applications like Wine, and run 11.10 Oneiric or later, you will need extra libraries:

sudo apt-get install virtualgl-libs:i386

Allow yourself to use Bumblebee by adding yourself to the 'bumblebee' group. (replace $USER by your username)

sudo usermod -a -G bumblebee $USER

Reboot or re-login to apply the group changes

If you'd like to run a program on the nvidia card now, use the optirun program:

optirun firefox &

Read more from bumblebee wiki

Linked Question:

Is a NVIDIA GeForce with Optimus Technology supported by Ubuntu?

How well will Nvidia Optimus cards be supported in 12.04?


nginx error upgrading web server from Ubuntu 15.10 to 16.04

Don't mix and match nginx.org repos and the Ubuntu PPAs for NGINX.  You are trying to use two separate PPAs - 1.11.3 from upstream Mainline repos, and 1.10.0 from my NGINX Stable PPA. This is something I touched upon in my blog post here, when an influx of bugs prompted the notice.  (Content copied into below)

Pick one repo, and drop the other in your /etc/apt/sources.list and /etc/apt/sources.list.d/*.list sources.  Remove the older packages if you have them.  (Upstream Mainline repo will break the PPA, so you have to remove nginx-common, nginx-core, nginx-full, nginx-extras, nginx-light and nginx before you can install upstream's newer version.

(There is a PPA update going out in the next few days for the Mainline PPA containing 1.11.3)

Content of the blog post linked above:

  NGINX: Mixing and Matching Ubuntu Repositories (and NGINX team PPAs on Launchpad) or Debian Repositories with Upstream Repositories will result in problems.

  We’ve seen this before, but we see it too frequently. People want the
  latest NGINX version. So they use the upstream nginx.org repository to
  get it. They try and install, and you immediately get conflicts.

  In Ubuntu, people then file bugs on this thinking it’s an Ubuntu issue
  (such as this bug here). Problem is, it’s not an Ubuntu bug. Nor
  is it a bug in the PPAs I maintain. Nor is it a bug in Debian. It’s a
  problem that arises when you mix the upstream repositories and either
  Ubuntu, Debian, or the Ubuntu PPAs, and assuming you can ‘upgrade’
  cleanly with the upstream repositories.

  Basically, this is what it comes down to:

  For Debian, if you’re depending on third party modules, you should stick to Debian’s packaging and wait. For Ubuntu, you should use the
  PPAs which I maintain (under the nginx team on Launchpad) if you want
  latest software and features, based off of Debian’s packaging
  decisions.

  If you want/depend on NAXSI though, you have no choice but to recompile NGINX with NAXSI yourself, in order to get it working in a
  sane way. Neither Debian, nor Ubuntu, nor the PPAs have naxsi in the
  builds anymore.

  If none of those apply to you, you will have to purge all nginx binaries from your computer, and all nginx packages and configuration
  files with this command before installing from the upstream
  repository: sudo apt-get purge nginx nginx-doc nginx-common (This
  should also purge the other dependent packages as well)

  But, if you’re curious why you can’t mix the repositories, this post
  explains it from my perspective. Here’s a breakdown of why you cannot
  mix repositories such as this, and the problems you run into.

  Problem 1: Debian / Ubuntu / NGINX PPAs (maintained by yours truly) have flavors; nginx upstream does not.

  And by flavors, I mean nginx-light, nginx-full, nginx-extras,
  nginx-naxsi (up until 1.6.2-2), and nginx-core (Ubuntu only, since
  Ubuntu 14.04). Each of these flavors contains a different set of
  modules, based on demand originating in Debian or the community (and
  ultimately implemented in Debian). I will not go into the differences
  here, however you can go to here and read my answer to the question
  for more details.

  As a result of how NGINX modules are currently incorporated into the
  program’s binaries, it is absolutely critical to separate out the
  configuration files and default sample files and locations so that you
  can switch between flavors (and upgrade between versions between
  Ubuntu/Debian/PPAs) without issues and conflict between configuration
  files. This requires the introduction of a package called
  nginx-common – a package which contains files and other items that
  are common to all versions of the nginx flavors in those versions of
  the source package. This nginx-common is wholly the brainchild of
  Debian’s work, and inherited in Ubuntu and the PPAs I maintain.

  The problem is: NGINX upstream does not ship ‘flavors’. They enable
  all the default modules that are shipped in the nginx upstream ‘core’
  code, and do not include any third party modules, nor do they
  discriminate the modules to enable (to make ‘light’ builds, or ‘full’
  builds). As such, the nginx upstream package is a single solitary
  ‘nginx’ package. It does not separate out configuration files, nor
  does it separate out the binaries.

  Problem 2: NGINX upstream doesn’t have third party modules.

  Now, I know what you’re thinking: “Why would Debian/Ubuntu include
  third-party modules in the packaging?” Turns out, in Debian, the
  demand for such ‘third party extensions’ was so high, that they
  decided to include the modules. Such modules include the nginx-lua
  module, the nginx-perl module, and even the NAXSI modules for NGINX
  (which were in nginx-naxsi up until 1.6.2-2).

  The problem: These are third party modules, maintained separately from
  the NGINX code base itself. They’re shipped as part of some of
  Debian’s packages due to demand, but they in and of themselves can
  cause packaging issues and conflicts, to the point where it requires
  updating the modules’ code with each new release to fix issues in
  those modules. This in and of itself lends to ‘maintainability’
  problems. This is why the nginx-naxsi flavor was dropped from NGINX
  in Debian and Ubuntu as of package version/revision 1.6.2-2. To fix
  even simple bugs in the nginx-naxsi flavor (and its related
  packages), the entire NAXSI module needed to be removed and replaced
  with the latest upstream revisions of the code and plugin. This means
  that to even fix bugs in how the NAXSI rules were handled (in order to
  match the actual rule formats that needed to be in place for
  whitelists and such), you’d have to do a replace of the entire NAXSI
  module in the nginx-naxsi flavor. In Ubuntu, this would break the
  ‘Stable Release Update’ in that new features would be added to the
  package that could break things, old features could be removed, and it
  would go beyond the ‘nitpick fix’ that’d be needed for a Stable
  Release Update, such that the system would never be fixed.

  As a result, third party modules have to be maintained and updated
  with almost every code update from NGINX upstream. For NGINX Mainline,
  the Lua module needed to be updated three times for build failure
  fixes in the PPAs. Since a lot of these third party modules (such as
  NAXSI or Lua) are in demand by the community, but not available in the
  NGINX Upstream repository (or in the case of the NAXSI release, even
  the PPAs nowadays), you should not mix repositories, as you will lose
  those modules, or lose some of the modules and gain others.

  -- Author: Thomas Ward; Site: http://dark-net.net/; License: Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License


Workaround

Open a terminal and run the following command:

echo "options snd-hda-intel position_fix=1" | sudo tee -a /etc/modprobe.d/alsa-base.conf

Explanation

This will add a new line with options snd-hda-intel position_fix=1 to /etc/modprobe.d/alsa-base.conf so that ALSA initializes with the proper options set instead of initializing ALSA with incompatible options, removing the module afterwards and reloading it with compatible options as described in the original answer.

Corresponding bug report: https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1166529

Original Answer

Ha! Found a solution myself. Here it goes:

Add these two lines before the command "exit 0" on the file rc.local on /etc directory:

rmmod snd_hda_intel
modprobe snd_hda_intel position_fix=1

This should  fix.


How to write output of command to a text file but not execute them?

In order to achieve that for a command in general, you will need to check whether the command provides a flag that allows it to simulate an operation rather than carrying it out. For example, with apt, you have a -s or --simulate flag. With rsync, you have the --dry-run option. Such flags tell the program to "pretend" doing the job, but not actually do it, so just report.
Not sure whether zip has such an option. You will probably need to effectively create the .zip file, eventually in a temp folder if need be, to obtain the list of what will be (is being) zipped. On the other hand, just an ls data/*/*/point_clouds would already retrieve a list of files that will be zipped.
For your find example: you already provided the answer yourself. Currently, you are just writing out a list of files. If you want to effectively delete them, you can add the --exec rm option.


Try the below commands on terminal to reinstall the above mentioned packages,

sudo apt-get install --reinstall python-wxgtk2.8
sudo apt-get install --reinstall playonlinux

Because the error report clearly says,

Package is in a very bad inconsistent state - you should
 reinstall it before attempting configuration


Extract a number which is assigned to a string using a Perl script

One variant on @terdon -- for each /rock=(...)/, say it:

perl -nE 'say for /rock=(\w+)/'

and a solution with grep

grep -Po 'rock=\K\w+' file


Installed AMD graphics driver after reboot cant login or open terminal

First of all, there's a newer version of this driver, 17.50. You should try this one, but I honestly don't think it will make any difference. The AMDGPU-Pro driver is known for causing severe system problems on Ubuntu (and probably most other Linux distros), even if you're running the LTS version (the one AMD uses to test their drivers). I personally gave up trying to install it, and there are many benchmarks on the internet showing you're very well served with the open-source drivers.


Why new project is not opening in Netbeans in ubuntu 16.04?

You maybe missing the Mobility plugin.

Also ensure that you actually have the JDK installed:

Tools>Plugin
Access the Installed tab (to see what plugins are currently installed on your system)

You may also have a corrupted user,dir ; delete the userdir in its entirety, then restart Netbeans.

System.getProperty("user.dir") can be used to find the path of user.dir


upstart log directory has no log files just compressed files

16.04 doesn't use upstart anymore by default so unless you've done something clever, you are using systemd and you are likely looking at files left over from a previous version due to an upgrade rather than clean install.

If fsck has run recently on  a non-root partition on yourr system you can confirm this by running grep fsck /var/log/syslog

Which in my case results in:

Mar 22 15:06:27 64bitUbuntu systemd-fsck[750]: /dev/sdb1: clean, 146223/121454592 files, 356711795/485818368 blocks

In 16.04 You can find what you seek in the file /var/log/boot.log

Here's an example from my 16.04 system created at last boot:

The boot fsck results are stored in var/log/boot.log

ll /var/log/boot.log
-rw-r--r-- 1 root root 96 Mar 22 15:06 /var/log/boot.log

Scanning for Btrfs filesystems
/dev/sda2: clean, 349091/1954064 files, 2379983/7814912 blocks

Sources:

https://www.freedesktop.org/software/systemd/man/systemd-fsck@.service.html

ls /var/log


Ubuntu 20.04 occasionally freezes shortly after login Ext4 Journal Failure

Wanted to update this, as I have figured out the problem.
After multiple reinstalls of Budgie, and an install of Kubuntu, I figured out that it was indeed a hardware problem; my SSD had failed.  I contacted Crucial and told them about the I/O error, and they confirmed it was failing hardware and helped me replace it.  Thanks for the help.


Ubuntu 18.04.1 and TP-Link Archer T4U(EU) v2.0 nightmare (RTL8812AU chipset)

We have a winner!

There is - for all I know - only ONE repository that did it for my configuration:

HP 250 G4 (might be irrelevant)
USB Wifi adapter TP-Link AC1300, Model No. "Archer T4U(EU)", Version 2.0
Ubuntu 18.04.1 bionic beaver, kernel 4.15.0-32-generic

Repository to use: gnab's rtl8812au repository - it forks Realtek's open source driver 4.2.2

Installation:

All instructions are in essence available at gnab's repository, but for the impatient here they are. They require a working internet connection to clone his repository! Obviously, you need to have a dev env and DKMS installed (instructions for that omitted here)

cd /tmp
git clone https://github.com/gnab/rtl8812au.git gnab_rtl8812au
cd gnab_rtl8812au
make
sudo insmod 8812au.ko

At this point you should be able to use your adapter properly.

To add it to any new kernels installed by Ubuntu, configure it via DKMS as follows:

cd /tmp
sudo cp -R gnab_rtl8812au /usr/src/8812au-4.2.2
sudo dkms add -m 8812au -v 4.2.2
sudo dkms build -m 8812au -v 4.2.2
sudo dkms install -m 8812au -v 4.2.2

That's it!


GRUB menu while installing xubuntu 15.04

Use Windows 7 to create a bootavle DVD. Download Ubuntu ISO, double click the file to create DVD. Restart and boot from DVD.


Ubuntu 12.04.1 LTS won't let me enter password

if you are talking about logging in to the graphical interface then you might want to try

cnt+alt+F1

that should bring you to a terminal window. Then you can issue the command:

  sudo service lightdm restart

This should restart the graphic interface and allow you to login.

If that does not work then the system may have hung. If that is the case you can try turning off via the power button (press and hold until it turns off if needed). Then try to power it up again. If you have the same issue on restart let us know if any patches or upgrades were done recently.


ScreenCloud dev here. I've seen this issue a few times before and it usually means that you're missing the libqt4-svg package. Installing it should fix the problem:

sudo apt-get install libqt4-svg


Nevermind.  I was able to resolve this: my TV resolution was not being detected correctly & "System Settings > Displays" was writing odd configurations into my monitors.xml (or maybe it wasn't reading from it properly,  I don't know).

Solution:
Found modelines for my TV here: http://www.mythtv.org/wiki/Modeline_Database . Added it to my xorg.conf and manually edited my monitors.xml (as opposed to using the "System Settings > Displays" interface).

/etc/X11/xorg.conf:

Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" RightOf "Screen0"
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    ModulePath   "/usr/lib/xorg/modules"
    FontPath     "built-ins"
EndSection

Section "Module"
    Load  "record"
    Load  "extmod"
    Load  "dri2"
    Load  "dri"
    Load  "dbe"
    Load  "glx"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
EndSection

Section "InputDevice"
    Identifier  "Mouse0"
    Driver      "mouse"
    Option      "Protocol" "auto"
    Option      "Device" "/dev/input/mice"
    Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
    Identifier     "VGA1"
    VendorName     "Unplugged"
    ModelName      "Nothing Plugged In"
    HorizSync       30.0 - 83.0
    VertRefresh     50.0 - 76.0
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "HDMI1"
    VendorName     "Dell"
    ModelName      "DELL S2209W"
    HorizSync       30.0 - 83.0
    VertRefresh     50.0 - 76.0
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier      "HDMI2"
    VendorName      "Panasonic"
    ModelName       "PANASONIC-TV"
    HorizSync       15.73 - 67.50
    VertRefresh     59.94 - 60.0
    Modeline "1208x679" 74.25 1208 1353 1393 1650 679 707 712 750 +hsync +vsync
EndSection

Section "Device"
    Identifier  "Card0"
    Driver      "intel"
    BusID       "PCI:0:2:0"
EndSection

Section "Device"
    Identifier  "Card1"
    Driver      "intel"
    BusID       "PCI:0:2:0"
EndSection

Section "Device"
    Identifier  "Card2"
    Driver      "intel"
    BusID       "PCI:0:2:0"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "VGA1"
    DefaultDepth    24
    SubSection     "Display"
        Modes     "1920x1080" "1280x720" "1208x679" "720x480"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier "Screen1"
    Device     "Card1"
    Monitor    "HDMI1"
    DefaultDepth    24
    SubSection     "Display"
        Modes     "1920x1080" "1280x720" "1208x679" "720x480"
        Depth       24
    EndSubSection
EndSection

Section "Screen"
    Identifier "Screen2"
    Device     "Card2"
    Monitor    "HDMI2"
    DefaultDepth    24
    SubSection "Display"
        Modes     "1920x1080" "1280x720" "1208x679" "720x480"
        Depth     24
    EndSubSection
EndSection

~/.config/monitor.xml:

<monitors version="1">
  <configuration>
      <clone>no</clone>
      <output name="VGA1">
      </output>
      <output name="HDMI1">
          <vendor>DEL</vendor>
          <product>0xa043</product>
          <serial>0x33413055</serial>
          <width>1920</width>
          <height>1080</height>
          <rate>60</rate>
          <x>0</x>
          <y>0</y>
          <rotation>normal</rotation>
          <reflect_x>no</reflect_x>
          <reflect_y>no</reflect_y>
          <primary>yes</primary>
      </output>
      <output name="HDMI2">
          <vendor>MEI</vendor>
          <product>0xa060</product>
          <serial>0x17009171</serial>
          <width>1208</width>
          <height>679</height>
          <rate>60</rate>
          <x>1920</x>
          <y>0</y>
          <rotation>normal</rotation>
          <reflect_x>no</reflect_x>
          <reflect_y>no</reflect_y>
          <primary>no</primary>
      </output>
      <output name="DP1">
      </output>
      <output name="DP2">
      </output>
  </configuration>
</monitors>

Then from a terminal:

xrandr --output HDMI2 --mode "1208x679"


How to count how many times a word appears in the files in each folder?

Since you only want totals per top-level directory, add a simple loop:

for d in */; do
  printf '%s: ' "$d"; grep -riwo 'foo' -- "$d" | wc -l
done


Use Zoom H5 audio recorder as USB mic for Ubuntu 14.04

For me it works. I do following:

Attach the Zoom H5 to my computer
Turn on the H5
Now I have 3 options on the screen. I set it to the bus powered option.
I Ubuntu, I open audio setting
Here i make sure that the input device is set to the H5 (it is shown as an H4, This is probably as the Zoom guys forgot to rename it in the driver software).
From here the recorder works as an ordinary mic (Still mono though, but this is probably an Ubuntu driver restriction)


Error 504 while accessing a php page from Internet

Use this link.

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

Internet doesn't know about your virtual machines stuffs if you don't register. For that you have to have a domain and configure it to your server. If you don't have a domain use a DynDNS like service.


How to check if netconsole really works?


I had this same issue , what I had to do is reset the BIOS and and then do the sudo rfkill command.

... Also just as a pre measure not trying to challenge your intellect or anything , but just make sure that your wireless availability is turned on. Normally a switch on the hardware or a button with the WAP symbol.


Quickly has indeed not been supported for quite some time, and no longer maintained.


Does HP DeskJet Ink Advantage 3635 WiFi (F5S44C) work with Ubuntu 16.04LTS?

The best place to answer such questions regarding hp printers is:

http://hplipopensource.com/hplip-web/models/deskjet_aio/deskjet_3630_series.html

Distro  Version Installer   GUI14   Scan3   Fax5    Status  Photo Card4 USB Parallel    Network
Ubuntu  16.04       Yes     Yes (Qt4)Yes     No     Yes      No        Yes     No         Yes

In short, the printer should work fine without a proprietary driver plug in.


Unable to extend partitions using GParted

In order to grow primary partition sda2, the unallocated space must be immediately adjacent.  Currently it is within extended partition sda4.

The steps are:

Boot from live media containing GParted, e.g. GParted Live.
Shrink extended partition sda4 to butt up against sda5.
Grow primary partition sda2 into the adjacent unallocated space.

See also Moving Space Between Partitions


From a terminal enter bluetoothctl this will list all bluetooth devices. For example:
$ bluetoothctl
Agent registered
[CHG] Controller 00:C2:C6:BC:22:5C Pairable: yes

Next you must type remove and the ID of the controller 00:C2:C6:BC:22:5C


This bug has been driving me nuts for several months. I tried several fixes (nohwcrypt=1, blacklisting various drivers, etc.) Nothing worked for more than a few minutes until I tried the solution here: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1046800

The place to download the updated kernel stuff is here: http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.6.3-quantal/

(I have precise, not quantal, but it doesn't seem to make a difference.)

You will need to get the following header packages:

linux-headers specific to your architecture (i386 or x64)
linux-headers (all)

You will also need to get the following kernel packages:

linux-image for your architecture
linux-image-extras for your architecture

Once you have the packages, you can install each one like this:

sudo dpkg -i (name of file)

That done, reboot the machine, and you should be good.

After running for half an hour, this is the statistics (mtr) for pinging my router:

Loss%   Snt   Last   Avg  Best  Wrst StDev
 0.1%  1715    2.0   4.6   1.5 460.1  21.0

This is NOT as reliable as it is in Windows, so I think the driver maintainers still have some work to do. However, it's orders of magnitude better than it was before!


Some people have experienced situation aforementioned and this helped them.

Try:

sudo apt-get install --reinstall ubuntu-desktop

Why?

Because, this occurs when ubuntu-desktop is broken...


Transparency Effects in KDE Plasma, not supported by color scheme

I had same issue but I got it solved when I changed rendering backend to XRender for my Nvidia card.

System Settings  --->  Display and Monitor  --->  Compositor.


Chrome is slow when opening or closing tabs

Well, since Google chrome opens a new processes for each new tab, it may be related to limitations of using a low powered cpu notebook in that situation.  For example, in firefox, since each new tab will run off of generally the same processes, there won't be a huge leap in resource usage when opening a new tab.  Chrome, on the other hand, uses a seperate process for each new tab or new site (depending on your configuration), and also a separate process for things like plugins for audio and flash.  As a result, opening new tabs may have a higher initial cost, which may really become evident on a low power processor like a notebook.

Personally, where chrome isn't a great fit, I tend to devolve back to firefox since it (currently) works on close to a single process model and will tend to be easier on resources as a result (though more prone to sites crashing your session, etc).


Scanning software for use with the Epson Stylus C84 Photo Edition

I don't think you will find something equal has that is proprietary software, although you have other alternatives.

Xsane

VueScan 9

Gimp also has the abbility to scan if you install the plugin QuiteInsane.

Actually i use iscan.

If you have any doubts on Scanning on Ubuntu i suggest you read the Scanning HowTo


Ubuntu installer CAN detect Windows partitions while CANNOT detect existing Windows 10

Sounds like you are wanting to install Ubuntu. Just because the machine states "This computer has no detected operating systems" doesn't mean GRUB won't be able to load them. The installer's partition editor is finicky, and gets confused when you have multiple partitions, or just randomly sometimes.

I'd install Ubuntu through the "Something else" menu you were in (these instructions are case specific, looking at the provided images):

Shrink /dev/sda2 by however large you want your Ubuntu partition. Having the main system on the SSD increase its speed dramatically. You can do it on the HDD, but the SSD is highly recommended. You currently have 12GB available, so I would at LEAST give Ubuntu 20GB. Looks like the Windows side is pretty full, so be mindful of your space.
Create a swap partition in that space, but only size it to how much memory you have (usually 4Gb is enough, which is 4096Mb).
Create an ext4 partition in the remaining space on the /dev/sda SSD for linux, mount at "/".
I'd suggest putting your home partition on that extra HDD drive, since it has a lot of free space, some not even being used. This is OPTIONAL: Create an ext4 partition in the freespace on /dev/sdb HDD for your home folders, mount at "/home".
If you didn't do the last step, you have 120GB's that aren't available on your HDD. I would either resize the partition on there to fill the area (which may take a while), or create another partition in that area for data storage: NTFS if you want it accessible by Windows and Ubuntu, ext4 if you just want it in Ubuntu. Mount it somewhere like "/mnt/Data".
Modify the /dev/sda2 drive, use as NTFS, DO NOT FORMAT, and mount at "/mnt/Windows". This allows you to access the Windows files from boot without needing to mount it manually.
Modify the /dev/sdb5 drive, use as NTFS, DO NOT FORMAT, and mount at "/mnt/Data" (or another name if you already used that). This does the same thing as step 6, but for the data partition.

There you have it! You just manually formatted your installation!


ok I found my question answer .
here is a link you can see if you have same one.


Search computer function not working on upgrade from 19.04 to 19.10

I did try the suggested solution above to no avail.
As a workaround for the problem I launched "Software" which was locked to the Launcher and in "Installed" I launched "Application Finder" which apparently is installed by default. I locked it to the launcher and keep it open on the desktop.

Hope this might help others.


muon is gone after change of python / issues after python 2.7.10 installation on ubuntu 14.4

The solution is to explicitly allow apt to downgrade packages:

sudo su -
sudo echo 'Package: *
Pin: release o=Ubuntu
Pin-Priority: 1001
' >> /etc/apt/preferences.d/allow-downgrade
apt-get update
apt-get upgrade
apt-get -f install
apt-get update
mv /etc/apt/preferences.d/allow-downgrade > /etc/apt/preferences.d/allow-downgrade_old
sudo apt-get install muon
exit

The answer was given to me at https://unix.stackexchange.com/a/218955/122989


Postfix + MySQL - Problem with GRANT command

To view the mysql statement errors, please execute below mysql statement immediately after executing your grant statement :

mysql> SHOW ERRORS;

Ref : Please visit the following link for more information http://dev.mysql.com/doc/refman/5.7/en/show-errors.html


Ubuntu 15.10 bluetooth headset playback problem

The problem must be with radio interference. Wi-Fi and BT use same frequencies in 2.4 GHz band.

There is a technology called "bluetooth coexistence" that allows to avoid interference.

Unfortunately bluetooth coexistence does not work well in Broadcom wireless proprietary linux drivers.

And there is no other alternative driver for this adapter.

I am afraid there is no solution for that, except replacement of the wireless adapter.


You can use the standard Gnome video player Totem.
From the Totem manual:

  3.14. To Create a Screenshot Gallery

  To create a gallery of screenshots of the movie or visualization that is playing,
  choose Edit ▸ Create Screenshot Gallery. The Save Gallery dialog is displayed. Choose a location and insert the filename as which you want to save the gallery image, then click on the Save button to save the screenshot.

  You may specify the width of the individual screenshots in the gallery using the Screenshot width entry. The default width is 128 pixels.
  You may also specify the number of screenshots to be put in the gallery. By default, this is calculated based on the length of the movie; however, this may be overridden by deselecting the Calculate the number of screenshots checkbox and entering the new number in the Number of screenshots spin box.


Synchronize wireless passwords between computers

There may be some obscure way of doing this - there usually is with Linux!

However, what I do is to use LastPass with Firefox. It stores browser passwords but also has a secure note facility. Because it is the first thing I install, I effectively use it for sharing key settings including passwords.

Of course, this doesn't help if you have to install machines using only WiFi! In that case, I recommend simply putting the password in an obscure text file on a USB key while doing installs, then delete it. To add security, you could use a cross-platform security tool such as KeePass. Just make sure that you have the appropriate platform application on the key as well.


CLI version of ubuntu14.0.4 to full graphics version of ubuntu14.0.4

Just run sudo apt-get install ubuntu-desktop and wait for the installation. Shouldn't take very long.


I may be mistaken, but if you use 'Keyboard Shortcuts' provided by default in Ubuntu, you can set F* keys to your liking. You can assign a command to perform, for example if you want F6 to open /home/whatever/Music; in the command section you add nautilus /home/whatever/music
If you want a series of commands you can write them as a script located somewhere in your computer.
Hope it helps.

I'm sorry I can't provide these images in English but they're just to know where to click.


Here is a solution you should be able to work with. It isn't pretty and takes a bit of work and may be different depending on what version of Ubuntu you are using. I came up with this using 16.04. I also just tested this to boot into a different kernel because I don't have Windows installed on this box.
Since you have a dual boot I have to assume that you already have a grub menu showing and hopefully a Windows entry in the main menu not in a sub menu as I will get into later.

First you need to edit your /etc/default/grub file

Look for the entry GRUB_DEFAULT="#" it probably is 0. Change it to read GRUB_DEFAULT="saved" add a line under it that says GRUB_SAVEDEFAULT="true"

It should look like the following:

GRUB_DEFAULT="saved"
GRUB_SAVEDEFAULT="true"
...and so on...

Save the file and in a terminal run sudo update-grub

Now comes the part I'm guessing at. When you boot the computer and its at the GRUB menu ... On my VM box that I used to test this shows the following entries

Ubuntu
Advanced options for Ubuntu
Memory test (memtest86+)
Memory test (memtest86+,serial console)
Test1

I had to create the Test1 entry for this to work but I have a feeling that you have a Windows entry somewhere on this list but I don't know where it falls. You need to count where that menu item falls in the list. For example if your Windows entry is where my Test1 entry is then it would be in position 4 (Ubuntu is in position 0 not 1)

Now that we have that we need to create a file .. I will use startwin in this example
open startwin in your favorite editor and enter the following:

#!/bin/bash
grub-reboot 4
reboot now

(of course 4 being whatever number you determined that your Windows entry is positioned) save the file and open terminal. Change to the directory where startwin is located and make sure its set to be executable.

sudo chmod +x startwin

Now you are ready to try it out.. open terminal change to the directory the file is located and type sudo ./startwin of course save all your work and close anything open because this will restart the computer. It should start in Windows and when you tell Windows to reboot it should go back to Ubuntu again.

If it worked all you have to do is set up a cron job to have it run at midnight.

Edit /etc/crontab add the entry at the bottom

00 00 * * * root path/to/startwin/startwin

and make a Windows task to reboot when you want it to switch back to Ubuntu like 7am.

Now at 7am your Windows Task would automatically reboot into Ubuntu and at midnight your Ubuntu script would automatically reboot into Windows.


First launch the file manager by clicking on "Places" in the top menu and selecting "Home Folder". From there click on "File System" on the left part and that will take you to the / directory, from there you'll see /tmp, which you can then browse to.


Windows needs permission from Unix User\Root to delete/move in a samba share

The permissions listed here don't allow the user cody to write at Linux level but well to read.

So if you force Samba to use this Linux user when accessing the share (force user = cody), you won't be able to write either from Windows.

Evreything is owned by root from /media/Network with write access only allowed to the user owning the directory or the file, in this case root.

So what you have to do is to switch the owner of the files and directories starting with and below /media/Network to have a write access from Windows.

sudo chown -R cody /media/Network

When setting up Samba, you don't have to forgot that the read and write access coming from a Windows PC are to be translated by the smbd daemon of Samba into Linux read and write, using a valid Linux user and subject to the underlaying Linux filesystem permissions.
In your Samba configuration extract, you tell Samba to use the Linux user cody to access the directories and files under /media/Network. Forgetting about the Windows username that is passed in the connection between Windows and Samba.


The correct mount point is /mnt/mynewdrive; plugdev is not correct; on permissions, why not use access control lists (ACL)?

Are the ACL tools installed by default? Can't remember, but, cannot hurt to...

sudo apt-get install acl

Mount the file systems with the acl option in /etc/fstab.

sudo vim /etc/fstab

UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx / ext4 defaults,acl 0 1

sudo mount -o remount,acl /

Then make a group to which a user may belong for this purpose, which I'll call stone, and then make a user a member of that group.

sudo groupadd stone
sudo usermod -a -G stone $username

The user needs to log out and in again to become a member of the group.
If the directory, /mnt/mynewdrive, is mounted and completely empty:

sudo chown root.stone /mnt/mynewdrive
sudo chmod 0775 /mnt/mynewdrive
sudo chmod g+s  /mnt/mynewdrive
sudo chmod +t   /mnt/mynewdrive
sudo setfacl -d -m u::rwx,g::rwx,o::r-x /mnt/mynewdrive

Above...

Change owner to root and group owner to stone
Give write ability to the stone group
Cause all new files to be group-owned by stone
Restrict delete and rename to all but the user who created the file
By default, allow user and group rwx, others: rx.


How do I fix the problems I'm having with Xfce and Xubuntu?

Ok, reinstalled Xubuntu, the built-in battery monitor still doesn't work.  Rhythmbox is also not picking up my GTK theme, but fortunately everything else is.  Thanks for your help with the previous problem, now what do you propose I do about the above issues?


Installing a Nvidia FX 5600 AGP to replace SiS onboard graphics

For your case just insert the video card, boot up in Ubuntu and go to the Additional Drivers. After installing the Nvidia proprietary driver, Ubuntu will take care of changing the vesa you are using for the Nvidia one. That is done automatically.

So basically, install the video, card, install the proprietary drivers, reboot, done.


To install ygraph open the terminal and type:
cd ~/Desktop/
wget http://archive.ubuntu.com/ubuntu/pool/universe/y/ygraph/ygraph_0.16~cvs20090218-1.1_amd64.deb
sudo apt install ./ygraph_0.16~cvs20090218-1.1_amd64.deb

These commands were tested on Ubuntu 18.04 and Ubuntu 20.04.


I was able to get this working on ubuntu 13.04 (question asked on ubuntu 12.04). Here are a few pointers:

Use the full user agent string as @mason81 pointed out:

UCCAPI/15.0.4420.1017 OC/15.0.4420.1017 (Microsoft Lync)

I did not need to use a startup script to solve any write errors. e.g.

export NSS_SSL_CBC_RANDOM_IV=0
pidgin -d

That linked repo was pointless on this distro, don't use it. It appears that on Ubuntu 13.04 you will install pidgin-sipe 1.13.3-1 by default which is an even more up-to-date version.

It appears that the pidgin/sipe setup I have installed here has a third authentication type for TLS as seen in this picture which is what I needed.

For reference, here are my connection settings that are working:

The other tabs are the defaults

Update

To get this working in ubuntu 14.04, do exactly the same, but untick the single sign on!


I have to execute this line each time chrome is updated:

sudo sh -c "cp /usr/share/applications/defaults.list /usr/share/applications/defaults_back.list && grep -v chrome /usr/share/applications/defaults_back.list > /usr/share/applications/defaults.list"


How do I stop update manager trying to downgrade my 3.4 kernel to 3.2?

Update Manager only does one thing, it updates things, it updates your repository list and updates the packages found in those repositories you have in your sources.

It does not downgrade anything, you get the update for Kernel 3.2 because you have a 3.2 kernel installed. Now since you installed the 3.4 kernel and don't want to be bothered again for updates for the 3.2 version, simply remove the 3.2 packages.

Open Synaptic (if you don't have it install it sudo apt-get install synaptic)then search for  "linux 3.2" if you don't get proper results try with "linux image" or "linux headers" adding the version "3.2" and uninstall them.

Voilá! you won't be bothered again with the upgrade for 3.2.


Unable to Install Wine on Ubuntu 14.04.2?

Open a terminal and type

sudo apt-get update
sudo apt-get install wine

It will install the supported wine package in your Ubuntu machine


Change name of the video file using youtube-dl not working

Open the terminal and type:

youtube-dl -o video.mp4 https://res.cloudinary.com/dqozdyzvu/video/upload/v1514809216/29836749002162.mp4

This command saves the file exactly as video.mp4 in the current directory.

The % characters in '%(video)s.%(mp4)s' in your question are used to denote an output template which will be replaced by the actual value corresponding to the sequence name. Note that some of the sequences are not guaranteed to be present since they depend on the metadata obtained by a particular extractor. Such sequences will be replaced with NA which stands for Not Available.


mainline kernel now depends on libc6 2.33, non-installable in focal?

Here is how i made dkms modules generated with kernel 5.11.18 from ubuntu mainline-kernel.
I run Linux Mint 20.1 Cinnamon and use nvidia-driver-460 version 460.73.01-0ubuntu0.20.04.1 in dkms.
The gcc I use is version 10.3.
Everything worked fine with ver 5.11.16-generic but stopped when i tried 5.11.18.
So I tried to find the problem why dkms did not compiled the kernel modules.
This is what I did:

Installed kernel 5.11.18-generic
Found that in kernel headers program fixdep relates to glibc 2.33
Found that in kernel headers program modpost relates to glibc 2.33
Replaced /lib/modules/5.11.18-generic/build/scripts/basic/fixdep with the one in 5.11.16
Replaced /lib/modules/5.11.18-generic/build/scripts/mod/modpost with the one in 5.11.16
Ran dkms against kernel 5.11.18  (/usr/lib/dkms/dkms_autoinstaller start 5.11.18-051118-generic)
Successfully generated nvidia kernel modules.
Rebooted and it works ok.
Even tried the same with kernel 5.12.1 and it worked.

Hope this helps.


As @steeldriver pointed out, sed will spawn /bin/sh which is symlinked to /bin/dash in current Ubuntu releases and doesn't support functions. This is because sed internally uses popen, which always spawns /bin/sh (see man popen).

If you can't or don't want to make bash the default shell and need to use bash functions in sed, you can use the following workaround.

In order to make /bin/sh point to /bin/bash, we first use unshare to spawn a new bash with a private mount namespace, bindmount /bin/bash on /bin/dash and then execute the sed command:

unshare -m -r bash -c "mount --bind /bin/bash /bin/dash && sed -e 's/.*/urldecode &/e' big_file.csv"

That way, all exported functions are preserved. You can also write a function so you don't have to write the whole unshare... part all the time, e.g.:

#!/bin/bash

function mysed() {
    sedcommand=sed
    # restore quotes around each script
    while test $# -gt 0; do
        [[ "$1" == "-e" ]] && { shift; sedcommand="$sedcommand -e '$1'"; } || sedcommand="$sedcommand $1"; shift
    done
    unshare -m -r bash -c "mount --bind /bin/bash /bin/dash && $sedcommand"
}

function urldecode() {
    local url_encoded="${1//+/ }"
    printf '%b' "${url_encoded//%/\\x}"
}

export -f urldecode

mysed -e 's|.*|urldecode &|e' big_file.csv

Be aware, though, that the -r option of unshare, which is needed to be able to bindmount, creates a kind of virtual environment in which you are root. Read/write permissions are the same as the user who called unshare, but uid and gid will be  0. For example, if you call whoami inside urldecode, it will print root.

You could also simply run the whole script using unshare:

unshare -m -r bash -c "mount --bind /bin/bash /bin/dash && ./script.sh"

...but the restrictions from the previous paragraph apply.


You can do this with gdebi the 16.04 Software Center is actually bugged (but already pacthed upstream), so till that update hits live use gdebi.
To install gdebi do in terminal (ctrl+alt+t):

sudo apt-get install gdebi

After that start it with:

gksudo gdebi-gtk

This will after prpomting you for your password open the Gdebi-GUI version.

Now just open your .deb file by

File --> open

Then hit install package. This way you mostly wont run into dependency problems.

Another solution is doing it via terminal with dpkg(ctrl+alt+t):

sudo dpkg -i <packagename>.deb

If you run into messages saying something about unmet dependencies do

sudo apt-get -f install

this will aswell do it, but the gdebisolutioin is more hassle free.


Fixing partially unallocated partition after gparted crash

First, your partition appears to be fine; it's the filesystem it contains that's damaged.

A partition is defined by a start point and either an end point or a length, depending on the partition table type, along with some ancillary data like a partition type code. Partition tables are very simple data structures, and you've presented no evidence that yours is damaged.

Filesystems, on the other hand, are much more complex data structures that reside within partitions. That is, a partition provides a pointer to the start of a filesystem data structure, and the filesystem does much more interesting things, like enabling a computer to locate individual files and directories. They're rather delicate and very complex. The vast majority of the time spent in "resizing a partition" or "moving a partition" is actually spent adjusting filesystem data structures, not partition data structures.

I'm making a big deal about this distinction because a lack of understanding about it can lead you on a wild goose chase. In particular, the only way a partitioning tool like gdisk or (mostly) TestDisk might help would be if your filesystem is mostly intact but the partition start point is wrong. In this case, TestDisk might be able to locate the correct start point and build a new partition around it. This seems unlikely, though -- your output indicates that e2fsck has identified a filesystem but is having difficulty fixing it. If you were moving the start point of the partition, this means that either the filesystem's starting data structures were moved, but the job was incomplete or botched; or the operation hadn't yet gotten around to moving the start point of the partition. Either way, the filesystem's data structures are damaged, and even if you could locate the old start point, it wouldn't help. Thus, you're looking at a filesystem-level repair, using the start point identified by the partition table as it is now. The only way a bad partition start point would make sense in your case is if the current partition start point is referring to an old filesystem -- either something from a previous partition or the original partition you were trying to shrink, but GParted has moved the filesystem's start point but not adjusted the partition's start point. These scenarios are both possible but unlikely. If one of them is correct, then TestDisk might find the correct filesystem start point. This is a long shot. It might be worth trying, but I wouldn't hold out much hope for success.

If, OTOH, the partition points to the current and correct filesystem start point, then the filesystem is simply badly damaged. In this case, I recommend you first try to copy off any important user data you can. If the partition will mount in read-only mode, you might be able to copy off the data it holds. If you get enough data, you could then unmount the filesystem, create a fresh filesystem in the partition (or a new one of the desired location and size), and copy your data back.

If the partition won't mount at all, then some advanced recovery tools might help. These include:

TestDisk -- This tool is generally used to locate filesystems and create new partitions around them, but IIRC, it also has a mode that enables browsing filesystems for files. It's conceivable this would find something. I know relatively little about this functionality, though, so I can't provide more details on how to use it.
PhotoRec -- This tool enables you to recover individual files from a badly damaged filesystem. The last I checked, though, it didn't do a good job of recovering filenames or directory structures, so you'll be left sifting through a lot of files.
debugfs -- This is an advanced ext2/3/4fs forensics tool that might enable you to recover something.
e2fsck -- You've already tried this tool, but it has advanced options that might help with recovery.

I don't have much advice on the last two options. I'm sure there are online tutorials to help with them, but I don't have any specific sites in mind, so your Web search is as good as mine. If the automatic e2fsck options fail, as they have for you, then you're deep into expert filesystem recovery territory.

Another option is to employ a professional data recovery service. This is likely to be expensive, but if your partition held important data, it might be worth the cost.

Whatever you do, don't try to write to the disk without a backup! Anything you do at this point could make the situation worse than it already is, so before you try using e2fsck, TestDisk, or anything else that will write to the disk, it's imperative that you use dd to make a raw backup of the partition (and perhaps areas outside of the partition, if you were shrinking it by moving its start point to the right and the partition table shows the new start point). Note that dd is itself risky, so be sure to enter the correct input (if=) and output (of=) options!

Good luck with your recovery efforts!


Restarting the Network Manager service by the following command works sometimes:

sudo systemctl restart NetworkManager.service

For 14.04 you can use:

sudo service network-manager restart


How do I install the Nvidia driver for a GeForce GT 630

You can download the driver for your video card for Ubuntu 64bit from here. Assuming that you are using Ubuntu 64bit now. If you installed Ubuntu 32 bit, there is 331 version of the same driver for Ubuntu 32bit. Save your driver somewhere where you can easily access it, like your user home directory or inside a newly created nvidia  directory in your user home directory.

To be able to install your nvidia driver you have to remove your previous video driver with this code in a terminal window:

    sudo apt-get remove nvidia* && sudo apt-get autoremove

After you finish with this one, you should also blacklist the nouveau driver by editing this file with either:

    gksudo gedit /etc/modprobe.d/blacklist-nouveau.conf

or

    sudo nano /etc/modprobe.d/blacklist-nouveau.conf

…and add these lines at the end:

    blacklist nouveau
    blacklist lbm-nouveau
    options nouveau modeset=0
    alias nouveau off
    alias lbm-nouveau off

If, by any chance, there is no blacklist-nouveau.conf present in /etc/modprobe.d/, you can save your file as blacklist-nouveau.conf when prompted.

And you can also disable the Kernel Nouveau by typing these lines in a terminal window:

    echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf

and after that

    update-initramfs -u

Now you can reboot your computer, and when you get to the login prompt, press Ctrl+Alt+F1 to exit to the terminal console. Login with your username and password.

Go to the directory where you saved your nvidia driver using the command cd in the terminal console. Eg. cd nvidia considering that you are already in your user home directory after you login. You can use command dir to be able to see your exact driver's name.

To stop your display manager or the X server, you can type in the console this code:

   sudo stop lightdm   or

   sudo lightdm stop

If you are not using lightdm as your default display manager (DM), replace lightdm with your default display manager, which can be either kdm or gdm or whatever your display manager is.

You should get a message in the terminal console saying --> lightdm stopped/waiting

And now you can finally install the nvidia driver using a code similar to this one:

  sudo sh NVIDIA-Linux-x86_64.....run    (for Ubuntu 64bit)

or

  sudo sh NVIDIA-Linux-x86.....run    (for Ubuntu 32bit)

If you don't type the exact name of the driver, you'll get this message: NVIDIA-Linux... could not be found and you should type again the code for installing the driver.

Nvidia installer automatically installs the driver, and at the end it will ask you whether you want to save your new X configuration. Press Yes. After reboot and getting to your desktop and changing your NVIDIA settings as you please you should open a terminal window and type in this code:

  sudo nvidia-xconfig

to save your new nvidia configuration in /etc/X11/xorg.conf.

Note

You might need to install some extra software packages if nvidia installer gives an error and prompts for missing dependencies:

    sudo apt-get install dkms fakeroot build-essential linux-headers-generic

But you need to install all these missing packages only if nvidia-installer can't do the job by itself.

It can happen that after reboot your system shows a black screen or enters the low graphics mode. To fix this you should exit again to the console terminal, login with your username and password, and use the code provided above  sudo nvidia-xconfig and also make use of the following tutorial. It is meant to fix the greeter assuming that they haven't fixed this bug in Ubuntu 14.04.


SD-card reader suddenly stopped recognizing cards

Own Answer:

Using an external sd-card reader worked after all. The internal SD-card reader of my machine just broke, which hasn't anything to do with any config or software.


sudo vim /etc/lightdm/lightdm.conf.d/20-lubuntu.conf

edit

[SeatDefaults]

user-session=Lubuntu

autologin-user=usermane

autologin-user-timeout=delay

save

sudo vim /etc/lxdm/default.conf

edit
[base] uncomment and set autologin username to enable autologin

autologin=username


How to block the Gnome Shell Integrations popup from Chrome browser

There has been an update on the chrome-gnome-shell site which may have resolved the issue:

https://wiki.gnome.org/Projects/GnomeShellIntegrationForChrome/Installation

This was what I first tried unsuccessfully because the ne0sight repository was sending a 404 "Page not found" reply. This time it worked so my fingers are crossed that I will not see the annoying popup again.


Why can't I get Ubuntu to sync with iOS 5.1?

I've found the easiest way to get my iPad to work on Ubuntu is to install iTunes in a Windows XP guest in Virtual Box.

There are other solutions like libimobiledevice (http://libimobiledevice.org/) but I've never managed to get it to work, and it appears that iOS updates may occasionally break compatibility.


Are you asking to add your personal key bindings? If so check Preferences -> Key Bindings - User. The file format is the same as Key Bindings - Default and it won't be overwritten by Sublime Text updates.


After upgrade to 12.04, hanging in login screen

I found that when I set: Ubuntu Tweak, Login Settings, "Set the same background as the current desktop background" (I also have "Draw Grid" ON, but that was ON before), the login screen then actually does not show my current background but the purple default - however, when before it took me 2-4 cycles of shutdown/login to actually log in, with the changes I was able to login 5x in a row without problems.


While installing Xvid codecs for VLC, I've ended up with broken packages.

Try using

sudo apt-get remove libxvidcore4

It worked for me.


Should home users just turn on the firewall?

If you're going to use ufw as your firewall on your system, then might I suggest that you use gufw with it so that you can configure it based on your needs.

To install gufw type in the following from a terminal window:

sudo apt install gufw

Then to run it, type in the following from a terminal window:

sudo gufw

You should see a screen like the following that will allow you to configure your firewall as you need.

You can scroll up and down the Getting started screen on the Home tab to help explain more of what you can set for your ufw configuration.

More information can be found at https://help.ubuntu.com/community/Gufw

Hope this helps!


Creating a Gtk window with input shape mask in python

Unfortunately, some Cairo objects are not introspected yet:

https://mail.gnome.org/archives/python-hackers-list/2011-December/msg00004.html

If you feel adventurous you can try to add support by yourself. Otherwise you need to find a workaround.


Make GNOME 3 favorites launch a new window with left mouse button

Yeah, I had that problem too. Very annoying.

Try this:
https://extensions.gnome.org/extension/67/dash-click-fix/


Which hidden files in the /home/user folder control the desktop?

I never had problems with backing up and restoring a working home directory (with the same uid/gid) to the same or another machine. When I had issues (I remember a disabled trackpad through an indicator-app that wouldn't reactivate even though I found the exact config key) I moved the folder to create a new empty directory and used the meld diff viewer to successively copy things over to the new home.

So trial and error is the best advice I can give in the absence of any better approach.


How can I search and locate a system folder

You can use the find command to find folders with the -type d parameter. Here are a few examples:

#Search Root ( / ) folder for a folder called www

nits@excalibur:~$ sudo find / -name www -type d
/media/6E5E0E255E0DE6A5/cygwin/srv/www
/media/6E5E0E255E0DE6A5/cygwin/usr/share/doc/ImageMagick-6.4.0.6/www
/media/6E5E0E255E0DE6A5/cygwin/usr/share/doc/GraphicsMagick/www
/media/6E5E0E255E0DE6A5/cygwin/var/www
/media/6E5E0E255E0DE6A5/wamp/www

#Search current folder for a folder which start either Capital/lower-case M

nits@excalibur:~$ find . -iname m* -type d
./.local/share/telepathy/mission-control
./.config/menus
./.mozilla/firefox/vwfuj46p.default/minidumps
./.cache/indicators/messages
./.cache/chromium/Default/Media Cache
./Music
./.macromedia/Flash_Player/macromedia.com
./.jedit/macros
./.jedit/modes
./.gconf/apps/metacity

In the above examples, you would have noticed that only the directories with no subdirectories in them are listed. You can use mindepth/maxdepth to set the depth of the level that needs to be traversed.

#Search current directory for directories starting with either capital/lower-case M but only are present in the current directory

nits@excalibur:~$ find . -maxdepth 1 -iname m* -type d
./Music

# Traverse two levels (current level and one level under) in the current directory for directories starting with either capital/lower-case M:

nits@excalibur:~$ find . -maxdepth 2 -iname m* -type d
./.config/menus
./Music
./.jedit/macros
./.jedit/modes

There are a whole load of different options to search directories and files as well using  find, you can look through the man-page accessible by man find for all the options and how to use it. Also although find is slower than locate it doesn't require updatedb to update a DB to search through because the search is performed real-time.


Is it possible to edit the .bash_login file for the second time?

The file is owned by root. You should be using chown instead:

sudo chown $USER:$USER .bash_login


Running multiple services on one dedicated server with static IP

Yes, you can run multiple services as you describe, this is what "ports" are for in fact.

See: http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml

My guess would be a permissions problem, does you rtorrent server and apache BOTH have at least read/write (for torrent) access to /var/www/rutorrent ?


Windows option doesn't show up in GRUB menu

As suggested by @mook765 all I had to do was to change the boot order and make boot option #1 from hard drive and not Ubuntu. With that way Windows loaded with no problem!


How to make ttf-mscorefonts-installer package download fonts, after it says it installed?

The ttf-mscorefonts-installer package allows for easy installation of the Microsoft True Type Core Fonts for the web.

Run sudo apt-get install ttf-mscorefonts-installer and accept the EULA, or else if you already have ttf-mscorefonts-installer installed and you didn't accept the EULA, then uninstall ttf-mscorefonts-installer and reinstall it like this:

sudo dpkg -P ttf-mscorefonts-installer
sudo apt install ttf-mscorefonts-installer

Use the Tab and Enter keys to accept the EULA in the Microsoft TrueType core fonts window that pops up. The terminal will output a new message each time it finishes downloading a new font. Wait a bit until the terminal tells you that it's finished downloading and installing the Microsoft TrueType core fonts.

As noted in package ttf-mscorefonts-installer 3.4+nmu1ubuntu2 fails to install/upgrade, the current 3.4 version of ttf-mscorefonts-installer searches for the font files in an incorrect network location. The consequence of this is that the core fonts are never installed. This problem occurs with Ubuntu 16.04 as of July, 2016. Current to October 11, 2017 the latest version of ttf-mscorefonts-installer is also 3.4 in Ubuntu 16.10 and Ubuntu 17.04 and the latest version of ttf-mscorefonts-installer is 3.6 in Ubuntu 17.10.

The Debian (upstream) version 3.6 of ttf-mscorefonts-installer searches for the font files in the correct network location, and will successfully install the core fonts. For more information about this fix see Failure to download extra data files - ttf-mscorefonts-installer


I think what you mean is this guide. Although it says "Live CD" in the title, you can include the option of installing the customized system on other computers.


Ubuntu says installation is successful, but prompts for installation again after restarting

Dumb question: Have you removed the pen drive after the installation? If don't, it's a normal thing, because you're booting from pen drive again.
Otherwise, boot from the pen drive and verify the health of your installation.
Try:

sudo fdisk -l

Then, update us here with the output.


Can I use Ubuntu on my Dell Venue 8 pro?

It's almost fully working with Ubuntu 14.10; the touch screen is working, but still no Wifi or Bluetooth.

32-bit UEFI gives a bit of trouble after installing. See 32-bit UEFI boot on Asus T100

Here is a thread on this topic in Ubuntu Forums


Using update-alternatives to change plymouth theme only affects shutdown animation, startup is left unchanged

I ran into a similar thing.
After using synaptic to find the default plymouth theme, I hit properties to see what files were installed. That listed most files going into this directory

/usr/share/plymouth/themes

put all you files there then run

update-alternatives --install /usr/share/plymouth/themes/default.plymouth default.plymouth /usr/share/plymouth/themes/"path/to-your-plymouth.plymouth" 100


Running this bash script ONCE causes a "System program problem detected" on EVERY reboot

This is actually a notification that a crash has happened on your system. Although in most cases this is not serious, you can check what crashed by reading the output of ls -l /var/crash/.

If you recognize the crash reason to be something in your script, you should modify your script and try again.

If however you decide to disable crash reporting altogether, then please follow the instructions below so no more crash reports will be displayed in the future.

You can disable crash reporting if that is what you want by editing the file /etc/default/apport and changing enabled=1 to enabled=0 and saving the file.

Alternatively you can do this from your script by adding this line:

sudo sed -i 's/enabled=1/enabled=0/g' /etc/default/apport

Best of luck


Nvidia xorg.conf options for better performances in Unity 3d

Take the following steps for better performance:

Open compizconfig-settings-manager. Go to OPENGL section. uncheck Sync To VBlank
Add vm.swappiness=$VALUE in /etc/sysctl.conf file by executing

echo "vm.swappiness=10" |sudo tee -a /etc/sysctl.conf > /dev/null

Use swap. If you don't have, create using this tutorial.
Again compiz-settings-manager. Go to Unity plugin > Experimental section. Change Dash bar to static blur
Avoid left click on dash. Use right click for specific option.
If you have a /etc/X11/xorg.conf file (do not create it if you do not have one),  add the following lines in Device section

Option "AccelMethod" "EXA"
Option "MigrationHeuristic" "greedy"
Option "AccelDFS" "true"
Option "EnablePageFlip" "true"
Option "EnableDepthMoves" "true"


You may want to check your DNS setup.

I also use multiple subdomains which I create on the fly for various applications using web frameworks such as Python Django or Ruby on Rails.

A typical example is at mydomain.com I may want to have myapp.mydomain.com where myapp is a framework served at my_server_IP:some_port.

In order to achieve such thing (many subdomains on the fly at the same OR different ports) I delegate the decision from the DNS to the Web server with a Wildcard DNS record see Wikipedia. As the name suggests, such record produces a catch all domain which can be easily managed from the web server with the use of virtual hosts - domain proxys, etc.

An A wildcard record at GoDaddy's DNS management tool looks like this:

Host    Points To           TTL

*    YOUR_SERVER_IP        1 Hour

And an Nginx configuration file which passes all requests for app.mydomain.com to otherserver.com:9000/index.html

The result: you type in browser http://app.mydomain.com and Nginx serves content from otherserver.com:9000/index.html which can be another server or application, etc

server {
    listen   80;

    server_name app.mydomain.com www.app.mydomain.com;

    access_log  /var/log/nginx/app_mydomain_com_access.log;
    error_log   /var/log/nginx/pp_mydomain_com_error.log;

    error_page 404 /404.html;

    error_page 500 502 503 504 /50x.html;

    location / {
        proxy_pass http://otherserver.com:9000/index.html;
    }

}


Why did Ubuntu source repository key signature fail with security warning?

According to What's the official method for checking integrity of a source package? and How to get apt-get source verification working? you can try these:

sudo apt-get install debian-keyring
gpg --keyserver keyring.debian.org --recv-keys 9F1B8B32


after formating Windows partition it is still showing up in dual boot with Ubuntu

If the "dual boot" menu is grub and you formatted the 1TB after you reinstalled Ubuntu, then you need to update grub by running the following command:

sudo update-grub


Convert .ogg file containing cover art to .mp4 file

If I'm understanding your question correctly, the problem that you are having has nothing to do with ffmpeg and everything to do with your choice of container. The MP4 container is fine when put to the use it was designed for, but is a poor choice when attempting to include cover art. To the best of my knowledge, the best choice of multimedia container that supports what you are attempting is Matroska as it supports adding virtually anything to a multimedia file. There's an example of adding cover art available here. A quick look the file manager (nautilus in my case) shows the cover art as the icon as shown below:

mediainfo makes it clear that there are attachments in the container providing output like:

mediainfo cover_art.mkv
 ----Snip---
    Attachment                               : Yes / Yes / Yes / Yes
 ----Snip---

And ffmpeg will even tell you what those attachments are with ffmpeg -i cover_art.mkv:

--Snip--
    Metadata:
      filename        : cover.jpg
      mimetype        : image/jpeg
    Stream #0:3: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 120x176 [SAR 300:300 DAR 15:22], 90k tbr, 90k tbn
    Metadata:
      filename        : small_cover.jpg
      mimetype        : image/jpeg
    Stream #0:4: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 1067x600 [SAR 96:96 DAR 1067:600], 90k tbr, 90k tbn
    Metadata:
      filename        : cover_land.jpg
      mimetype        : image/jpeg
    Stream #0:5: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 213x120 [SAR 96:96 DAR 71:40], 90k tbr, 90k tbn
    Metadata:
      filename        : small_cover_land.jpg
      mimetype        : image/jpeg

Of course you'll have to map the streams appropriately and provide the metadata upon creation. The thing to remember is that ffmpeg treats these images as additional video streams.

Crafting the ``ffmpeg` command line that you need can be assisted with a review of the documentation.
If your .ogg file is audio only you can use the MP3 container and your answer is here.


If you're technically inclined, you can actually write one without too much trouble!

Here's the popsquares source. Look how tiny it is!

GNOME Screensaver actually does support xscreensaver, so you can do this a few different ways :)

Here's a guide for writing an xscreensaver, and some examples, as well as how they're invoked by the screensaver it's self.

Here's a bit more from the GNOME website.

I'd personally love this app! Perhaps someone could write it!


How do I get back Grub Bootloader back if it has suddenly disappeared?

You cannot get back into Linux ?

Is Windows located on a separated hard-disk ?

You could re-install with 18.04 LTS in expert-modus - but only re-install the root-files in the root-partition of '/' - and do not format the previous /home - Partition of your linux and also do not format the windows-Partition. This way grub will be reinstalled too (into MBR of sda? - or into MBR of root-harddisk) and update-grub2 will be done automatically.

This way Windows will be accepted and your previous Linux-/home partition will be taken over.


Why is apt unable to find bitcoin-qt package?

Simply put: that repository doesn't contain bitcoin-qt.

I think the default client for Linux is the QT client so you just need:

sudo apt-get install bitcoin

Additionally, the 32bit version of this is currently failing to build. Talk to to repo maintainer to get an idea of the problem.


Difference between pgp protocol and rsa protocol

Using a car analogy:

PGP is a car
OpenPGP is the design for the PGP car
GnuPG is another car using the same design
RSA is a diesel engine, and other engines are available
SSH isn't a car at all. But it uses engines.

RSA is a public-key cryptosystem. That is, it is an algorithm for encrypting, decrypting and signing data using a set of two keys (the public key and private key).

PGP and GnuPG both offer the use of RSA for general purpose encryption and signing of data. They also offer other options, like Elgamal and DSA.

SSH uses RSA for authentication, not encryption. The server has your public key, and you have the private key, and SSH uses this fact to make sure you are, well, you. SSH also supports other keypairs, for example, ECDSA.

Further reading on the Information Security Stack Exchange:

How does RSA encryption compare to PGP?
RSA vs. DSA for SSH authentication keys

And you should probably read What is the difference between SSL vs SSH? Which is more secure? as well.


cp Directory target can't be found Ubuntu 14.04

First:

You don't need to use sudo for copying to your home own directory.

Second:

Your cp command is:

cp desktop-login.ogg.old sudo cp ~/Downloads/Desktop-login.ogg

So, you're trying to copy files named desktop-login.ogg.old, sudo and cp from the current directory, to ~/Downloads/Desktop-login.ogg. If you tell cp to copy multiple files, it will assume the target is a directory. Since the target isn't a directory, it will complain. What you need to use is just:

cp desktop-login.ogg.old ~/Downloads/Desktop-login.ogg

But from your question, you wanted to copy the latter, to the former. So, you actually need to use:

cp ~/Downloads/Desktop-login.ogg desktop-login.ogg.old

And if that file is not in your home directory, but in /usr/share (or somewhere like that, then use sudo).


HP Pavilion p7-1235 Windows works but Ubuntu turns off

IF you can get it to boot, hit the little icon just to the top right of your login and change the option to "Ubuntu 2D"
Another thing you can try is to go into the "Screen Lock" settings, find it by typing it into the start search -> set "turn my monitor off after" to "never"

It could be a power management incompatibility because its an APU... and frankly ive not played with those yet.

But because its a cpu+VGA it seems to me it might have something funky with the screen sleep.
To solve that long term will take someone more clever than me, but then... i might even be wrong with this.


Touchpad stopped working after removing external mouse on Ubuntu 20.04 LTS

I had same problem. Here is what I did to solve it:
sudo apt-get update -y
sudo apt-get install -y xserver-xorg-input-all

If above commands return that all packages are installed correctly, then try following:
This might make your Ubuntu installation useless if anything fails
sudo apt-get remove xserver-xorg-input-all -y && sudo apt-get install -y xserver-xorg-input-all


Broken Ubuntu installation while restarting

Boot into recovery mode, and enter the following:

sudo apt-get clean
sudo apt-get autoclean
sudo apt-get -f install
sudo dpkg --configure -a

and sudo apt-get -f install

followed by

sudo apt-get upgrade
sudo apt-get update
sudo apt-get dis-upgrade

Should work now...


Program for managing "Profiles" (Home, work...)

User and group account administration

this is what I found in the Softwarecenter, maybe this works out for your needs.

mind you: I have never tested or used this, so I can't give advise on how to use or run it.


Guide for users who've never heard of linux ( and are 8 years old )?

This is my own experience with my kids operating Ubuntu since they are 6 years old.

Children are born computer illiterate. It does not matter to them what OS they are on, all and everything is new.
Guides are written by and for adults. They won't understand them. Whenever they look up things (e.g. how to install Minecraft mods) they exclusively use video tutorials.
Kids love to experiment. We need to makes sure that we can reset the system any time. Automated backups in the background are a good means for quick repair if all went wrong.
We should only grant them sudo permissions if we were happy with frequent reinstallations.
They get on very well with the desktop, and how to use their applications. They learn by doing, trying, clicking here, clicking there. At the end of the day they manage to do whatever they need without any guide.
In case they get stuck, it may be a good idea to have access to that machine (e.g. physically or remotely with VNC or SSH). This helps to reduce frustration.
Don't over-protect them. A locked down restricted machine is bad for experimenting. In the long run it is better to not leave them alone.
Install an Internet site rating tool for the browser and educate them why there are warnings for some sites.
Complaints about their friend's Windows to be so much better will come. Discuss advantages and disadvantages of both systems to let them decide on their own (yes, they can do that).


Can I install NFS server and run it under Ubuntu Desktop?

Yes you can. Works as advertised. You already know the initial steps of the setup, as the link you posted shows.
You may widen your knowledge by searching the web for "/etc/exports examples".


I want to check back my process which i ran like ' "Command do something" &' but in background

When you run a job in the background, you get an answer like below:

$ sleep 100 &
[1] 112488

The [1] is the job number. So running:

$ fg 1
sleep 100

will pull job 1 to the foreground.

If you run a job without & you can suspend it with CTRL-z and put it in the background with bg <jobnumber>:

$ sleep 100
^Z
[1]+  Stopped                 sleep 100
$ bg 1
[1]+ sleep 100 &
$


You need to download a Windows ISO, and unzip it into a Pendrive.
In your netbook BIOS, change the Boot Order, and select USB/Flashdrive as the First Boot.
Make a clean install of Windows. It's Highly Recommended to make two partitions, one for Windows, and one for Ubuntu, in case of emergency (to recover files).

If you choose this option, first install Windows, and later, install Ubuntu.


Failed to execute child process? Anyone know a fix for this?

You have lost the binary file of Mozilla firefox. By lost, I mean it has either been renamed/replaced/moved/deleted; any of these. If you do not know what has actually happened and can afford to lose your firefox data(browsing history, saved passwords, etc.) then the easiest way to procure the binary is to re-install the complete package.

To re-install, open a terminal and type:

sudo apt-get purge firefox
sudo apt-get install firefox


What are the specs needed to run Ubuntu 13.04?

Specs from:

What are the system requirements for each flavour of Ubuntu Desktop

Minimum

RaringRingtail (13.04 32-bit)
    384 MB of RAM
    700 MHz processor (about Intel Celeron or better)
    5 GB of hard-drive space
    VGA capable of 1024x768 screen resolution
    Either a CD/DVD drive or a USB port for the installer media

Recommended

RaringRingtail (13.04 64-bit)
    1 GB of RAM
    Dual Core processor
    10 GB of hard-drive space or SSD (the more hard disk capacity, the better)
    Any graphics card with OpenGL 1.4 support (All GPUs released today by either NVidia, AMD or Intel; GPUs released by NVidia and AMD over the last 5 years; GPUs released by Intel after the GMA 950)
    Either a CD/DVD drive or a USB port for the installer media
    Internet access is helpful

With 3 year old machines I can't see there being a problem meeting the recommended spec (which IMHO is needed for reasonable desktop performance).

Cheers, Nick


airodump-ng fopen failed: No such file or directory

The -w parameter of airodump-ng is for specifying a file prefix, not a folder.

The right command would be:

airodump-ng -c 11 --bssid 34:5B:34:7B:AC:66 -w /root/Desktop/capture_file mon2

This will create a file on this path:

/root/Desktop/capture_file-01.csv

Quote from the airodump-ng man page:

  -w , --write
      Is the dump file prefix to use. If this option is not given, it will only show data on the screen.