FFmpeg converting to flv but with 0 file size

WinFF is a GUI for the command line video converter, FFMPEG.

It will convert most any video file that FFmpeg will convert. WinFF does multiple files in multiple formats at one time. You can for example convert mpeg’s, flv’s, and mov’s, all into avi’s all at once.

WinFF is available for Debian, Ubuntu, Redhat based GNU/Linux distributions. WinFF is available in Brazilian Portuguese, Bulgarian, Chinese Traditional, Danish, English, French, German, Greek, Hebrew, Italian, Norwegian, Polish, Portuguese, Russian, Serbian, Slovenian, Spanish and Turkish.

This may provide an easier solution instead of CLI.

To install sudo apt-get install winff

Tutorial


How to fix "couldn't connect to host" error installing Unity Webapps?

The best guest is that you were affected by an outage in LaunchPad service or a problem with your network:

$ sudo add-apt-repository ppa:webapps/preview
You are about to add the following PPA to your system:
 This is the preview for Unity WebApps for Ubuntu Quantal (12.10) Precise (12.04).

To install...

sudo add-apt-repository ppa:webapps/preview
sudo apt-get update
sudo apt-get install unity-webapps-preview
Restart your session (logout and back in)

To uninstall...

sudo apt-get install ppa-purge
sudo ppa-purge ppa:webapps/preview
 More info: https://launchpad.net/~webapps/+archive/preview
Press [ENTER] to continue or ctrl-c to cancel adding it

As you can see, I'm able to add the repository. The only clue is:

curl.perform()
pycurl.error: (7, "couldn't connect to host")

This means that the curl library of python, could not get access to the LP servers.


bash sorting multiple duplicate strings in a file

Doing the same as Oli suggested with sh instead of awk:

#!/bin/sh

IFS=:
while read key value; do
    if [ "$key" = "Personname" ]; then
        printf "\n%s" $value
    else
        printf ",%s" $value
    fi
done < data


W: Target Packages is configured multiple times

Each warning message occurs when the package manager discovers a duplicate source.

To fix the problem, simply edit the source file and delete-or-disable one of the sources.

Let's deconstruct one sample line:

Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:52 and /etc/apt/sources.list.d/google-chrome.list:3

Now let's look at it again:

Target Packages (PATH) is configured multiple times in FILE_1:LINE_1 and FILE_2:LINE_2

In order to fix the source for PATH (main/binary-amd64/Packages, Google Chrome):

You can delete FILE_1:LINE_1 (/etc/apt/sources.list, Line #52)
Or you can delete FILE_2:LINE_2 (/etc/apt/sources.list.d/google-chrome.list, Line #3)

WARNING: DO NOT DELETE all of FILE_1 or FILE_2. Your system needs those files. Those are the files that tell your system where to get software upgrades from. NEVER DELETE the file /etc/apt/sources.list - it provides security upgrades.


How do I determine what hardware is present?

Is

lshw

what you're looking for?

From the manual

DESCRIPTION
   lshw is a small tool to extract detailed information on the hardware configuration  of  the  machine.  It  can
   report  exact  memory  configuration,  firmware version, mainboard configuration, CPU version and speed, cache
   configuration, bus speed, etc. on DMI-capable x86 or IA-64 systems and on some PowerPC machines  (PowerMac  G4
   is known to work).

   It currently supports DMI (x86 and IA-64 only), OpenFirmware device tree (PowerPC only), PCI/AGP, CPUID (x86),
   IDE/ATA/ATAPI, PCMCIA (only tested on x86), SCSI and USB.


How to set a folder inside an apache document to the correct permission?

chmod -R 755 /path/to/folder

Apache document root are on /var/www. If you have set the path to something else give the similar path .i.e I usually set my document root to $HOME/public_html.

See this for more information.


How can I install Ubuntu 18.10 on Intel NUC8i5BEH?

Lubuntu 18.10 installed without a problem from the drivers, and there was no need to update the BIOS. The only difficulty was caused when the BIOS settings were changed from UEFI to Legacy and then did not select the legacy boot device, but after this correction all functions worked well out of the box.

The "NUC" stands for Intel's Next Unit of Computing. There are two install options for the Intel NUC: Ubuntu Core or Ubuntu Desktop. Official NUC installation instructions from ubuntu.com are at Install Ubuntu Desktop on the Intel NUC.

Minimum requirements:

An Intel NUC with BIOS updated to the latest version (update instructions)
1 USB 2.0 or 3.0 flash drive (4GB minimum for Dawson Canyon NUCs, 2GB for older generations)
A USB keyboard and a mouse
A monitor with an HDMI interface
An HDMI cable
A network connection with internet access


Volume setting isn't remembered after restart/shutdown

A little over a year ago I was having this same issue. My boss told me to set the sound via alsamixer and that fixed it somehow. Worth a shot.

In a terminal run:

alsamixer


Missing 'libseccomp2:amd64' and other on Ubuntu Server 18.04 on RaspberryPi

OMG: Just when I wrote aarch64. I was trying to install docker for wrong architecture. AMD64 instead of arm64/aarch64. In Docker's instruction amd64 is preselected. I haven't not noticed it at first.
To summarize:
In step 4 it's important to chose a correct architecture. For me it is arm64.


Anytime you have a .jar with JDK present in your system, you can run it as java -jar <jarfile>.jar. This is independent of the OS you are using.


How to mklink /home/ to a new empty partition

You should be able to do this all graphically on the lubuntu installer. Just select you want to manually set up the partitions. This beings up a graphical interface. You can tell it where to format and put your operating system. You can shrink partitions, make new ones (one you need to format as a swap-parition). And there is also a mount point option. You mount your home drive/partition at /home


Ubuntu 14.04 AMD Dual Graphics 8650G / 8670M

I did some more digging in google and found out at ubuntuforums that gpu-manager was causing the confusion.

I tried doing aticonfig --initial --adapter=1 to generate an xorg.conf file, but the file was getting replaced with an near empty file on reboot.

On reboot my system will default to the integrated GPU. I guess its the driver making this decision on account of the xorg.conf file being incomplete.

I stumbled upon a bug report at https://bugs.launchpad.net/ubuntu/+source/ubuntu-drivers-common/+bug/1310489 which helped me solve the problem (temporarily atleast).

The temporary solution in the bug report was to comment out the start on lines at the beginning of the file /etc/init/gpu-manager.conf which should prevent the gpu-manager being started when lightdm started and replaced my xorg.conf file.

I have to read up on these to get a more concrete idea.


How do I get a wireless logitech unifying USB keyboard to wake Ubuntu from suspend?

Try the wakeup events like in this post into your BIOS!


Install new thunderbird 68 under ubuntu that have older one in repository

You can download the current Linux version of thunderbird,
https://download.mozilla.org/?product=thunderbird-68.1.0-SSL&os=linux64&lang=en-US
e.g. "thunderbird-68.1.0.tar.bz2" and extract it as root into
/usr/lib/
by using

user@sh~$: sudo tar -C /usr/lib/ -xjvpf ~/Downloads/thunderbird-68.1.0.tar.bz2

it worked for me under Ubuntu 18.04.3 LTS. Since I am using thunderbird on Mac, Windows and Linux in parallel, I prefer having it on the same version.

Note: This might be overwritten if an official update package for thunderbird will be installed from ubuntu


USB support will work without the extension package - but only 1.1
Seems like they don't want to make the modules for usb 2.0 open source, so they offer it as extension pack.


How to set vsftpd to put one directory on the server

To change the default login directory for vsftpd, change the ftp user home directory in /etc/passwd:

ftp:x:116:116:vsftpd daemon:/media:/bin/false


Wait for it to give up on connecting.  After a few minutes, it will show something like this:

"The Meeting Room could not connect to the Adobe Connect Server.
Please re-launch the Meeting Room, or refresh your browser to
restore the connection."

There will be a link to a troubleshooting page.  Run the diagnostic tests, then click the button to "Send Results."  This will send the information to the system administrator or help desk for the Adobe Connect server.  For good measure, you might also contact them with a separate message.

(I don't know that this will really help, but it's what I did, and currrently I'm waiting for the system administrators to respond.  I'm using Ubuntu 14.04.   I found the connection test failed on my university's Adobe Connect server, but it succeeded on Adobe's test page https://arcps.adobeconnect.com/common/help/en/support/meeting_test.htm, so I'm hoping the failure was due to some misconfiguration.)

Unable to join meetings at Adobe Connect? asks a similar question for Ubuntu 13.04; you might find some answers there helpful.
Update:

My university's server administrator found this trouble is due to an unresolved bug in Adobe's Flash player; see https://bugs.launchpad.net/ubuntu/+source/flashplugin-nonfree/+bug/1064353.  I had been using Firefox; he advised me to use the 3rd workaround in the bug report: use Google Chrome on Linux, with its Pepper flash player.  I had previously installed the Ubuntu chromium-browser package, and now I installed the Ubuntu package pepperflashplugin-nonfree, which provides this plugin for Chromium.  Using Chromium browser, I am now able to connect to Connect server.  Since Google now provides a deb package for Chrome, that would probably also work.


libnss3-nssdb library missing in ubuntu 17.04

It appears that libnss3-nssdb is not in the Zesty repo yet. I couldn't find anything on their plans to bring it up, but there is a new libnss3-tools that may have what you want. Here is how to install the old libnss3-nssdb package that you want:

Graphical Interface Way:

Open Ubuntu Software Center and click "Software Sources"

Click on "Other Software", "Add", and then paste this in deb http://cz.archive.ubuntu.com/ubuntu xenial-updates main

Note: You can also substitute xenial-updates for trusty, but there are noted issues with going back that far.
Reload Ubuntu Software Center or just wait and let it rebuilt its cache, then search for your package (libnss3-nssdb) and install it.

Command Line Way:

To install libnss3-nssdb in 17.04, you can add the Xenial Updates source by editing your /etc/apt/sources.list to include a line with this deb http://cz.archive.ubuntu.com/ubuntu xenial-updates main.

Make a backup first sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
Add in the new line echo "deb http://cz.archive.ubuntu.com/ubuntu xenial-updates main " | sudo tee -a /etc/apt/sources.list

Note: It is tempting to just do a echo >> but that won't work.
Update to use the new repo sudo apt-get update
Install your package sudo apt-get install libnss3-nssdb

If you get any error like held broken packages, please do the following.
sudo apt-get install libnss3=2.3.26.2-0ubuntu0.16.04.2 and repeat step 4 again.


Gnome Shell theme displays orange title bars

You need to install gnome-tweak-tool and gnome-themes-standard, then use gnome-tweak-tool to change your window border theme to something supported by mutter (such as Adwaita).

If it does not apply immediately, log on and log back in. Also ensure you've installed all the updates.


I always go for installing isc-dhcp-server myself. IMHO, it doesn't hurt to give it a try and you can always snapshot/clone/template it for future uses or newer deployments. The installation is pretty straight, I give you this link to a ShowTerm session showing how to do a basic install of isc-dhcp-server, just in case you need it.
For the VBoxManage part, I have used it in the past with no results, just as you say, not giving leases. (I know the whole point would be on troubleshooting it).


Hardware Enablement Stack (HWE) on a Dell Developer Edition XPS 13 Laptop?

My advice is: if you are unsure, and going to stick with Ubuntu 18.04, then stick with the OES installation of Ubuntu by Dell. This is an installation tested by the Dell developers, and which is under warranty. The kernel is "under the hood" anyway. In the best case, you won't notice anything after upgrading the kernel, in the (not unlikely) less best case, you may bump into some issues.


Run the Startup Applications.

You can get to this GUI by typing "Startup Applications" in the Ubuntu Launch button.

I'm sure the GUI is intuitive.  Just click Add.  Then give your desired command (or application) a name in the first field.  For the command field, in your case, type in:

xset m 0 0

You can also type something in the comment section to remind you the intent of this application.

After those three parameters, click Add.


Install Ubuntu in Flash Drive to work in any computer

Yes, it will work. But you will probably have problems with different drivers for different hardware which could lead to some crashes or (especially when it comes to graphics drivers) the system won't start and leaves you with a black screen.


It is a bug for sure.

Try the following, in order, until your problem is fixed.

sudo dpkg --configure -a
sudo apt-get dist-upgrade

If that fails try

sudo rm /var/lib/dpkg/available
sudo dselect update
sudo apt-get dist-upgrade

Or if all else fails

sudo rm /var/lib/dpkg/{status,available}
sudo apt-get update
sudo apt-get dist-upgrade

If that fails, you will need to edit the file and remove the offending line or file a bug report.


Dependency problem installing dell osam on Ubuntu 15.10

I had to install three older libs from trusty to get this to work on wily:

libsmbios (2_2.2.28-2)
python-libsmbios(2.2.28-2)
smbios-utils (2.2.28-2)

then:

apt-mark hold smbios-utils
apt-mark hold libsmbios2
apt-mark hold python-libsmbios

And finally:

apt-get install srvadmin-all


Dropbox disappeared from my tray, but I need the preferences dialog!

I wound up running Software Updater and restarting, which restored the system tray icon.

I'm slightly annoyed that that's what worked but I guess the moral of the story is:  check for software updates before you tear your hair out.


14.04 Freeze on Splash after Installing NVIDIA Drivers

There is a complicated answer here that worked for me: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-331/+bug/1362848

I fixed the problem with my nvidia graphic card using the post #15.

Thank you very much kcpr (mkasprzyk5) without your help I would not be albe to fix it.

Here how I fixed in details:

Log out and go to the console:

CTRL-ALT-F1

If (like me) you tried to install latest nvidia driver (nvidia-340 ...), you need to revert back with following commands:

sudo apt-get install ppa-purge
sudo ppa-purge xorg-edgers
sudo apt-get purge nvidia*

Then copy all xorg config files in a temporary dir:

cd
mkdir temp
sudo mv /etc/X11/xorg.conf* ./temp/

Then clean, update, upgrade and reboot the system:

sudo apt-get autoremove
sudo apt-get update
sudo apt-get upgrade
sudo reboot

Go to the console:

CTRL-ALT-F1

Install nvidia 331:

sudo apt-get install nvidia-331 nvidia-prime

Copy the old xorg.conf made by nvidia back in its directory:

sudo cp temp/xorg.conf.nvidia-xconfig-original /etc/X11/xorg.conf

And edit it (I used vi, you may prefer nano):

sudo vi /etc/X11/xorg.conf

To be as the following:

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
    Identifier "intel"
    Driver "intel"
    BusID "PCI:0@0:2:0"
    Option "AccelMethod" "SNA"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1@0:0:0"
    Option "ConstrainCursor" "off"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration" "on"
    Option "IgnoreDisplayDevices" "CRT"
EndSection

Eventually reboot the system:

sudo reboot

Now I have nvidia set as graphic card and the hardware acceleration works fine.


pdf2svg works quite well.

Use \pagestyle{empty} to avoid page numbers and pdfcrop (package texlive-extra-utils) to remove empty space around the equations


XSane fails to open device (invalid argument)

There was a bug in the scanning library that affected wireless scanning using some devices. Upgrade libsane to 1.0.26 or newer. If it isn't available in the software centre, install it from this ppa:

sudo add-apt-repository ppa:rolfbensch/sane-git
sudo apt-get update
sudo apt-get dist-upgrade


Ubuntu 14.04 won't boot or shut down normally

You can set UEFI Boot to disabled to use legacy booting.

If you want to use UEFI you can try to disable Fast Boot, this solved the problem for me.


After sleep state, PC with Xubuntu doesn't let me shut down the system

I have discovered that was causing this strange behavior was the propietary Nvidia driver.
Disabling propietary and using open source drivers has solved my problem


just for the records, here is the way I found to mount a Mac disk image created with dd.

1) Get the start and sector size

fdisk -l /path/to/image.dd

You get X for start and Y for size.

2) mount the partition

mount -t hfsplus -o ro,offset=$((512*X)),sizelimit=$((512*Y)) /path/to/image.dd /mnt/macMount

It's a mix of solution that I found. Hope this would help someone.


Error message "Unable to create a required folder. Please create the following folder, or set permissions such that it can be created"

Press Ctrl+Alt+F1 to switch to tty1 console
Login
Fix permissions for hduser

sudo chown -R hduser:hduser .
sudo find /home/hduser/ -type d -exec chmod 750 {} +
sudo find /home/hduser/ -type f -exec chmod 640 {} +

Press Ctrl+Alt+F7 to switch back
Try login


Ubuntu install complete restart your pc... begins installation from the start

After the installation process is finished, you will be asked to remove the USB drive that you used to install Ubuntu then restart your PC.
All what you have to do is to unplug the USB drive then restart your computer so that it will be able to start Ubuntu.

EDIT:
After the install is completed, you should enter the BIOS menu (when you start your PC) and change the boot order, so that your PC boots to its hard drive instead the USB drive.


Ubuntu 18 , stuck at purple screen after log in , how to fix this?

As a temporary workaround, you may be able to log in by going to recovery mode, run 'grub', then run 'resume'.

What works for some having this problem is to add 'nomodeset'  to grub. To do this, run:

  sudo nano /etc/default/grub

and change this line:

  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to this:

  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"

Exit (Ctrl X), save, and run:

  sudo update-grub


You could use rsync from desktop (or its backup) to laptop with the --ignore-existing flag. This would copy data from the desktop to the laptop, but would not overwrite existing files.
Data which is only on the desktop will be made available on the laptop; program settings on the laptop will not be overwritten. There are two ways in which this would fail, slighly:

when programs start to act differently when two configurations with different names are present. I can't think of such an application, but there may exist one. Those files should be removed by hand.
in the case of programs like Thunderbird or Chrome, there would be two "default profiles", one of which would need to be made non-default manually.

For very important data, such cases should be considered on a program-by-program basis.


Starting with precise, the ubuntu images are now also usb images. Use the 'dd' tool to easily transfer this image to usb rather than a usb creator or unebootin which are intended to convert cd images to usb images.

sudo dd if=/path/to/image.iso of=/dev/sdX

Note replace the /dev/sdX with the usb drive (not partition! eg, /dev/sda, not /dev/sda1)

WARNING, dd is a powerful tool, and should be used with caution.


Kernel panic: unable to mount root fs after building mainline kernel

I decided to re-build the kernel using make-dpkg as mentioned in the Ubuntu wiki.

sudo make-kpkg buildpackage --initrd kernel-image kernel-headers

I generated the kernel-image with:

sudo make bzImage

If I recall well, on a PC this will output vimlinuz to: /usr/src/[your_linux_source_tree]/arch/x86/build

The headers I used were downloaded from kernel.ubuntu.com/~kernel-ppa/mainline/

Finally I did the update-initramfs, update-grub trick.

Grub screen not showing up? Here's the answer


Thunderbird freezes after updated to 38.3.0

I have disabled Firetray v 0.5.6.1-signed and thunderbirds works fine now


ubuntu xcfe using xrdp from Windows 10 really bad frame rates

Could it be that the connection is just slow? You could try to reduce the amount of data by reducing the screen resolution, color depth and quality.

How to achieve this depends on the program you use for the RDP connection. If you use the windows remote desktop program you have click on the little arrow on the lower left to edit the settings (display and performance tab)


Why is my c720 Chromebook extremly slow and unresponsive with latest Kubuntu?

I have the C720 and have the ubuntu install running perfectly using the following guide

http://www.howtogeek.com/162120/how-to-install-ubuntu-linux-on-your-chromebook-with-crouton/

The only difference from your guide was that I used the XFCE4 install of Unity environment.  I have Skype, Steam, Dropbox, etc.  No lag, everythign running smoothly

I suggest you just start over and delete the chroot running Kubuntu and run it again.

You can also run throught he steps in this guide to help clean up your current install
http://www.maketecheasier.com/8-ways-to-maintain-a-clean-lean-ubuntu-machine/


"a hard disk is likely to fail soon"
This is a message from SMART, which is a firmware system in your hard disk (or SSD) to detect when certain conditions occur, such as an excess of reallocation events, excessive G-forces, temperature, etc. etc. etc. that are good indicators that your disk is going to fail sometime soon.  It may be working perfectly now, but you cannot see what's going on under the bonnet without using a tool to interact with the firmware called smartctl.
If you want to see why you are getting that warning, run the smartctl tool on the drive, smartctl -a /dev/mydisk.   You'll get 50+ lines of signals that have a minimum, maximum, and actual outputs that are based on what the manufacturer decided it could report on.
Now, it's distinctly possible that the drive is not going to get worse, but these are signals the manufacturer decided were important indicators of drive failure.
Short of rewriting the firmware to get rid of the warning*, you cannot "repair" this situation.
I would take heed of the warning and find another disk.
*which would require a tool produced by the manufacturer, which is rare and dangerous


Where can I get Project Looking Glass source code?

To my knowledge the unfortunate answer is:

You can't.

PLG is very old, no longer maintained, and probably won't run on any modern system. Either way, you don't need it. There's Compiz, Kwin, Mutter, Gala... no need for PLG :).


Testing:

When you turn on your laptop, do you see the Grub menu? If yes, proceed. If no, hold shift while powering on, to access Grub menu.
Select the proper option (The usual Ubuntu entry is what you are looking for) and instead of hitting enter to select, press e to edit boot parameters.
When in edit mode, search for the line
linux /vmlinuz-<your kernel version number> <some parameters here>
and add acpi_backlight=vendor after quiet splash, separated by a space on both sides.

  If you do it right, this will not change anything permanently. it will be a one-time change, and all changes are wiped away on reboot, so feel free to play with the options. You may use this as a reference.
  Then press Ctrl+X OR F10 to boot.
  Now it should boot into Ubuntu, as usual. login, and try testing your keys for changing brightness. If that works, you can make the change permanent.

  Making permanent change

Note:

  To play safe, test everything before making permanent changes. And if you are not-so-experienced, follow the steps exactly as described to prevent future boot failure. Any damage can be reverted, but save yourself some trouble.

Open a terminal(Ctrl+Alt+T)
type sudoedit /etc/default/grub and hit enter. Enter your password when prompted.
Your favourite (default) editor will open with a file. Search for the line that reads
GRUB_CMDLINE_LINUX_DEFAULT="<some boot parameters>" Usually, the <some-boot-parameters> are quiet splash by default.
Add acpi_backlight=vendor at the end, within quotes, separated by a space from existing arguments.
Save the file, and exit the editor.
run sudo update-grub from terminal to write changes to grub menu.

Changes get applied on restart.


Are there plans for Adobe to support Ubuntu?

That's entirely up to Adobe to decide. I would suppose that it mostly depends on how much work it would be for them to port it to GNU/Linux and how many licenses they would have to sell in order to cover the cost of doing so. I personally would also consider the large amounts of free marketing they'd get by porting it, but it might not be part of the equation at all.

Then again, for all we know, they're already working on it, and want to add it to the software center. Or perhaps they're waiting for others to make the platform more popular, and then they'll decide to port it.

In other words; it's entirely Adobes decision, and only they can answer that question.


Attempting to enter recovery mode and go to root

Try pressing 'r' for root - this should highlight the root entry of the menu, and then you can press 'enter' to get the root terminal open


Why does Ubuntu create a file ending in ~ for every file I create with a text editor like GNU Emacs?

Emacs' default mode is to create a backup file with a "~" suffix every time you edit and save a file. You can disable this by creating a .emacs file in your home directory and setting an option inside it. This happens with Emacs on all platforms. Other editors may do the same under Ubuntu, but it has nothing to do with Ubuntu itself.


GNOME Terminal > load-config > does not work properly after upgrade to 16.04

Same issue.

On my computer the command line parameter --tab-with-profile accepted value "Default", while --load_config did not (check tag <entry name="visible_name"> in the file ~/.gconf/apps/gnome-terminal/profiles/Default/%gconf.xml or use GUI profile settings).

So I have transformed important values from the config file to command line parameters. You can use following code for your setup:

gnome-terminal --geometry="135x24+437+495" \
            --tab-with-profile="Default" --working-directory="/home/.../servers/apache-tomcat-am/bin" \
            --tab-with-profile="Default" --working-directory="/home/.../servers/apache-tomcat-web/bin" \
            --tab-with-profile="Default" --working-directory="/home/.../servers/payara-middleware/bin" \
            --tab-with-profile="Default" --working-directory="/home/.../servers/glassfish-api/bin"

Unfortunately I haven't found how to set tab titles this way.

But there are sweets in the end. You can use --command for each tab and run e.g. mc. This was impossible with config file.


Failed getting dual boot with Windows 7 and Ubuntu 12.10, 64bit

https://neosmart.net/EasyBCD/ this will help in theory, its a nice util, but its not a magic bullet, but it will write to the MBR which is what your missing (thats what gives you the options when you boot right after the POST)


Is it possible to have a shared library in a snap?

Snap primary target is the packaging of apps as full bundle to run in an isolated container. So it is not suitable for shared libraries, plugins, modules, OS themes...

You may offer as Debian package from PPA or Official archive. Even as source archive, app developers can build your library in same tree for their snap.


While Installing Odoo v9 in Ubuntu 16.04 'E: Sub-process /usr/bin/dpkg returned an error code (2)'

Open the terminal and type:

sudo apt-get update
sudo apt-get upgrade
sudo ufw allow ssh # for the purpose of remote management you need ssh and openssh-server
sudo ufw allow 8069/tcp
sudo ufw enable
echo "deb http://nightly.openerp.com/9.0/nightly/deb/ ./" | sudo tee /etc/apt/sources.list
sudo apt-get update
sudo apt-get install odoo
sudo service odoo start

You can now access Odoo from: yourIP:8069
Example: http://162.243.69.108:8069

Update: Odoo is actively maintained and gets updated regularly. The current latest stable version is Odoo 11. The link to get it is: http://nightly.odoo.com/11.0/nightly/deb/ and when installing Odoo 11 the third line in the above code block should be changed accordingly.


How to change color of top bar in Gnome 3.8

For not having a 'Appbar' at the top in certain Applications, you can use

https://extensions.gnome.org/extension/354/maximus/

But you have to change the config file
in

~/.local/share/gnome-extension/.../..json

and enable Gnome 3.8 Support. Then you can enable a Whitelist / Blacklist.


FSLview didn't display properly in Ubuntu 16.04

By placing an ampersand & at the end of the line you are attempting to start fslview in the background which is doubtless not your intent if you expect to actually see something. The command line structure as found on the man page is as follows:

fslview [-m <viewmode>] [<baseimage> [imageoptions] ... ]

There's really no need to jump through hoops installing this as it's part of the fsl package available in the multiverse repository.

If anything about this answer is unclear, please drop me a comment and I'll do my best to clarify.


Thunderbird freezes when downloading large mails

Going gray does not nessesarily mean that TB crashed with a freeze. It signals you that the application is busy. Only being busy for an endless time would be a freeze. If your application continues running after the download finished IMO everything is just fine.

Failure to read already downloaded mails while a larger download runs is more like a wishlist feature for TB. But consider this: when having set up your account with IMAP you may not be able to add a further download when the program still is busy downloading.


What is the reason why apt packages contain checksums for every single file?

One can obtain .deb files from sources that don't do your "A". While unpacking the packages, the installer does not "know" where the package came from, and uses the per file checksums to ensure integrity.


Ubuntu detects another monitor when I don't have any other monitor

If it is only with the latest kernel, it may be a defect in the kernel, or drivers for the GPU may be a bit buggy with this kernel. Try rolling back to kernel and see if that does anything.

Good luck!


Is it possible / avaliable to Upgrade to MySQl 5.5

I think, you'll have to compile it from source: MySQL Download page

You eventually can convert an RPM package to a deb package (there's a tool named "alien" for that), but you don't want to do that.


What happen if I install ubuntu without unlocking 'secure boot' & 'fast boot' on windows pre-installed computer? -pastebin attached

First check if Windows is still there (not erased by mistake). Boot into a Live Ubuntu and open GParted. Check partition map and look for ntfs partitions labeled msftdata, Windows, etc.
If Windows is still there, insert the Win install disk and reboot into it (remove the Live Ubuntu medium while restarting the PC). Let the Wins install process begin and choose 'Repair Windows' option when asked for it.

At this point, you got Windows 'back', but you can't boot into Ubuntu anymore. The following steps are beyond the point of your original question, but i somehow feel you might find them useful in case you may want to dual-boot Win+Ubuntu.

Let the repair process finish, then reboot into the installed Windows. Go to Settings and disable "Fast Boot'.
Reboot into the BIOS/UEFI menu, go to Security Options and disable Secure Boot. Some firmware may not have such option. Not to worry. Just leave it as it is and reboot.
Boot into a Live Ubuntu and install boot-repair like this: Open a Terminal window and type:
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair
Let the repair process finish and reboot (remove the live Ubuntu medium in the process). The GRUB menu should appear presenting options to boot in Win or Ubuntu.


Black Screen with cursor blinking when started Ubuntu on VirtualBox

Fortunately, I am able to resolve the issue.

I was trying to access the USB. The black screen problem occurred, when I added the "Generic USB2.0-CRW [3960]" FROM VirtualBox Settings -> USB -> "add new USB filter...". I selected USB 3.0 (xHCI) Controller from "Enable USB Controller" section.

As soon I removed the  "Generic USB2.0-CRW [3960]", connected my USB bug and selected "FTDI FT232R USB UART [0600]", I was able to connect my switch using minicom.

I am not sure yet why this problem happened!


I followed the instructions found here to download the missing libfaudio:i386.

Ubuntu 18.04:
wget https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/Release.key

sudo apt-key add Release.key

Add the repository:
sudo apt-add-repository 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/ ./'

Then update:
sudo apt update


Install Alongside Windows or Something Else - Which should I use?

Alongside
As the other answer say, this method is the recommend one for those users that don't have the enough experience with partitions and OS installation.
In this method, you don't have to worry about the configurations, the Ubuntu installer will do all the complex work for you and you will be using Ubuntu in minutes.
Of course that both OS will exist separately and with own programs.
Your Ubuntu will be as a Windows program, with its own entry in Add/Remove programs.
This is relatively low risk for your Windows system.
Something Else
If you are one of those users how want all the things as they want to, configuring everything and choosing all the options to your way, this option is the one you should pick.
It will let you choice the use of the partitions (resizing, moving and allocating the free space).


Figured it out! I started in recovery mode (https://wiki.ubuntu.com/RecoveryMode) and undid all those changes I had made in /etc/profile and /etc/environment

Now it's booting up perfectly! Unnecessary trouble! :|


Card reader and usb flash drive not detected on Xfce4 on a Chromebook

i wasnt able to solve the ploblem completely but i have been able to access my removable devices via oppening a certain folder let me walk you through on how to get to the folder

fist step
-go to the system file folders
second step
-find the folder called media
-where as in this folder you will find a folder called removable and from that folder make a shortcut to that folder in the desktop and then open the folder and there you go you can access your removable devices from the folder.


Is it possible to notify with NotifyOSD when a specified process terminates?

This works for me ...

Create a folder called bin in your home directory if such a folder doesn't already exist.

Create a plain text file in ~/bin with the following contents:

#!/bin/bash
if
    pgrep firefox
then
    notify-send  --urgency=critical "Is Firefox still running?"
else
    notify-send  "No Firefox process is running"
    zenity --question --text="Proceed to shutdown?"
  if [ $? = 0 ]; then
        dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop
  else
    exit
  fi
fi

Save it as fx-check-n-shutdown. No need for any suffix.

Then, right-click on fx-check-n-shutdown from within your file manager. Select Properties and make the file "executable" for you.

Install libnotify-bin from the software center or by running sudo apt-get install libnotify-bin in a terminal.

Once that's done, type fx-check-n-shutdown in your terminal and hit enter. You should see a notification asking you  "Is Firefox still running?" or that "No Firefox process is running".

In the latter case where no Firefox process is running, the notification will soon disappear by itself (provided your mouse pointer isn't over the area occupied by the notification).

You'll also see a small window asking you if you wish to shutdown or not.

If Firefox is still running, you'll need to dismiss the notification yourself by clicking on the notification and you can then ensure that you've closed Firefox thoroughly.

What you've done is to create a script called fx-check-n-shutdown.
You've made it executable.
You've installed libnotify-bin a program that allows ordinary users to make their own notifications.

What the script does:

It checks if any process with "firefox" in it is running.
If a Firefox process is running, you're notified. You can then open a terminal, and run pgrep firefox to get the ID of the process (PID) and use that PID to get more details of the actual command running by running cat /proc/<pid>cmdline where you'll use the actual PID instead of <pid>.
If no process involving Firefox is open, you're briefly notified and a Zenity shutdown window opens asking you whether you really wish to shutdown or not.

Once you're satisfied, you can set up a keyboard shortcut for launching fx-check-n-shutdown instead of having to run it via a terminal. How you set up the shortcut depends on your particular flavor of Ubuntu. For Ubuntu 14.04, instructions are here: https://help.ubuntu.com/14.04/ubuntu-help/keyboard-shortcuts-set.html


Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below.

sudo apt-get update && sudo apt-get upgrade

sudo apt-get install honeyd


Ubuntu 10.04 is running in low graphics mode "No device detected"

Run gksudo gedit /etc/modprobe.d/blacklist.conf, and add the following to the bottom:

blacklist vga16fb
blacklist nouveau
blacklist rivafb
blacklist nvidiafb
blacklist rivatv

...save and reboot.

PS: If you want the monitor to become known, edit the "Monitor" section of xorg.cong, for example:

Section "Monitor"
Identifier   "Monitor0"
VendorName   "Aliens"
ModelName    "XoXo"
HorizSync   28.0-33.0
VertRefresh   43.0-72.0
Option    "DPMS"
EndSection


How do I upgrade the default torrent client (Transmission) in 16.04?

By default Xenial Xerus 16.04 LTS carries quite an aged version of Transmission. There is an outside chance that a newer version may come through Ubuntu Backports but for the moment there is a very solid and stable PPA that carries the most recent version.

To add this PPA and then install the very latest version (2.9.2) run the following commands in a Terminal window:

sudo add-apt-repository ppa:transmissionbt/ppa
sudo apt-get update
sudo apt-get install transmission

And this is enough to get you the very latest Transmission complete with all of the recent security updates and improvements. A screenshot from my own Xenial system:

There have been several releases in 2016 (2.90 and 2.92), with the promise of more to come, so having the PPA added to your system ensures that you will stay up to date when future releases of Transmission are rolled out.

References:

Transmission Changelogs
PPA: “transmissionbt” team


Cannot run native Ubuntu in virtualbox with a vmdk created using the createrawvmdk command with partitions specified

As soon as you boot Ubuntu from a "virtualized" real harddisk with the method you mentioned it will not find it's bootmanager Grub as in your dual boot setting Grub most likely resides in the MBR of the first (boot) partition on you physical hard drive. From there Grub decides on your choice to boot Windows or Ubuntu.
If you want to boot Ubuntu from a virtual machine then you need a bootmanager (Grub) the same way you need it on a real system.
To achieve this you either need to install Grub in your Ubuntu partition or you need to create a small boot partition for Grub that could easily be added to your Virtual Machine. Read here, and in the GNU Grub manual for further details.

Warning: Both methods could break your dual boot setup or could make your Windows or Ubuntu system unbootable if you made something wrong.

The safe way:
A much safer way to have access for your host and guest data would be installing Ubuntu on it's own 10-15 GB VDI and just mounting your host /home in the guest OS for data acess. By doing so you will also be able to load host or guest kernel modules without breaking the host Ubuntu installation.


My recommendation is to just use Linux Mint.  It comes preinstalled with cinnamon so you don't have to go through the trouble of installing it.  If you need any apps that come preinstalled with Ubuntu, just install them from the repositories or through Mint's app store.


There is no good way to solve it. If you want to allow another user to install software, then give them administrative rights and set a password. Installing software without asking for a password is a really bad practice.


How to install ungoogled-chromiun on Ubuntu 20.04

Ungoogled-chromium can conflict with Chromium, if it is installed, so you should first uninstall it.
To do this, open a terminal and run in it:
sudo apt-get autoremove --purge chromium

The project is in the openSUSE repositories, to install it from there, you would have to perform a series of instructions:
In principle add the repository to the sources.list file running in terminal:
echo 'deb http://download.opensuse.org/repositories/home:/ungoogled_chromium/Ubuntu_Focal/ /' | sudo tee /etc/apt/sources.list.d/home:ungoogled_chromium.list

Then we would have to add the public key by executing in the terminal:
sudo wget -nv https://download.opensuse.org/repositories/home:ungoogled_chromium/Ubuntu_Focal/Release.key -O "/etc/apt/trusted.gpg.d/home:ungoogled_chromium.asc"

Now it only remains to update the system and install it, running in terminal:
sudo apt update

sudo apt install ungoogled-chromium

Using this method, you make sure you keep it updated with each new version, that the project team keeps updating.
On this site, you can obtain information about the program, as well as obtain the binaries to install it manually:
https://github.com/Eloston/ungoogled-chromium#feature-overview


One thing to try is:

ldconfig -vv | grep libalure

...
 libalure.so.1 -> libalure.so

This will tell you if your library is being dynamically linked, make sure you've got a reference to /usr/local/lib in your /etc/ld.so.conf and /etc/ld.so.conf.d as well

(it's now automatically referenced in /etc/ld.so.conf.d/libc)


Ubuntu Gnome: No such file or directory [remove steam]

mlocate is a tool that reads its findings from one or more databases created or refreshed by the command:
sudo updatedb

Update the database and try again.
Or use find:
sudo find / -iname steam

But this can take a while, when your drive(s) are bigger.


You can add ~/scripts to your $PATH environment variable. Then you can run scriptname from anywhere (but not ./scriptname, because the ./ denotes the current directory).

This answer shows how to add ~/bin to $PATH, but you can do the same with ~/scripts of course.


How can I make the default sound input for Skype persistent?

Unfortunately, this may be a bug in Ubuntu's integration of PulseAudio and alsa-utils.  We're investigating possible resolutions.


How do I extend the PATH used by the awesome window manager run command?

Maybe by adding something as follow in the /etc/profile file?

export PATH=~/bin:$PATH

If you have problems with the tilde (~), try /home/$USER/bin. If you're the only user on that computer anyway, you can always use /home/ranson/bin, of course.

Notes:

you can also do that in your own ~/.profile file in which case the /home/ranson/bin path will work as is:

export PATH=/home/ransom/bin:$PATH
you'll have to log out and log back in for that change to take effect.


Full Apps Directory not available in Software Center

Try this:

After searching for apache you are likely shown a page like this:

At the bottom you see a button Show .. technical items. Click that and you should be presented with what you want.


high cpu linked to unresponsive websites?

Assuming that you haven't installed anything important that spawns k and ka, it should be a safe bet to kill them:

sudo killall -KILL k; sudo killall -KILL ka


How to delete a 'Locked' folder on a 2nd internal HDD

Step 1: List mount-able devices
sudo fdisk -l

In my case I get:

Step 2: Create a directory to mount to
sudo mkdir /media/external

Step 3: Mount the drive now
sudo mount -t ntfs /dev/sdc1 /media/external -o  uid=1000,gid=100,utf8,dmask=027,fmask=137

Replace ntfs with the type,  /dev/sdc1 with the device
Finally remove the locked folder using the command sudo rm -r /media/external/locked_folder_name
Note: Use rm command with caution. Make sure you have selected the correct folder name


Unable to connect to WiFi - Dell Vostro 2420

you have first to deactivate the driver you installed from jockey, and then you can use ndisgtk
if you have your wireless driver for windows this program will create a driver for linux starting from Windows driver
if it did not work you can see this for detecting you wireless card then download the driver from here

or finally if those did not worked try this sudo apt-get install firmware-b43-installer or this sudo apt-get install firmware-b43-lpphy-installer in the command line


The following packages have been kept back

Just copy the package names that have been kept back and add them on a apt-get install statement.

sudo apt-get install package-names

Your case will be:

sudo apt-get install libglib2.0-0:i386 libhwloc-plugins


If GNOME 3 PPA is giving you troubles, then why not just remove it. As you may know, PPA is nice if you want to test the new technology, but as all tests you may run into problems in the process. If you are suffering problems about GNOME3 PPA, the recommended path of action is to remove them. PPA's were never meant to be solid rock but a way to get the latest of the latest in Ubuntu:

  Know what you're installing. Most likely you'll use Launchpad for the majority of your PPA needs, but even so it can be dangerous to your computer. Usually the worry for me is not malicious intent, but conflicting packages. If package A requires a modified version of ffmpeg, and package B in a different repository requires a modified version of ffmpeg too, well, now there's a good chance you might not be able to watch videos, for example, with package A or B or at all.

  For a "novice" or "noob" - my best advice is to steer clear of PPA's until you feel confident that you understand a few things about the command line, potential error messages and a few things how to diagnose issues. Foosfreedom

For removing PPA's you will need ppa-purge. If you install GNOME3 from the Ubuntu repositories you get assured of a maximum capability in your system and less likely to run into problems. PPAs are for tester and people that don't need a stable system. If what you need is solid rock where to stand, PPA's are definitively not for you.

Good to read:

What are PPAs and how do I use them?
How to remove PPAs?
Are PPA's safe to add to my system and what are some “red flags” to watch out for?


Copying photos from camera stalls - how to track down issue?

I suggest you change the USB mode from PTP to mass storage. It should simplify connection problems since USB mass storage is more widely supported.

I had similar problems with Ubuntu 12.10 and a camera which only had PTP mode.

WORKAROUND: If your camera doesn't support mass storage mode, maybe it would be easier to transfer files by removing your memory card from the camera and use a card reader if your computer doesn't have a built-in reader.


HDMI connected monitor not working after upgrade from 14.04 to 16.04

I don't know exactly how, but I got it working. I uninstalled the Nvidia drivers and rebooted. My best guess is that the 4.4.8 kernel with the original drivers is what I needed.


How do I remove dependencies from a deb installer for an isolated system?

According to man dpkg-source:

-Dfield=value
      Override or add an output control file field.

And from man dpkg-buildpackage:

--source-option=opt
      Pass option opt to dpkg-source.

So perhaps you could override the Depends field thus:

dpkg-buildpackage --source-option='-DDepends=...' ...


Seems like it was a sound settings bug.
I changed the main device for sound output, from default "Analog Stereo" to "Analog Surroung 5.1 Output"
( my sound card in embedded in the motherboard, but it has outputs for 5.1 sound )
Now it seems to work fine.


Grafana not picking up my metrics from graphite

I also faced the same issue. It got resolved for me when I replaced "url" under graphite to the server DNS instead of localhost as below. Also, make sure you can access this URL from your web browser. If not, verify the port.

graphite: {
    type: 'graphite',
    url: "http://my.graphite.server:80",
  },


Trying to switch to 32-bit Wineprefix from 64-bit Wine 1.6.2 (Trusty 14.04)

Create a 32-bit Windows wine prefix:

env WINEPREFIX=$HOME/.wine32 WINEARCH=win32 winecfg

(or win64 as winearch)

Usage of prefix - with env:

env WINEPREFIX=$HOME/.wine32 command arguments[...]

command is like wine setup.exe.

For more info, see man env.

$HOME/.wine32 is your prefix name (actually, /home/username/.wine32) and you have to specify it always to use it.

Default WINEPREFIX is ~/.wine, you can re-create it by removing (with any changes): unrecommended

rm -R ~/.wine

You cannot change architecture of a prefix without re-creation in future. For different games I recommend a separate wine prefix (or for different game clients like EA Origin)


LinuxMCE is a free, open source add-on to Kubuntu.

Linux Home Automation has a lot of links.


This issue is known and has been reported:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1558331
https://bugs.chromium.org/p/chromium/issues/detail?id=596074
How to fix apt: Signature by key uses weak digest algorithm (SHA1)?

is just a warning. This issue does not stop you from upgrading packages.


Your screenshot looks like it is a rather pristine install of thunar.
Normally, the behaviour you want will be pulled in if you install the xubuntu-desktop package.

You might get the trash back without the xubuntu stuff if you install the recommendations of thunar via terminal:

# apt-cache depends thunar

or via synaptic package manager.


You should indeed try using the alternate (text) installer. Don't be scared, even though it is text it is completely menu based, there is no command line involved. Basically the installer draws some kind of graphical windows using text characters.

Once Ubuntu is installed you will probably have access to proprietary drivers which anable your graphics card.

If you are still scared of the installer you should maybe find a local Linux User Group. There is one in almost every city of the planet. The folks there can help you hands on.


It seems this is a know issue - see https://bugs.launchpad.net/ubuntu/+source/dolphin/+bug/1509562 and https://bugs.launchpad.net/ubuntu/+source/kubuntu-meta/+bug/1450068


Easiest way to stream videos from my server?

use ssh -X with xauth, and run vlc on the server. It's fairly easy to stream videos using vlc. Howver this solution uses too much bandwidth to be usable.

What you should use instead is a network filesystem, just hit ctrl-l in nautilus, and then type sftp://user@my-server:port/folder and open up your movies directly off the server. This will use some cpu on both the server and client for the encryption, if that is a problem you can set up NFS.


Apache - Simple Alias directive not working

Problem solved.
Alias commands has to be configured in the /etc/apache2/mods-enabled/alias.conf file.
It is quite strange, but they are ignored in the virtual host files.
In my opinion, this isn't logical - if I have more websites, than an alias in /etc/apache2/mods-enabled/alias.conf will work for all websites. But it started working immediately after I moved alias from website config file to alias.conf file.


Update Ubuntu Server 14.04.1 LTS without internet

No idea about FOG and your company policy, but I suppose you could burn an image of ubuntu 16.04.3, burn it and add it to your sources in /etc/apt/sources.list and update.

Take a look at this and this posts.


I use Mumble (desktop client) + Murmur (as LAN server) + Plumble (Android/iOS client). This results in the lowest latency I've ever achieved (sounds almost like normal loopback, theoretically 7ms WiFi delay + 2x 10ms codec delay = 27 ms).
For the latest version, see github.com/pzmarzly/mic_over_mumble.
Fragments of README (rev 8c827fe)

Install Mumble (desktop client) + Murmur (server) + Plumble (Android/iOS client). Set all 3 programs to use best quality and minimal latency. Set mobile client to always streaming.

To install Mumble + Murmur on Ubuntu, you can use:
sudo apt install mumble mumble-server
sudo systemctl stop mumble-server.service
sudo systemctl disable mumble-server.service

Copy mic_over_mumble anywhere - it will use ~/.mic_over_Mumble as configuration directory.

Run mic_over_mumble. It will start the server on LAN, then start Mumble (if asked for nickname, enter anything other than SuperUser). Then connect your mobile device to the LAN server manually. Please note that Mumble mobile app has some issues.

Then, set up your programs to use either "Monitor_of_Mumble" or "VirtualMic" as input device (they are linked). E.g. in OBS:

Copy of mic_over_mumble script (rev 8c827fe)
#!/bin/bash
set -euo pipefail
# PAID = PulseAudio ID
# ID = PID / process ID

function main () {
    if [ ! -e ~/.mic_over_Mumble ]; then
        mkdir ~/.mic_over_Mumble
    fi
    cd ~/.mic_over_Mumble

    rm murmur.ini || true
    echo "bonjour=true" >> murmur.ini
    echo "bandwidth=130000" >> murmur.ini

    if [ ! -e ./initdone ]; then
        echo "You will need to configure Mumble client to use the lowest possible latency."
        echo "We will start Mumble now. Please complete setup wizard and go to settings to increase quality and decrease latency."
        echo "Also, mute your microphone (if you have one) in Mumble."
        echo "Then close Mumble."
        run_mumble_client_wizard
        touch ./initdone
    fi

    echo "Starting Mumble server (murmurd)..."
    run_mumble_server_bg
    sleep 5
    echo "Starting Mumble client..."
    MUMBLE_CLIENT_ID=$(run_mumble_client_bg)
    sleep 15
    echo "Fetching PulseAudio configuration..."
    MUMBLE_CLIENT_PAID=$(get_mumble_client_paid)

    echo "Changing PulseAudio configuration..."
    echo "Adding sink..."
    SINK_MODULE_PAID=$(add_sink)
    sleep 3

    echo "Fetching current configuration to redirect Mumble..."
    SINK_PAID=$(get_sink_paid)
    pacmd move-sink-input "$MUMBLE_CLIENT_PAID" "$SINK_PAID"

    echo "Adding a virtual microphone..."
    SOURCE_MODULE_PAID=$(add_source)

    echo "Done. Please use pavucontrol to ensure everything works."
    echo "Press Return to shut down..."
    read -n1 -s -r
    echo "Shutting down..."

    echo "Stopping Mumble client..."
    kill -KILL "$MUMBLE_CLIENT_ID" || true
    sleep 2
    echo "Stopping Mumble server..."
    # TODO: find a better way to kill murmurd
    # (it forks, so we cannot use its PID)
    pkill murmurd || true
    echo "Restoring PulseAudio configuration..."
    pactl unload-module "$SOURCE_MODULE_PAID"
    pactl unload-module "$SINK_MODULE_PAID"
}

function run_mumble_client_wizard () {
    mumble >/dev/null 2>&1
}

function run_mumble_client_bg () {
    MUMBLE_URL="mumble://localhost"
    mumble $MUMBLE_URL >/dev/null 2>&1 &
    echo $!
}

function run_mumble_server_bg () {
    murmurd -ini ./murmur.ini &
    # echo $!
    # TODO: here we can get murmur's PID
    # (uncomment the line above)
}

function get_mumble_client_paid () {
    pacmd list-sink-inputs |
        grep -F -e "index: " -e "media.name = " |
        cut_every_second_newline |
        grep -F -e "Mumble" |
        print_second_column
}

function add_sink () {
    pactl load-module \
        module-null-sink \
        sink_name=Loopback_of_Mumble \
        sink_properties=device.description=Loopback_of_Mumble
}

function add_source () {
    pactl load-module \
        module-virtual-source \
        source_name=VirtualMic \
        master=Loopback_of_Mumble.monitor \
        source_properties=device.description=VirtualMic
}

function get_sink_paid () {
    pacmd list-sinks |
        grep -F -e "index: " -e "name: " |
        cut_every_second_newline |
        grep -F -e "Loopback" |
        print_second_column
}

# https://serverfault.com/a/375098/449626
function cut_every_second_newline () {
    awk 'ORS=NR%2?" ":"\n"'
}

function print_second_column () {
    awk '{print $2}'
}

main


Is there a rule for iptables to limit the amount of SYN packets a /24 range of IPs can send?

Taking 10.0.0.0/24 as an example, something like

iptables -A INPUT -p tcp -s 10.0.0.0/24 --syn -m limit --limit 1/s --limit-burst 3 -j RETURN

should do the job and is quite self-descriptive, so that doesn't need any explanation I guess. Here's a good, easy to read article on how to prevent TCP SYN flood attacks: Linux Iptables Limit the number of incoming tcp connection / syn-flood attacks. It explains more about the options, and provides a more extensive way too (logging, separate chain, etc.).

I can't see the current state of your iptables from here, so you might want to add this at the top of the INPUT chain or integrate it properly in your current scripts.

In the comments you've mentioned you're looking for an automated way of finding these IP blocks. Well, I should just leave out the source address filter in the command (-s 10.0.0.0/8), so the limit will apply to the whole world.


What Ubuntu version are you running? HD 7750's are supported on 12.10 forward out of the box in 3D mode. That is my direct experience.

This is the latest Catalyst driver for Ubunutu 13.xx ATI Radeon HD 7750

If you're running more than 2 monitors this may not work well. That is also my direct experience. I previously had a HD 4980 and ran the appropriate Catalyst drivers with dual monitors for several years. I just went to the HD 7750 for triple monitors and I am having difficulties getting the driver support ironed out. I am able to get it all running, but if I install the ATI Catalyst support it will not allow the third monitor to come up.

Just a heads up. Lastly, you can get older Catalyst versions at support.amd.com


NVMe SSD not visible in disk utilities when install Ubuntu 18.10 on macbook 2018

Apple uses a proprietary SSD controller that Linux drivers do not exist for yet. Until drivers are made, you will need to install to an external device to install ubuntu.

https://forum.level1techs.com/t/linux-doesnt-support-t2-as-a-ssd-controller-apples-t2-secure-boot-chip-is-blocking-usage-of-linux-in-t2-chip-macs/134832

Drivers appear to require a signature from Microsoft or Apple so they are most likely long ways out. Multiple other devices have been "impossible" to install Linux onto before, but it will probably be faster to break the T2 and SSD controller than to wait for official support.

https://support.apple.com/en-us/HT208330

TL;DR Secure boot disables allows you to boot off of an external device but won't let you install to your hard disk.


In Xubuntu 12.04 - Not finding much of a RAM savings between terminal mode and GUI mode?

The Ubuntu Server Edition is good. I misconstrued the output of top command.
TOP command Used section reports the total allocated inclusive of caches and buffers which might not be actively used in a running process.

I used free -m command to see the memory minus cached minus buffered.
It is around 30-40MB only.


Why ubuntu ignores extension based default app when file is empty?

The type of file is determined by contents, and empty file is a type.
The extension is really just part of the name, and if contradicts with the type (determined by contents), the contents are the default selection choice for POSIX/unix since 1973.
Use
file filename.py
and you'll likely see that it reports as an empty file...
1973 was a long time ago... so it's convention now for any unix like operating system, pre-dating microsoft/msdos etc


Just to be clear mpd here recommends using the version in the repos which for 16.04 is 9.12. https://www.musicpd.org/doc/user/install.html but if you truly want to try this out you may need to add ppa if you do not want to continually build from source from each version. What are PPAs and how do I use them? explains what a ppa is better than I can. However with the new version keep in mind the developers can make mistakes and put new bugs in and if it makes it worse for you can remove the ppa with http://packages.ubuntu.com/search?keywords=ppa-purge which will remove anything else brought in by any ppa. But be warned these packages in ppas have not undergone security checks.


How do i enable compiz widget layer onto ubuntu 13.04?

All you have to do is installing the extra package.  Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install compiz-plugins-extra


VMware Workstation 12 does not run after ubuntu upgrade to 17.10

You need to upgrade to VMWare Workstation 14. Workstation 12 will not run with the kernel (4.13) in Ubuntu 17.10 unless you patch it. Patch available here: https://github.com/mkubecek/vmware-host-modules/commit/b50848c985f1

Run the following commands in Terminal to Patch (there are two ways to do this):

Patch Procedure 1:

Gain root user access:

sudo su
tar xvf vmmon.tar
tar xvf vmnet.tar
wget -O ./vmmon-only/linux/hostif.c https://raw.githubusercontent.com/mkubecek/vmware-host-modules/b50848c985f1a6c0a341187346d77f0119d0a835/vmmon-only/linux/hostif.c
vim vmnet-only/bridge.c
cd vmmon-only/
make
cd ../vmnet-only/
make
cd ..
mkdir /lib/modules/4.13.0-16-generic/misc
cp *.o /lib/modules/4.13.0-16-generic/misc
insmod /lib/modules/4.13.0-16-generic/misc/vmmon.o
insmod /lib/modules/4.13.0-16-generic/misc/vmnet.o
rm /usr/lib/vmware/lib/libz.so.1/libz.so.1
ln -s /lib/x86_64-linux-gnu/libz.so.1 /usr/lib/vmware/lib/libz.so.1/libz.so.1
vmware-networks --start
exit

Run  VMWare as a normal user:

/usr/lib/vmware/bin/vmware

OR

Patch Procedure 2:

Get into your home directory, or somewhere you can store files temporarily:

cd ~ [YOUR DIRECTORY]

Copy the vmmon source tar ball to your temporary location:

cp /usr/lib/vmware/modules/source/vmmon.tar

Extract the tar ball:

tar xf vmmon.tar

Download the modified file and overwrite the one from the tar ball:

wget -O ./vmmon-only/linux/hostif.c https://raw.githubusercontent.com/mkubecek/vmware-host-modules/b50848c985f1a6c0a341187346d77f0119d0a835/vmmon-only/linux/hostif.c

Wrap up the newly modified files into a tar ball replacing the original one:

sudo tar cf /usr/lib/vmware/modules/source/vmmon.tar vmmon-only

Rebuild the VMware kernel modules:

sudo vmware-modconfig --console --install-all

Reboot your system:

sudo reboot

Sources to patch:

https://communities.vmware.com/thread/571370?start=0&tstart=0

AND

Ubuntu 17.10 Upgrade Broke VMWare Workstation 12.5

EVEN BETTER, I recommend upgrading to Workstation 14, which will remove Workstation 12.

Run the following commands in Terminal to install VMware Workstation Player 14:

mkdir ~/vmware
cd ~/vmware
wget -c https://download3.vmware.com/software/player/file/VMware-Player-14.1.1-7528167.x86_64.bundle

OR

Download it here:

https://my.vmware.com/en/web/vmware/free#desktop_end_user_computing/vmware_workstation_player/14_0

Give the package permissions:

sudo chmod u+x VMware-Player-14.1.1-7528167.x86_64.bundle

Finally, install:

sudo ./VMware-Player-14.1.1-7528167.x86_64.bundle

As soon as the installer starts, please follow on screen instructions to complete the installation.

Select I accept the terms in the license agreement and then Click on Next.
Update on startup; select yes (if you want).

Feedback; select yes or no.

License Key is optional (can be left blank).

Click Install on next screen.

Close when finished.

UNINSTALLATION

sudo vmware-installer -u vmware-player

Hope this helps.


Installing Ububtu 12.04 on Dell Inspiron N5110 already having 3 active partitions

There is no performance difference between primary and logical partitions.  The side by side option should automatically use the 4th primary partition for an extended, and create logical partitions inside for the filesystem and swap.  6 GB of swap is a bit overkill though, especially with such a limited space, so I would suggest skipping the swap entirely, or at least limiting it to 2 GB.


Update PATH variable during script execution

You can try this :

#!/bin/bash
PATH=$PATH:[path to add]

[ shell program here          ]
[ e.g. sudo dpkg -i xyz.deb   ]

This will add PATH variables to the system which will reset on closing of the terminal. To permanently change them, add the PATH=... line to .bashrc


There is one gtk2 theme that I use for gimp 2.6, although it should work for gimp 2.8, and that is Darkilouche. (It will work until gimp switches to gtk3 around the time of gimp 3.) It may not be quite as dark as the one you have in mind, but it's good and you may be able to modify it further. It was created by a while ago here and the version you want is 0.2.3, available here as well.

Needless to say, it is easy to install. Just unpack the zip and create a new folder called Darkilouche and place in it the contents of the zip (folders labelled gtk-2.0, .svn and a file named Darkilouche. Then move the Darkilouche folder to .themes in your home folder. Then, to test it with gimp (substituting gimp-2.6 for your version), run:

GTK2_RC_FILES=$HOME/.themes/Darkilouche/gtk-2.0/gtkrc gimp-2.6

This command simply specifies a particular theme (gtkrc) to use with a gtk application, it will NOT affect your general Ubuntu theme or interfere with any other programs.

Then you can create a launcher to run gimp like this in the future.


Sennheiser MM 400: How to use headset controls

The behaviour you observe indicates that these controls are not implemented in your Spotify client.

Media key control via a Bluetooth headset is transmitted via DBus MPRIS protocol to the player to be further processed there.

You can test this by running Rhythmbox which should have a full implementation of the MPRIS standard (but unforutnately a Spotify plugin seems not easy to get). On my system here I am able to control the Rhythmbox playback including fast forward and rewind buttons from a Bluetooth headset. But I am unable to do so with a player that does not support MPRIS (e.g. Audacious) where I also get the warning sign you posted in your question.

You may need a fully MPRIS complatible media player that comes with a Spotify plugin. You may try if Clementine  meets your needs.

Sadly however in 13.04 the Clementine Spotify plugin seems to be no longer supported so you will need an earlier Ubuntu version.


Alternate CD image downloaded last year gives different hash

Yes, if the md5sum does not match, then the file is corrupt.  You can restart the torrent and it should correct any errors by downloading the damaged parts again.


Access the gyroscope and accellerator on Yoga 2 Pro

Add the autorotate PPA from Karol Krizka

echo "deb http://ppa.launchpad.net/kkrizka/thinkpad-x61t/ubuntu lucid main" | sudo tee /etc/apt/sources.list.d/kkrizka-auto-rotate.list

#Update apt-get’s package list:
sudo apt-get update

#Install the script and necessary packages:
sudo apt-get install wacom-tools python-xrandr autorotate

# You can have the auto-rotate.py damon to start with GDM, so it will be available to all users, even during login. This is done by adding the following line to the end of the /etc/gdm/Init/Default file before the exit 0 command:
auto-rotate.py&

# Restart GDM to start the script:
sudo /etc/init.d/lightdm restart

Swivel down your screen into the tablet mode, and tilt it at around 45 degrees to test if everything is working.

If you also want to rotate it manually, Follow the general instructions for setting up buttons for manual rotation.

Note

This doesn't work on m Ubuntu 14.04


Most modern sound adapters have output monitoring channels. Unity/Gnome default sound settings tool (part of unity-/gnome-control-center) does not list them on input tab.

Install PulseAudio volume control tool (part of upstream project)

sudo apt-get install pavucontrol

Run it and go to Input Devices tab.
Look down to the right corner, Show: drop list, set it to All Input Devices (Default: All Except Monitors)
As it shows up, you can set it as default.

If you can't find it, then either it is not supported by driver or hardware itself. You may need to create a virtual loopback.


Linux-Ubuntu Problem : Cannot find mysql database after connection is made to mysql

I think that there is an error in following line.

org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL grammar [SELECT * FROM PLACE order by placeName]; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'inindia.PLACE' doesn't exist

You created table in inindia as named place, But you call it as named PLACE.

"place" is not "PLACE".

I suggest you modify "PLACE" to "place".


How can I have the date and time displayed in English without changing my locale settings?

To change the value of the LC_TIME locale category only, you can run this command:

sudo update-locale LC_TIME=en_IE.UTF-8

Will hopefully take effect at next login.


Connection refused even after installing openssh-server

Just do

sudo ufw enable

and

sudo apt-get install gufw

Then open your Dash and search for "Firewall". Open it and the rest should be self explaining.


Brightness control on Awesome windowing manager

In the globalkeys = awful.util.table.join( section of ~/.config/awesome/rc.lua:

    -- Brightness

    awful.key({ }, "XF86MonBrightnessDown", function ()
        awful.util.spawn("xbacklight -dec 15") end),
    awful.key({ }, "XF86MonBrightnessUp", function ()
        awful.util.spawn("xbacklight -inc 15") end),


Upon restart my ubuntu commands history number changed

Command history is not unlimited. Look for HISTFILESIZE and HISTSIZE in man bash.


This answer pertains to Ubuntu 11.04 with an ATI radeon graphics card, and the Diamond DisplayLink BVU-195 USB display adapter.

I finally got it working for three monitors. I have an ATI radeon card with 1 DVI and 2 DisplayPort outputs (but you can only use two at once) and 1 Diamond DisplayLink BVU 195 USB adaptor.

You have to install the displaylink driver. Then you have to write your own xorg.conf file.

sudo apt-get install xserver-xorg-video-displaylink

Here are three crucial points.

I want to be able to move windows between displays. That means that I cannot use xrandr. Instead, i have to enable something called Xinerama. If you use the default "xrandr" option, then only the mouse cursor can move between displays, and programs cannot. Not very usuable! So Xinerama is a necessity.
When configuring the ATI radeon driver, the display is stuck as cloned across the two monitors that it uses, unless you specify the "ZaphodHeads" option. Valid options on my card are "DVI-0" and "DisplayPort-0" or "DisplayPort-1".
You have to configure all monitors as 16 bit. If you stick with the default 24 bit, the X server crashes.
I only get blank screens if the USB monitor is plugged in when I boot. I have to boot with it unplugged, plug it in, then log in only when the USB screen turns green.

Here is my xorg.conf, which I placed in /etc/X11/xorg.conf. The USB displaylink monitor is Screen0, and the DVI monitor connected to the ATI card is Screen1, and the DisplayPort monitor also connected to the ATI card via an adaptor is Screen2.

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

Section "Files"
    ModulePath   "/usr/lib/xorg/modules"
    FontPath     "/usr/share/fonts/X11/misc"
    FontPath     "/usr/share/fonts/X11/cyrillic"
    FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
    FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
    FontPath     "/usr/share/fonts/X11/Type1"
    FontPath     "/usr/share/fonts/X11/100dpi"
    FontPath     "/usr/share/fonts/X11/75dpi"
    FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
    FontPath     "built-ins"
EndSection

Section "Module"
    Load  "dri"
    Load  "record"
    Load  "extmod"
    Load  "dri2"
    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   "Monitor0"
    VendorName   "Monitor Vendor"
    ModelName    "Monitor Model"
EndSection

Section "Monitor"
    Identifier   "Monitor1"
    VendorName   "Monitor Vendor"
    ModelName    "Monitor Model"
EndSection

Section "Monitor"
    Identifier   "Monitor2"
    VendorName   "Monitor Vendor"
    ModelName    "Monitor Model"
EndSection

Section "Device"
        Identifier      "DisplayLinkDevice"
        driver          "displaylink"
        Option  "fbdev" "/dev/fb1"
EndSection

Section "Device"
    Identifier  "Card0"
    Driver      "radeon"
    BusID       "PCI:1:0:0"
    Screen 0
    Option "ZaphodHeads" "DVI-0"
EndSection

Section "Device"
    Identifier  "Card1"
    Driver      "radeon"
    BusID       "PCI:1:0:0"
    Screen 1
    Option "ZaphodHeads" "DisplayPort-1"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "DisplayLinkDevice"
    Monitor    "Monitor2"
    DefaultDepth 16
EndSection

Section "Screen"
    Identifier "Screen1"
    Device     "Card0"
    Monitor    "Monitor0"
    DefaultDepth 16
EndSection

Section "Screen"
    Identifier "Screen2"
    Device     "Card1"
    Monitor    "Monitor1"
    DefaultDepth 16
EndSection


Formatting 128GB SD card to ext4 with gparted

Had problems with gparted running from the OS (ie not started from a "live" boot disk). Assuming you want to assign the whole drive to one ext4 partition.

Note: assuming to make a whole disk ext4 will destroy any existing data on that drive!

Try the manual method, do

   lsblk

to visually determine where you USB drive is, ie the letter X in /dev/sdX, and the partition(s), if any, N in /dev/sdXN. Eg. /dev/sdc, /dev/sdc1, ... Replace X where relevant.

If necessary, umount whatever is mounted on that drive

   sudo umount /dev/sdXN

Then, optional, make the formatting tools "believe" the drive is blank by writing zeroes to the beginning of the flash memory (here 100 MB), to start from clean grounds. Since writing directly to the device bypasses higher level mechanisms, a sync ensures data is actually written (not only in buffers))

   sudo dd if=/dev/zero of=/dev/sdX bs=1M count=100
   sudo sync

Unplug and, after a few seconds, re-plug the drive. lsblk will show a blank disk.

Either Make a ext4 disk

If you want to assign the whole USB drive to one ext4 partition, you could simply overwrite the whole, including partition table

Command:

   sudo mkfs.ext4 -L "J Connor" /dev/sdX

and that's it. (unplug / replug)

Or Create a partition set to ext4

Or you can create one partition first, maybe smaller than 128 GB (from a "blank" disk)

Using fdisk

   sudo fdisk /dev/sdX

Commands (h for help): ensure no partition

   p

then create a partition (n), primary (p), part #1 (1), and whole size (default for first and last sectors (or set smaller size, ie lower last sector number))

   n
      p
      1
      (return for first sector default)
      (return for last sector default or set smaller size)

write the new partition table

   w

that leaves fdisk.
Note: fdisk creates a partition 83 (Linux) by default.

And create now the ext4 file system on that new partition

   sudo mkfs.ext4 -L "J Connor" /dev/sdX1

Try to unplug and replug the device - it should be mounted automatically.

Or mount it manually

   sudo mkdir /mnt/mydrive
   sudo mount /dev/sdX /mnt/mydrive

   sudo ls -l /mnt/mydrive

   drwxr-xr-x 3 root root  4096 Jan 31  9:28 ./
   drwxr-xr-x 6 root root  4096 May  9  2014 ../
   drwx------ 2 root root 16384 Jan 31  9:28 lost+found/

See also these explanations about fdisk.


Intallsing Ubuntu 12.04 LTS in Acer Aspire 4736z

Yes, you can install it via bootable CD and choosing the first Option to make it along side of windows 7 if you still want to use you win7 OS.
Please Note: that you need be very carefull in selecting or in-making the partition drive for ubuntu. And be sure backup all your data or use a Norton Ghost for assurance.


Answers -

For Installing Ubuntu along with Windows7 as Dual Boot Click here.
Your original windows OS will be not deactivated after the installation, if you do it in a right way as explained in the link before.
For knowing the benefits click here and here.

Hope my answer helped you.

Advice always do a google search before questioning here. Even its already being asked before many time on ask ubuntu.


Ubuntu 18.04, cannot connect to wifi with Qualcomm Atheros AR93xx drivers

Okay, so I believe I've found the source of the problem. That being said, I actually did end up purchasing a different wifi card that better suited my needs, one that uses the iwlwifi driver instead.

However, I discovered my issue with the other card, as it was driving me insane. For whatever reason, the particular card I had was not being configured with the correct wifi frequency/channel. So the device drivers existed, the wifi card itself could physically see the networks, but upon trying to connect those networks would never be found because the interface was configured to the wrong frequency. This could be observed with iwconfig wlp4s0 which gave me the following output:

wlp4s0    IEEE 802.11    ESSID:[network name]
          Mode:Managed   Frequency:5.816GHz

That frequency is on a channel that my wireless network adapter doesn't have (it only supports 2.4GHz) and that my router network doesn't occupy. Checked the frequency channel of my router, which was Channel 7 (~2.4GHz) and I ran the following commands:

sudo ip link set wlp4s0 down
sudo iwconfig wlp4s0 channel 7
sudo ip link set wlp4s0 up
nmcli connection up [network name]

And it worked. Really bizarre. But hey, it works now, and just in time for me to throw it in the garbage and put in a different card that doesn't give me a headache to use!


how do you grep, awk, head and sed an ip address

A proper way:

(better use ip(8) in 2018)

Using grep -P (perl's regex)

for dev in wlan0 eth0; do
    ip address show dev $dev |
        grep -oP 'inet\s+\K\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}'
done

Using awk

for dev in wlan0 eth0; do
    ip address show dev $dev |
        awk -F'[ /]' '/inet /{print $6}'
done

If you insist to use ifconfig :

for dev in wlan0 eth0; do
    ifconfig $dev | awk '/inet /{print $2}'
done

Last: if you need the interface name in the output :

for dev in wlan0 eth0; do
    ifconfig $dev | awk -vdev=$dev '/inet /{print dev, $2}'
done


Two things to check. Disk space (check if you have space left):

$ df

and permissions of /tmp (check if the first field is drwxrwxrwt):

 $ ls -ld /tmp

If the permissions on /tmp are not right, you can do:

$ sudo chmod 1777 /tmp


Manually add library to installed packages

APT dependencies are not based on files per si, they are based on package names and version.

What you can do is use the "equivs" utility and create a dummy package with the required name/version, for details check:
http://eric.lubow.org/2010/system-administration/creating-dummy-packages-on-debian/


How to solve low memory problem in ubuntu 12.04?

I think the problem is the Wubi install, it's probably running low on space. I think it's like a big file on a windows drive, that's used as your Ubuntu partition.

Wubi is no longer a recommended method, and it doesn't work with Windows 8 at all.

To fix it, you could resize the wubi "install", but it's probably a better solution to migrate wubi to a regular install by following this Ubuntu guide here: https://help.ubuntu.com/community/MigrateWubi

And even more Wubi info here: https://wiki.ubuntu.com/WubiGuide Especially check out:

How do I migrate to a real partition, and/or get rid of Windows entirely?
How do I resize the virtual disks?


I have major problem and need to save my laptop

Start your computer up and hold the Shift key to see the Grub menu. Select the line that says Recovery Mode and press Enter.
When Recovery Mode boots, use the arrow keys to select the option that says fsck and press Enter.
When fsck finishes, which might take a while, return to the main Recovery Mode menu and select the Root shell prompt/bash option.
At the prompt, type rm -v /etc/X11/xorg.conf. Then press Ctrl + Alt + Delete to reboot.
Your PC should now boot normally.

To fix your brightness issue, you should add the line of code to a new file in /usr/share/X11/xorg.conf.d named 60-custom.conf instead.


What does "pci=noaer" or "pci=nomsi" mean?

Linux kernel is compiled with certain parameters - in simple words special "settings" related to hardware and kernel's behavior. And those settings can be considered default. When you add such setting in /etc/default/grub they modify the default settings of the kernel.

According to the documentation:

  nomsi           [MSI] If the PCI_MSI kernel config parameter is
                                  enabled, this kernel boot option can be used to
                                  disable the use of MSI interrupts system-wide.

and

  noaer           [PCIE] If the PCIEAER kernel config parameter is
                                  enabled, this kernel boot option can be used to
                                  disable the use of PCIE advanced error reporting.

In short nomsi disables MSI ( special way of signalling interrupts from hardware to kernel, if I'm not mistaken  ) and noaer disables advanced error reporting. I doubt that advanced error reporting could cause booting problem.  My guess is that there is some hardware that doesn't implement MSI well or kernel cannot communicate with that hardware using MSI, however that's just a guess.


Does changing the resolution in Display Setting work correctly with Nvidia Server Settings

Yes. It works now. You can even find the option in an easier way:

You will also notice that the Display Settings does not show all resolutions that Nvidia Settings provides. This is because Display Settings takes into account the Display Hardware you are using (LCD, LED, TV, Monitor) and Nvidia Settings just shows all available resolutions for your video card.


My computer won't boot off a Windows install DVD - it goes directly to Ubuntu

Check whether the DVD is working by playing a movie or music. If ok, then proceed as follows.

Go to bios set up. Press 'Del' repeatedly to start bios set up at boot time.
change boot sequence to DVD drive and then hardisk
If you install win xx, you are likely to lose all the ubuntu data as windows will remove the ubuntu boot info.
Before doing anything, do bakup.
If still there is boot problem, check your win boot DVD.


snap-store appears to be installed on your system.
You can run it like so:
snap run snap-store

Or like so:
snap-store

Without sudo, as using sudo to run GUI applications is not a good idea and will cause problems.
Please have a look at: Why should users never use normal sudo to start graphical applications?


Whats my problem with strongswan, ubuntu 17.10

First of all strongswan is packaged in main repository.

You can install version 5.5.1 with:

sudo apt-get install strongswan

If you do not use special options in ./configure you can use this binary package.

But if you really need to compile it, you can do it as follows:

wget https://download.strongswan.org/strongswan-5.5.2.tar.gz
tar -xvzf strongswan-5.5.2.tar.gz
cd strongswan-5.5.2/
sudo apt-get install build-essential
sudo apt-get build-dep strongswan
./configure
make

but I get the same error with 5.5.2 and even 5.5.1. Seems to be a bug 2425 in strongswan.


HP envy x360 13 ay-0008NA with ryzen 4500u won't wake up after suspend

Not sure about the 20 minutes part, but I wonder if this is related to hybrid sleep mode.
e.g. Laptop goes to sleep/suspend, then a while later it hibernates and flushes memory/state to disk.
It's possible that suspend/sleep is ok, but hibernate is causing issues.
I'm not sure if it's systemd that's responsible for this, but /etc/systemd/sleep.conf seems to indicate that hybrid sleep and hibernation are enabled by default.
There may also be some hibernate-related settings in the gnome power management area that could be worth checking.
As a quick test, temporarily disabling hibernate completely may be worth trying to isolate the issue.
There's a bunch of GPU driver improvements in the 5.8 kernel as well (currently in RC stage): https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.8-rc2/
Wish I could tell you something more useful, but mine hasn't been delivered yet. When it is, I'll probably run into the same issue(s) and will have good motivation to try to deal with it.


ubuntu 18.04 LTS : Failed to start The Apache HTTP Server

Apologies for not asking specifics before hand, but comment on this and I can try to update this answer to be more specific.

The error is pretty self-explanatory. Apache has a structure for loading modules attached to the service. On Ubuntu there are 3 important files for each module. Let's look at the mpm_prefork module that you should probably have out of the box. In /etc/apache2/mods-enabled/ you'll find a mpm_prefork.load and an mpm_prefork.conf file.

Read those with vi or nano like so nano /etc/apache2/mods-enabled/mpm_prefork.load In here, you'll see that it's looking for a companion binary file called /usr/lib/apache2/modules/mod_mpm_prefork.so. Notice how the path seems similar to the error you're getting?

So in your case you appear to have a php7.0.load file which is looking for /usr/lib/apache2/modules/libphp7.0.so. You should look to see that file is indeed there or not by listing that directory with ls /usr/lib/apache2/modules/ Is it there?

If not, then I recommend trying to reinstall php, which wouldn't be the worst idea since php7.0 is going to be deprecated soon anyways (Dec 3, 2018 to be exact).

So run the following:

dpkg --get-selections | grep php* // list all php packages installed
sudo apt remove php7.0 // but replace php7.0 with whatever you installed
sudo apt update
sudo apt install php libapache2-mod-php


Why using alt-tab causes Unity to restart?

As fossfreedom says, if you login as a guest user, you'll have a completely fresh user account. If you can get the results there, then that means there is a bug somewhere in the software, most likely Compiz, and then you should report it. Otherwise, it's possible that there is a misconfiguration that causes it.

In order to file a good bug report, press Alt+F2 and enter ubuntu-bug unity. You'll be asked if the bug you are reporting is a graphical one. Answer yes to that question so that information about your graphics card, driver, etc can also be appended.

Please make sure you've installed all upgrades and that you can still reproduce the problem before filing bugs.

From your screenshot, I'd say it's more than likely that the issue has to do with Compiz. But it is not impossible that it is a misconfiguration, so check with a guest account first.


I don't know what Doom 64 Ex is doing, but a general problem withe Xbox360 gamepads and Windows is that there are two APIs for input in Window, Xinput and DirectInput. Wine only emulates the later, older API, and doesn't handle Xinput at all. Some modern games however require Xinput.

There is a workaround via a Xbox360 controller emulation DLL (the same you would use to make an old pre-Xinput gamepad work with modern games in Windows). This thread describes it:

https://groups.google.com/forum/#!topic/xboxdrv/wgY0sp-drD8


Try

sudo chown -R wegsehen:wegsehen /home/wegsehen

No /* on end of line maybe?


Your Desktop directory is stored in your home directory, and your home directory is normally a subdirectory of /home with the same name as your login. So if your user name was "bob" your desktop directory will probably be /home/bob/Desktop (note that when the account is created, /home/user_name is just the default -- it could be set to something else). You can use ~ as a shortcut for typing the path to your home directory.

Therefore if you want to search you Desktop directory, you should refer to it as  ~/Desktop and your command would become

find ~/Desktop/L3T1/DatabaseSessional/TestMongotweet/ -name '*.json' \
-exec  mongoimport --db twittersmall --collection twitterdata --drop --file {} \;

/media, the place the system typically mounts CDROMs, USB sticks etc., is in the root directory and therefore your first command worked fine.


Couldn't execute command: gnome-screensaver-command --lock Verify that this is a valid command

You can try reinstalling the gnome screensaver by executing:sudo apt-get install  gnome-screensaver --reinstalland see if the command and lock is available again.


Unity Trash icon error /home/trash no such file or directory after upgrd to 14.10

I think this is an already reported bug. A workaround is to create a directory named trash: that points to .local/share/Trash in your /home. So, while you are in /home, run:

  ln -s /home/<user-name>/.local/share/Trash/ ~/trash:

by replacing <user-name>with your actual username.


How to install "Need For Speed - Most Wanted"

Let's assume that you have legally purchased copy of the game.

Then install PlayOnLinux with

sudo apt-get update
sudo apt-get install playonlinux

Open PlayOnLinux  with its launcher.

Afterwards click Install, type most wanted, select Need For Speed Most Wanted, click Install:

then follow instructions on screen.


How to loop a simple batch file utilizing ECHO?

In bash scripting you do not have gotos; you should use a while loop. For the while loop to run endlessly, you can use the true command which returns status of 0 (meaning successful run of a command).

So, you can create your "endless" loop like this:

while true ; do
  echo 1
  echo 2
  echo 3
  echo 4
  echo 5
done


Remote Desktop from a ubuntu 13.04 to an Ubuntu 13.04 machine so the user on the second machine can see my movments

Ubuntu comes standard with 'Remote Desktop'. This is an application to do exactly this.
This uses vnc so you can use any vnc client you want, even on your smarth phone. Just search for vnc in the software center.

In the terminal you can issue:

vncviewer -fullscreen 192.168.2.23:0


Can someone make this modx .htaccess file work for me? I am trying to make friendly URLs work

Dr. Google says to add the following to .htaccess in the web root (probably /var/www/html).  This checks for a url starting with (using ^ from basic regular expressions) nsuchy.tk and rewriting the url to www.nsuchy.tk:

RewriteCond %{HTTP_HOST} ^nsuchy\.tk
RewriteRule ^(.*)$ http://www.nsuchy.tk/$1 [R=permanent,L]


Running EXE files with WINE through terminal


While holding Alt, drag the window with the left mouse button. It doesn't matter where within the window you click -- you will always be able to drag it. Actually, this is so much more convenient that aiming for the window decoration that I always use it.

Likewise, with Alt and dragging with the second mouse button you can resize the window through clicking anywhere within it.

Furthermore, you can press AltSpace and use the cursor keys to first select the "Move" option and then to move the window.


I work in Audiogalaxy. While we're working on releasing a native linux version, you can use Audiogalaxy with Wine. Several users have successfully done this, and it seems to works great. The only catch is that is the default music folder on Windows isn't mapped to your music on the Ubuntu, then you might need to go in an edit the music locations using a sqlite3 editor (a little bit of DIY is always exciting, no?)

Hit up the Help forum if you still need help.


Get Toolbars to Ubuntu (like in Windows) and make icons smaller

Look into Ubuntu system settings > Desktop,from there you can resize icons as you want.I made it a long time ago but I think to remember well


How to load a website that requires jinitiator?

Add the webupd8 team java ppa to your system using

sudo add-apt-repository ppa:webupd8team/java

Type sudo apt-get update and install both oracle-java8-installer and oracle-java8-set-default.

This will install the complete Oracle JDK on your system, including the java plugin for Firefox and all NPAPI compatible browsers.  This means that all PPAPI only compatible browsers, like Chrome, Chromium, will not work because there is no PPAPI java plugin.


You said so yourself:

  I don't need to be on the cutting edge - I prefer to have a system that just works, long-term.

In my humble opinion, Ubuntu 10.10 is an amazing release with a lot of cool stuff planned for 11.04 next, however, it also makes a lot more sense to go from LTS to LTS. What works for you in 10.04 will always work for you until the end of life. Stay will 10.04 until your curiosity overwhelms or you have a particular feature you know you need from a newer release.


Need patch versions of pkgs and can't find them

To receive 14.04 ESM updates, (for personal use),  one has to register which will then provide the repo source address, ect.
Go to https://ubuntu.com/esm, scroll down, click on Get ESM Now & follow the prompts to register.


Ubuntu 16.04 error run 'apt-get -f install' to correct these

Run sudo apt-get -f install with no other parameters. That should fix the problem.

The issue occurred because you tried to upgrade packages which depend on others, but those aren't going to be installed. Therefore, the dependencies haven't met and the installation fails.

If you want to perform package updates (no operating system upgrades), it's best to do it via the Update Manager (based on my experience). It's the safest and easiest way.


Copy the original .desktop file to your home folder:

cp /usr/share/applications/umplayer.desktop ~/.local/share/applications/
Open that desktop file for editing :

gedit ~/.local/share/applications/umplayer.desktop
Add the following at the bottom of the file.

X-Ayatana-Desktop-Shortcuts=Play;Pause;Stop;Fullscreen;

[Play Shortcut Group]
Name=Play
Exec=umplayer -send-action play
TargetEnvironment=Unity

[Pause Shortcut Group]
Name=Pause
Exec=umplayer -send-action pause
TargetEnvironment=Unity

[Stop Shortcut Group]
Name=Stop
Exec=umplayer -send-action stop
TargetEnvironment=Unity

[Fullscreen Shortcut Group]
Name=Fullscreen
Exec=umplayer -send-action fullscreen
TargetEnvironment=Unity

Save it and navigate to ~/.local/share/applications/ and make the umplayer.desktop executable and then drag it to the launcher .


Fontconfig warning: "msfonts-rules.conf", line 23:

Edit the /etc/fonts/msfonts-rules.conf file

Find the section saying:

<match target="font">
        <test name="family">
            <string>Andale mono</string>
            <string>Arial</string>
            ...
</match>

Inside the  tag there is a bunch of Andale Mono etc tags. These need to be wrapped inside their own  tag. So for example

<match target="font">
    <test name="family">
        <string>Andale Mono</string>
    </test>
    <test name="family">
        <string>Arial</string>
    </test>
    ...
</match>

See this thread for more detailed how to:
Ubuntu forums post


Unity "Dash Home" icon completely missing

Undo your last step.

It is most likely that the 'dash home' icon is missing in the theme you have chosen.


Asks password when trying to install Boot-Repair

If you type your pw (no * symbols appear - this is default!) and hit enter, it should either accept it or give you a mesage like "That did not work, please try again" and repeat the procedure three times. After that you should be back at your cli prompt.
If sudo behaves like I just described, you typed the wrong password. This can have mainly one of the following reasons:

You just don't remember your correct pw or have a simple typo in it
Your CAPS LOCK key is on
Or you Num L0ck key
Or something changed your keyboard layout
Maybe you set a password for the root user?

So to start, type your pw into the normal terminal window to see if all characters are entered correctly (eliminates reasons 2,3,4).
Then log out and back of your account with that password to be 100% sure it is the corrct pw for your account.
At last we would have to check that root's pw is disabled... But this only if the simple things don't work.
Let me know if one of these options helped you. Greetings and good luck!


Not able to open usb drives in Thunar, Ubuntu 12.04 and 12.10 using fluxbox

was facing this problem as well. I added to ~/.fluxbox/startup the following line (near the beginning)-

/usr/libexec/polkit-gnome-authentication-agent-1 &


Sierra Wireless 313u 3G broadband modem will not work since upgrade to 14.04

After two weeks of frustrating searching, research and reading, I have managed to repair the problem. The issue appears to be the new version of modem-manager installed on upgrading to Trusty.

Since I knew the modem had worked under previous releases of Ubuntu, I figured if I could downgrade just the one package (modem-manager) I might stand a chance of getting a working Sierra Wireless 313u again. Sure enough, this worked. Here are the steps I took:

Install Synaptic, since it allows forced downgrades and locking versions
add the repository for Precise Pangolin back into Synaptic sources, since this LTS release of Ubuntu is still supported the the repositories would be easily accessible (also, the modem had worked under Precise).
Use Synaptic to force installation of Modem-manager 0.5.2.0-0Ubuntu2, which is the Precise version of the package.
Use Synaptic to lock this version in place, and prevent an upgrade to the newer, non-working version of Modem-manager (the new version, in Trusty, is 1.0.0-2Ubuntu1)

As quickly as this was done, the normal functioning and use of the Sierra 313u broadband modem was restored.


Cannot get nodejs 5.x installed on Ubuntu

simply download nodejs latest from https://nodejs.org/en/. untar and ungzip it using

tar xzf file.tar.gz

you can save the folder where you keep your installables (like /opt or /usr/share). finally, link two most important executables "node" and "npm" stored at /bin/ or simply run it from there.

I found this most convenient. If you face any issue let me know.