Problem connecting encrypted Buffalo external 500GB hard disk in Ubuntu 12.04LTS

From what I could gather from the Internet, Buffalo uses proprietary software that runs on Windows to encrypt the hard drive.   It won't work with Ubuntu or any non-windows operating system.

As @mitch says in comments you have to remove the password and encryption using Buffalo's Secure Lock Manager. An unencrypted drive will work in both Windows and Ubuntu.

If you want to encrypt some files that you will only use in Windows, see Secure Lock Manager documentation on how to encrypt a part of the hard drive. This part will not be available to Ubuntu, but at least you will be able to use a part of the hard drive in Ubuntu.

Hope this helps


The OP also asked his question on SO. There he writes about more problems. However as the error message suggests the file /usr/local/lib/bosh/run-server.js should be made executable:

sudo chmod +x /usr/local/lib/bosh/run-server.js


Is there a way to stop Chrome/Firefox record history of a 'particular' website?

This isn't the exact solution you want, but I couldn't find another way to do it more in line with the original question.

Chrome

The solution is to use incognito mode. To get to incognito mode, use the following keyboard shortcut:

Ctrl+Shift+N

Firefox

The solution is to use private browsing. To start private browsing, use the following keyboard shortcut:

Ctrl+Shift+P


How do I deal with mplayer2 forwarding latency?

Just for forwarding latency go to SMPlayer:

Preferences/Interface/Seeking/ Precise seeking and check this option off.


To get everything working in Ubuntu 13.04 , it looks like you need the 3.10 linux kernel for the wireless network, which requires the 13.8 beta catalyst driver from AMD. Then you have to modify /etc/rc.local to fix a permissions issue with /proc/ati.

What I did was:
Install the 3.10.7 kernel from
http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10.7-saucy/
using the 64 bit directions from
http://linuxg.net/how-to-install-kernel-3-10-7-on-ubuntu-linux-mint-debian-and-derivates/

Then install the following package
Sudo apt-get install dkms

Make the packages for the 13.8 drive, similar to section 3 of
https://help.ubuntu.com/community/BinaryDriverHowto/ATI

Modify /etc/rc.local

sudo cp /etc/rc.local /etc/rc.local.original
sudo pico /etc/rc.local

and insert the line "chmod -R 777 /proc/ati" before the "exit 0" line

Hit ctrl-o to save
Hit ctrl-x to exit

I think that was everything


How do I fix a download issue when updating?

Using Update Manager click the "Settings" button.  This will open your Software Sources windows:

Untick the "CD-ROM" option - in my case it is "Ubuntu 10.10"
Go through the list and untick all your PPAs
Then click close
Check that you can now update successfully.

If you still cannot update then change your download mirror to another server:


Check this link
Wireless troubleshooting
or if yu have a wireless driver installed on windows use the following

Using Windows Wireless Drivers

Ubuntu supports a system known as NDISWrapper. This allows you to use a Windows wireless device driver under Ubuntu.

Obtain the Windows Driver for your system and locate the file that ends with .inf.

Install ndisgtk (System → Administration → Synaptic Package Manager).

Open ndisgtk (System → Administration → Windows Wireless Drivers).

Select Install new driver.

Choose the location of your Windows .inf file and click Install.

Click OK.


supposing that you have this structure

dummy directory

log directory
working directory

if you are in the working directory you should run

function >> ../log/file.txt

a quick explanation is:

the single dot . means this level
the double dots .. means go up 1 level


Dell XPS 13, Ubuntu 16.04, problem with Adapter DA200 i915

I confirm that with the new adapter (https://thomashunter.name/blog/linux-compatible-usb-c-to-hdmi-adapter/), i don't need to install anything (patch, ecc...).
After few seconds the HDMI works.

PC: Dell XPS 13
OS: Ubuntu 16.04
Kernel: 4.15.0-34


Ubuntu 12.04.1 Server error on apt-get update?

I experienced this error after changing my ip address to static. When doing so I did not type the ips in write causing the server to not access internet.


How to remove KDE Software Development Kit update notification in Ubuntu 18.04?

The following procedure stopped the notification, considering:

1) you don't have the kde sdk installed;
2) flathub is activated and properly running to other programs.

I've just deleted /var/lib/flatpak/runtime/org.kde.Sdk and /var/lib/flatpak/repo/refs/remote/flathub/runtime/org.kde.Sdk.

For some reason I don't know, maybe residues from another installation, there was some kde sdk files on those folders.


Python.h file not found on Ubuntu 20.04 even after installing python-dev

You can try the following:
sudo updatedb
locate Python.h

Output:
/usr/include/python2.7/Python.h
/usr/include/python3.5m/Python.h

Then set
export CPATH=/usr/include/python3.5m:$CPATH
export LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH


BBC flash videos don't play in Firefox (Youtube videos do, and all is fine in Chrome)

Solved. No idea what the problem was. Just know the symptom -- the presence of two flash plugins. Reinstalled flashplugin from the Ubuntu repo and cleared the Firefox cache and cookies and restarted Firefox. And voilà! videos work. Now about:plugins shows only the 10.2 r152 plugin.


How to change pdf background color in evince?

I am sure that you can invert the color but I am not sure whether you can use a different color of your choice as a background color.

To invert the color.

Goto: View -> Inverted Colors (Ctrl+I)

Hope this helps.


Just from reading your first error message ("mkdir: cannot create directory ‘/media/winusb_iso_1423415599_8150’: Permission denied") it looks like you need more permission to create directories in `/media'.

If you appended sudo to the start of your command, it would run winusb as root and give it permission to create (and delete) just about everything:

sudo winusb --install'/home/obaid/Downloads/Windows 7 Home Premium SP1 (64 Bit)/Windows.iso' /dev/sdb

sudo should be given some thought before being used, it can be quite dangerous. I'm unfamiliar with winusb, not even sure if it's in a default repository or from a random webpage download, so I can't judge whether or not it's a good idea to give it root access...


Synaptic menu bar action icons inconsistent

Either use a different icon theme, or replace the not wanted icons with the ones you like inside /usr/share/icons/{numix-circle?}. Assuming the icons you wish to have are in /home/{username}/the command would be sudo cp ~/{new icon}.png /usr/share/{icon-theme}/{old icon}.png - this has to be done for each icon you'd like to exchange.


Bluetooth can't find headphones on Ubuntu 18.04.4 LTS

The Marshall Major III needs to be put in discoverable mode before Bluetooth can detect it.

After you turn it on, keep pressing the (one) button until you hear a second sound, consisting of two tones. After a few moments, the headphone appears in the list.

I suppose this works for many other Bluetooth devices.


Can't boot from USB after bundled install

(Kudos to Dominic's answer. Upvoted. This answer is a pure *nix method. )

It's a bug! Specific, it was reported that both USB Startup Creator and UNetbootin were effected. This comment led me to mkusb

I used mkusb with a newly downloaded lubuntu iso.

Status: It's working.


Ending the process or killing it should be fine. More info from this Gnome page:

If a program stops working or freezes, you can force it to close ("kill" it) using System Monitor. Go to the Processes tab and click to select the process you want to kill. Then, click End Process.
If the process does not close after a few seconds, right-click it and select Kill from the menu that appears.
Using End Process tries to close the process properly, giving it time to save files and so on, whereas Kill forces it to close straight away. For some programs, this might mean that you lose unsaved files. You should always try End Process first.

So given that f3write already deletes all data on the tested disk, there is no concern about losing unsaved files when killing the process.

By the way, from the command line, you can put the program in the background with Ctrl+Z, then do the equivalent of End Process with kill %1, or do the equivalent of Kill with kill -9 %1. If you already have background jobs running, replace %1 as needed.
Source: When should I not kill -9 a process?


Press CTRL-D.

Example:

$ mail -s "Hello World" someone@example.com
Cc:
Hi Peter
How are you
I am fine
Good Bye
<Ctrl+D>

http://www.binarytides.com/linux-mail-command-examples/


Why can't I install libnotify in Ubuntu 12.10?

See this thread on Github, below Edit header. It seems to have the answer you are searching for.


Possible to get the magic mouse 2 touchpad working with ubuntu 15.04?

I too got myself a Magic Mouse 2 about 6 weeks ago. You can teach Linux to recognise the Magic Mouse 2 and load the hid_magicmouse module (as it would for the original Magic Mouse and Trackpad) by modifying the udev and modprobe configs. The touch protocols have changed from the MM1 so the MM2 is still just a 2-button device at this time. In my spare time, I am working on decoding how the driver should set up the MM2 but it is a slow process. I have documented what I have so far on a Github project at https://github.com/biggreenogre/mm2. I'm working with Ubuntu Trusty but, since this is in the kernel, it should apply to most recent releases and distros.

Regards,

Drew


Fixing colors in Windows-based programs running Wine

I went ahead and renamed the .wine directory to .wine-bkup. The I ran winecfg, which created a new .wine directory. I then copied the programs to the new directory and it's back to 'normal' now.


Connect to LAN. Wait for some time. Usually available drivers appear in a while.

If they dont appear after waiting, do this,

sudo lshw -class network

From the output, copy the 'product' for wireless interface.

Eg. product: BCM43142 802.11b/g/n

Try downloading and installing that Driver manually.


How can you delete only GPS metadata from a jpeg file?

exiftool -gps:all= -xmp:geotag= image.jpg

deletes only GPS tags in Exif metadata and XMP metadata, but might not delete all XMP GPS metadata at least by old exiftool. If you want to be sure that all GPS information will be deleted, and it does not matter if all XMP counterparts of Exif data will be deleted, replace -xmp:geotag= by -xmp-exif:all=. (Note that there might also be other location information in metadata besides GPS information, even in IPTC metadata.)


There is no nohup package and you don't need to install it.

This command is provided by coreutils package as you can see by

dpkg -S /usr/bin/nohup

This package should be installed by default.


Found a nice article

Run the command dconf-editor. Navigate to com - canonical - unity and untick double-click-activate.

Now it will open it immediately.


Ubuntu Phone--is there one that works in the Americas?

There is no Ubuntu Phone for the US yet.  The BQ phone released in Europe will only be able to use 2G in the US, I believe.  So it might technically work, but not in a way you would find usable.

Cristian Parrino from Canonical said an announcement for the US market would happen before August.


DO NOT USE GPARTED FIRST OFF (Its only good for live cd/usb to install the os, IMHO)

Insert USB

Verify the OS recognizes it by opening nautilus

Close nautilus

Click Super Key (windows key on most keyboards)

Search for 'disks'

Select 'disks'

Select correct volume in the left column  (Should say usb flash)

Click 'more settings' in the top right of the window (looks like this)

Select 'format' option

Click 'format' button

The default format settings should be fine (quick and compatible with all systems)

If you think the flash drive has corrupt sectors you may want to do a 'slow'(full) format


The development release is not treated as 'stable'; it won't be treated as stable until release date.

Ubuntu 18.04 LTS users won't be offered to upgrade at that time though, as LTS users are seen as wanting the most stability. Instead it'll only be offered for upgrade to 18.04 LTS releases when Ubuntu 20.04 reaches the 20.04.1 milestone.

https://wiki.ubuntu.com/BionicBeaver/ReleaseSchedule

Current date of Ubuntu 20.04 LTS release - 26 April 2020

Current date of Ubuntu 20.04.1 LTS release - 26 July 2020
(ie. this--or normally a couple of days after--is when existing Ubuntu 18.04 LTS users will be offered the upgrade; with the delay to ensure stability for LTS only users)

Development releases have more updates, more reboots required, and yes, because it's a development release and thus still in testing, it may not be stable. Not all users may experience instability (it can depend on software they use, hardware or a number of factors), but myself using the development release for testing purposes since 17.10 have had only 3-4 issues.

I dual boot, and my other OS choice is Ubuntu 18.04 LTS, so if I have issues with this 20.04 development release, I can fall back to 18.04 on the same disk to correct any issues (or use a 'live' thumb-drive) though I can't remember needing to do that in more than a year (or when 19.04 was development, 19.10 and now 20.04). About a week after 20.04 is released, I'll bump to 20.10 staying on development as it's useful for me as a development team member (a tester).

Other parts to your question

Your development release will automatically turn into the released version as long as you keep upgrading, it'll turn to the full release in the hours before ISO becomes available most probably.

Can you upgrade to the latest non-LTS release easily?  No, the next non-LTS release is actually 20.10 as far as 20.04 is concerned, which won't be started until 20.04's actual release.  Ubuntu tools for upgrade work to 'upgrade', not 'downgrade' so whilst it's technically possible, it'd take a lot more work (and many times longer) than a re-install would.

Please note: Ubuntu 20.04 support questions cannot be asked on this site though as it's currently a development release.  Ubuntu Forums, and IRC have ubuntu+1 areas for development release support requests; so your support options are reduced. Being a development release, many problems encountered belong instead in bug reports so any questions closed will suggest filing bugs so they can be fixed.


Rename files and folders in all sub directorys to remove character

You can use the find command to search for files and directories recursively ex.

find path/to/start/dir/ -depth -name '*::*.*' -exec rename 's/:://' {} +

The -depth is important if you are renaming files and directories (otherwise the command may "orphan" some matched files by renaming their containing directories before it has a chance to rename them). If you only wish to rename files, then you can add -type f and drop the -depth.

I recommend running the command first with rename -n to make sure that it is doing the right thing.


How to keep all linux kernel packages on Kubuntu 14.04?

Pinning won't work for you since it will prevent from upgrading kernels altogether.

Look into /etc/apt/apt.conf.d/01autoremove and /etc/apt/apt.conf.d/01autoremove-kernels. These files contain lists of packages which should be purged automatically. The second file is maintained by the script /etc/kernel/postinst.d/apt-auto-removal

To solve your problem, copy the file /etc/apt/apt.conf.d/01autoremove-kernels into /etc/apt/apt.conf.d/99keep-kernels and edit the patterns to match any version of the 11 packages in there.

So

"^linux-image-3\.13\.0-45-generic$";

would become

"^linux-image-";

This pattern now matches any version of the package and prevents apt from deleting them ever. The post-install script does the same thing which doesn't create a conflict - your version of the file simply matches more packages and prevents any version to be deleted automatically.


Follow following steps

First Backup your old sources.list,
mv /etc/apt/sources.list /etc/apt/sources.list.back
Check your OS version, Release

lsb_release -r
Go to http://repogen.simplylinux.ch/
Select Country
Select Ubuntu Release
Select Your choice. Important is first 12 and choose whatever you require
Generate new sources list
Open your editor like vi or vim

vim /etc/apt/sources.list
Save the file
Retry with sudo apt-get update


Ubuntu Server 18.04 — Use nmcli to (only) discover wifi networks but don’t interfere with netplan and networkd

If you want to use the NetworkManager tools for managing your wifi, you can configure netplan to use the NetworkManager backend instead of the networkd backend for those devices:

network:
  version: 2
  renderer: NetworkManager
  wifis:
    wlp2s0b1:
      dhcp4: true
      access-points:
        "network_ssid_name":
          password: "**********"

Alternatively, if you don't want to switch to using NetworkManager to manage the devices, you can use the lower-level iwlist tool for viewing available networks:

iwlist wlp2s0b1 scanning


Can I use the Chrome Web Store in Chromium?

You can access the Chrome Web Store here : http://chrome.google.com/webstore .
But if you want to install the apps, you have to get Chrome/ium 8 or greater. Their icons will show up on the "New tab" page.


How can I install "Python Editor" on "Ubuntu Bash" in Windows 10?

If you store your Python files in Windows, for example c:\dev\dev\pythonapp..., then you can edit them using whatever code editor you prefer (e.g. VS Code, Visual Studio, JetBrains PyCharm, Sublime, etc.) and you can then run your Python scripts from both Windows, and Bash (via /mnt/c/dev/pythonapp).

HTH.


How do I generate a new OTR key for Pidgin

To make the OTR plug-in of Pidgin forget about one of your own keys, delete the relevant section(s) in ~/.purple/otr.private_key. Make a backup, if you don't want to corrupt it accidentally.


You can try to change the partition type in fdisk.
To do this, run fdisk /dev/sda with t you can change your partition type in fdisk, which will lead you through the process. Your partition number should be 1 (because of /dev/sda1) and you should choose the partition type 83 (Linux).
Then try again to run mkfs.ext4 /dev/sda.

EDIT: To have a better check for your fs type, run df -T which shows you the correct type of each partition.


Installing 32-bit libraries to run Second_Life_3_8_2_303583_i686

That's an old version, better to try a newer one like 4.0.5.  But Linden Labs never got the voice fix applied, so you would still need to track down some old libraries yourself.  A better solution is to use the 64 bit Kokua viewer, which got the voice fix working, and no 32 bit libraries needed at all.


Since grep can read from files whose names are passed to it as arguments, you don't need input redirection at all here:

grep '$Id' -- *.c > id_list

By default, if *.c expands to a list of more than one file, then grep will prefix each match output with the filename in which it was found; if you don't want that, add the -h (or --no-filename) switch.

For a recursive search, you can make use of the --include option

grep -r --include='*.c' '$Id' . > id_list


SSH Configuration between 2 new ubuntu servers

If you plan on using normal user/password login I don't think you need to transfer keys and it should work pretty much out of the box.

It's possible the sshd daemon is not started yet to give you time to configure. Try starting it with:

sudo service ssh restart

Do not use root to login, this is disabled by default.

From the client you should be able to login using:

ssh username@192.168.x.x

I full walk trough you can find here:

https://help.ubuntu.com/community/SSH/OpenSSH/Configuring


Ubuntu consumes battery and warms laptop

I solved it. Problem was with ATI drivers (AMD Catalyst™ 12.10 Proprietary Linux x86 Display Driver I tried). Its not compatible with xorg 1.13 which is in 12.10.
So there is 3 options

1) Disable ATI Graphics (from BIOS or some other way in Linux)

2) Install ATI Legacy Drivers

3) Downgrade xorg from 1.13 to 1.12

I decided to go with option 1, because I want good look on Ubuntu (Gnome 3.6 and its perks).

But I saw that ATI has some beta drivers they are working on so I hope that driver will work.


You're having problems with the usb thumb drive because of the EFI boot loader that the mac ships with.

I suggest installing rEFIt as your boot manager and trying to start from the USB drive again.

With rEFIt, using a "normal" external USB drive to install ubuntu is definitely possible. I installed it that way.


Launch (Synaptic Package Manager), type- apt - in quick search box, in the list you will see- apt, right click and choose (Mark for installation), then click the apply button at the top, If apt is already installed, choose (Mark for complete removal) and click the apply button, after complete removal you need to reinstall apt and reboot system.


Fluxbox: No folder icons in Thunar and PCManFM

The following line has to be in your .gtkrc-2.0 file:

gtk-icon-theme-name = "Humanity"

You can use any icon-theme-name in /usr/share/icons, just replace Humanity but keep " ".

Make sure there is no # before the icon-theme line and put your .gtkrc file in /home/username.


Fire up a terminal using Control+Alt+T, then write:

sudo dpkg --install /Path/to/chrome.deb

Ignore the errors, then:

sudo apt-get install -f

Then again:

sudo dpkg --install /Path/to/chrome.deb

The Google Chrome package is missing dependencies; this installs those dependencies. You should be able to install the package.


Overheating laptop (HP pavilion G6 with AMD 8) ubuntu 13.04

According to previous posts here, a known bug in the Linux kernel is leading to overheating issues: Heat issues on 11.10 beta?

Recent releases (11.04 also) have had a similar problem. A workaround for the Linux 3.0 kernel has been suggested:

http://www.techytalk.info/linux-kernel-2-6-38-2-6-39-power-regression-workaround/

I've heard that these issues were supposed to be fixed completely in Linux 3.1. However, Ubuntu 11.10 uses the 3.0 kernel, so the above workaround should still be relevant. According to Phoronix, the power consumption of Ubuntu 11.10 is up as much as 50%:

http://www.phoronix.com/scan.php?page=news_item&px=OTg5Mg

or try
.......................................................................................

Many new fixes and power management enhancements have gone into 12.04 / 12.10 and especially the new Nvidia drivers to handle your graphics power management that little bit better as well. Also by running Xubuntu you forego the 3D desktop environment for a 2D one which also helps reduce power usage levels.

You could try to open the terminal, then run

$ gksudo gedit /etc/default/grub
and in the line that says:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
change it for:

GRUB_CMDLINE_LINUX_DEFAULT="acpi_osi=Linux quiet splash"
then save and restart. I hope this would solve the problem.

Thereafter, install bumblebee.

or
........................................................................................
if you are good enough

For the error that you mention it is because the URL is wrong, if you try to get there you will get:

You actually want this URL: https://launchpad.net/~webupd8team/+archive/jupiter

So I suggest 2 things:

First try to edit the /etc/apt/sources.list and see if the URL that throws you the error is found there. If it is, change it to the correct one and update your repositories afterwards.

Then open a terminal, update your repositories again like:

sudo apt-get update.

Then proceed to add the Jupiter PPA shown in https://launchpad.net/~webupd8team/+archive/jupiter It should look like this when on the terminal:

sudo add-apt-repository ppa:webupd8team/jupiter

Then do sudo apt-get update to update the repositories again.

For the heat problem I would suggest:

Clean the laptop a bit (Just in case there is dust or something clogging the air flow)
Use the laptop in a position that makes sure it has enough space underneath it.
Anything that actually contributes to better air flow.
After you have solved the Jupiter problem (If you can not find it, just re-add the PPA using add-apt-repository it will take care of checking for anything missing. Maybe it had a problem when adding it the first time.

For the cooling part I also recommend using powertop. Install it by:

sudo apt-get install powertop

Then run the app like sudo powertop and go to the last TAB that has a column (The first column actually) that says BAD or GOOD. Go to all the ones that say BAD and start pressing SPACE to improve/fix them so they help in generating less heat and less power usage.

Last I want to point you to this question: How to control fan speed?

It has solved many users problems related to Fan speed: How to control fan speed?

Although again I would recommend checking into why the temperature is so high since the fan speed is higher, the higher the temperature of the CPU/GPU. So first check in Windows or physically the laptop for clean air circulation. Then proceed with the question.

HYBRID PROBLEMS

Since you have a Hybrid Laptop (It means it has 2 video cards, an Intel one and an Ati one) I did some research and found some links that might help or give you an idea of where to go

http://ubuntuforums.org/showthread.php?t=842775
(A solution that might work with the Fan issues)

http://ubuntuforums.org/showthread.php?t=2095880
(Question about the same issue)

Ubuntu 12.10 AMD/Intel Hybrid Graphics not working
(Fix for graphic problems. See NOTE1 for some additional information at the bottom.)

(Link about checking BIOS for an option to remove one of the 2 video cards)

From all of this, the only one that actually went to where I was thinking was one that mentioned installing some Fan controlling packages (The i8k). I believe this could be a solution since it involves checking the sensors (Which also made me suggest to install lm-sensors). So here is a small guide to try it out:

sudo apt-get install i8kutils

sudo gedit /etc/modules

Add in a new line i8k and save the file.

sudo gedit /etc/modprobe.d/options

Add in a new line options i8k force=1 and save the file.

Reboot the computer. Type sudo reboot if you want.

sudo gedit /etc/i8kmon

Paste in the file the following information and save it:

(Copy the data and paste that in the file)

# Run as daemon, override with --daemon option
set config(daemon)      0

# Automatic fan control, override with --auto option
set config(auto)        1

# Report status on stdout, override with --verbose option
set config(verbose) 1

# Status check timeout (seconds), override with --timeout option
set config(timeout) 1

# Temperature thresholds: {fan_speeds low_ac high_ac low_batt high_batt}
set config(0)   {{-1 0}  -1  55  -1  55}
set config(1)   {{-1 1}  55  70  55  70}
set config(3)   {{-1 2}  70  128  70  128}

# For computer with 2 fans, use a variant of this instead:
# Temperature thresholds: {fan_speeds low_ac high_ac low_batt high_batt}
# set config(0) {{-1 0}  -1  52  -1  65}
# set config(1) {{-1 1}  41  66  55  75}
# set config(2) {{-1 1}  55  80  65  85}
# set config(3) {{-1 2}  70 128  75 128}

# end of file

Now reboot. Although before doing that, install lmsensors and make it detect every sensor you have:

sudo apt-get install lm-sensors

sudo sensors-detect

Wait for it to finish. Every time it asks for something press ENTER. After it finished asking about the summary it will tell you if you want to automatically create a file to cover all that was checked so it loads every time you boot the laptop, type Yes and press ENTER. Now reboot.

If the module does not load by any chance, simply type: sudo modprobe i8k force=1

If you want to monitor the Sensors, you could install the indicator-sensor which I found with the following PPA (I am pretty sure it was in the repositories in 11.10):

sudo add-apt-repository ppa:alexmurray/indicator-sensors
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install indicator-sensors

Now reboot and run the indicator sensor from Dash (Should appear in the panel).

NOTE1 - If you do the link above related to fixing the video, please download the packages from this link https://launchpad.net/~andrikos/+archive/ppa/+sourcepub/2909374/+listing-archive-extra the cover some fixes for Ati/Intel Hybrid


How to remove ubuntu after Wubi installation

If you have downloaded wubi:

go to windows
and then open downloads folder
then open wubi (if you still have it)
then click on uninstall.

If you have deleted wubi, you might need to download it again.


Seems like you had a broken update or software install so either your apt-cache is messed up or your dpkg isn't getting a lock. First try

sudo dpkg --configure -a

Then:

sudo apt-get update
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove
sudo dpkg --remove -force --force-remove-reinstreq broken-packagename

Optionally to remove unity:

sudo apt-get purge ubuntu-default-settings

sudo apt-get purge ubuntu-desktop

sudo apt-get autoremove


Since I had to install ReviewBoard now already a few times on a fresh Ubuntu image, I figured I put here the to install dependencies to make it easier and quicker for others (and for me in half a year from now) to install.
Following needs to be installed before ReviewBoard: build-essential, libffi-dev, libssl-dev, libjpeg-dev:

sudo apt-get install build-essential
sudo apt-get install libffi-dev
sudo apt-get install libssl-dev
sudo apt-get install libjpeg-dev


How I can write the URL and related HTTP status of url in another file?

Try:

while read url
do
    echo "$url"
    curl -sI "$url" | head -1
done < list-of-urls > output-file

This just reads each line of input from the list-of-urls file, outputs it back and then gets the first line of output from curl -I on that URL (which is the HTTP response status). The entire loop's output goes to output-file.

To test multiple URLs at once, use GNU parallel:

GNU parallel makes sure output from the commands is the same output as
you would get had you run the commands sequentially. This makes it
possible to use output from GNU parallel as input for other programs.

For example:

parallel -a list-of-urls 'echo {}; curl -sI {} | head -1' > output-file

No guarantees that the output will be in order, though:

$ cat output-file
http://example.com
HTTP/1.1 200 OK
http://google.com
HTTP/1.1 302 Moved Temporarily
http://stackoverflow.com
HTTP/1.1 200 OK
http://trafficinviter.com
HTTP/1.1 200 OK


Grub Customizer

$ sudo apt install g++ g++-5 libarchive-dev libssl-dev libgtkmm-3.0-dev
$ git clone https://git.launchpad.net/grub-customizer
$ cd grub-customizer/ && mkdir build18
$ cd build18/
$ CC=gcc-5 CXX=g++-5 cmake .. && make && sudo make install

Building the Ubuntu 18.04 package from the install result :

$ dpkg-shlibdeps -t grub-customizer   // get the dependencies for the control file

Directory : grub-customizer/{ DEBIAN/{control, md5}}, usr/
$ dpkg-deb -b grub-customizer grub-customizer_5.0.7-1git050618-ubuntu18_amd64.deb

Link, package https://drive.google.com/file/d/1sdMSjj2Cf2uEM5VHUztYdM7QkyjBAE7M/view?usp=sharing

Download, and install: sudo gdebi Downloads/grub-customizer_5.0.7-1git050618-ubuntu18_amd64.deb


Unity: Switcher is not showing window previews

I accidentally stumbled on this workaround:

When ALT-TAB does not display icons of running applications, use super-d which will show your desktop.

Now try ALT-TAB and you should see the icons.

The problem re-appears soon, so I have to repeat the super-d pretty often. A tiny bit annoying I prefer it to rebooting.


How to set S3/S4 state for devices on suspend

I had a similar problem recently when all of a sudden suspend stopped working due to USB. I wrote this script to fix it:

#!/bin/bash

# Original script was using /bin/sh but shellcheck reporting warnings.

# NAME: custom-xhci_hcd
# PATH: /lib/systemd/system-sleep
# CALL: Called from SystemD automatically
# DESC: Suspend broken for USB3.0 as of Oct 25/2018 various kernels all at once

# DATE: Oct 28 2018.

# NOTE: From comment #61 at: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/522998

TMPLIST=/tmp/xhci-dev-list

# Original script was: case "${1}" in hibernate|suspend)

case $1/$2 in
  pre/*)
    echo "$0: Going to $2..."
    echo -n '' > $TMPLIST
          for i in `ls /sys/bus/pci/drivers/xhci_hcd/ | egrep '[0-9a-z]+\:[0-9a-z]+\:.*$'`; do
              # Unbind xhci_hcd for first device XXXX:XX:XX.X:
               echo -n "$i" | tee /sys/bus/pci/drivers/xhci_hcd/unbind
           echo "$i" >> $TMPLIST
          done
        ;;
  post/*)
    echo "$0: Waking up from $2..."
    for i in `cat $TMPLIST`; do
              # Bind xhci_hcd for first device XXXX:XX:XX.X:
              echo -n "$i" | tee /sys/bus/pci/drivers/xhci_hcd/bind
    done
    rm $TMPLIST
        ;;
esac

Place the script in /lib/systemd/system-sleep/custom-xhci_hcd and mark it executable with:
chmod a+x /lib/systemd/system-sleep/custom-xhci_hcd

On next reboot script is activated.

Suspend message log
Use journalctl -xe and press Page Up numerous times to see the suspend messages:
Jun 14 17:30:51 alien systemd-sleep[16326]: /lib/systemd/system-sleep/custom-xhci_hcd: Going
Jun 14 17:30:51 alien kernel: xhci_hcd 0000:00:14.0: remove, state 4
Jun 14 17:30:51 alien kernel: usb usb2: USB disconnect, device number 1
Jun 14 17:30:51 alien kernel: usb 2-1: USB disconnect, device number 2
Jun 14 17:30:51 alien kernel: usb 2-1.4: USB disconnect, device number 3
Jun 14 17:30:51 alien kernel: xhci_hcd 0000:00:14.0: USB bus 2 deregistered
Jun 14 17:30:51 alien kernel: xhci_hcd 0000:00:14.0: remove, state 1
Jun 14 17:30:51 alien kernel: usb usb1: USB disconnect, device number 1
Jun 14 17:30:51 alien kernel: usb 1-1: USB disconnect, device number 2
Jun 14 17:30:51 alien kernel: usb 1-1.1: USB disconnect, device number 4
Jun 14 17:30:51 alien kernel: usblp1: removed
Jun 14 17:30:51 alien kernel: usb 1-1.2: USB disconnect, device number 6

Then press Page Down numerous times to see the resume messages:
Jun 14 17:31:07 alien systemd-sleep[16326]: /lib/systemd/system-sleep/custom-xhci_hcd: Wakin
Jun 14 17:31:07 alien systemd-sleep[16326]: Selected interface 'p2p-dev-wlp60s0'
Jun 14 17:31:07 alien systemd-sleep[16326]: OK
Jun 14 17:31:07 alien systemd-sleep[16326]: /lib/systemd/system-sleep/lag-suspend.sh: Waking
Jun 14 17:31:07 alien kernel: PM: suspend exit
Jun 14 17:31:07 alien kernel: xhci_hcd 0000:00:14.0: xHCI Host Controller
Jun 14 17:31:07 alien kernel: xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus nu
Jun 14 17:31:07 alien kernel: xhci_hcd 0000:00:14.0: hcc params 0x200077c1 hci version 0x100
Jun 14 17:31:07 alien kernel: xhci_hcd 0000:00:14.0: cache line size of 128 is not supported
Jun 14 17:31:07 alien kernel: usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
Jun 14 17:31:07 alien kernel: usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumb
Jun 14 17:31:07 alien kernel: usb usb1: Product: xHCI Host Controller
Jun 14 17:31:07 alien kernel: usb usb1: Manufacturer: Linux 4.14.114-0414114-generic xhci-hc
Jun 14 17:31:07 alien kernel: usb usb1: SerialNumber: 0000:00:14.0
Jun 14 17:31:07 alien kernel: hub 1-0:1.0: USB hub found
Jun 14 17:31:07 alien kernel: hub 1-0:1.0: 16 ports detected
Jun 14 17:31:07 alien kernel: xhci_hcd 0000:00:14.0: xHCI Host Controller
Jun 14 17:31:07 alien kernel: xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus nu
Jun 14 17:31:07 alien kernel: xhci_hcd 0000:00:14.0: Host supports USB 3.0  SuperSpeed
Jun 14 17:31:07 alien kernel: usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
Jun 14 17:31:07 alien kernel: usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumb
Jun 14 17:31:07 alien kernel: usb usb2: Product: xHCI Host Controller
Jun 14 17:31:07 alien kernel: usb usb2: Manufacturer: Linux 4.14.114-0414114-generic xhci-hc
Jun 14 17:31:07 alien kernel: usb usb2: SerialNumber: 0000:00:14.0
Jun 14 17:31:07 alien kernel: hub 2-0:1.0: USB hub found
Jun 14 17:31:07 alien kernel: hub 2-0:1.0: 8 ports detected
Jun 14 17:31:07 alien eyesome[16633]: Wakeup: Called from suspend.


If you installed Tor via apt or by extracting the tar.xz file into /opt directory, it might be due to insufficient permissions and probably can be solved by some chmod/chown commands. Alternately, you can solve it by extracting the tar.xz file in a directory with enough permissions, e.g., the default Downloads folder. Then, go down to the folder which contains 'start-tor-browser.desktop' file, and do a right-click on a blank space there and choose "Open in terminal" and run this command in the terminal:
./start-tor-browser.desktop --register-app

(without moving anything to /opt directory or anywhere else). Now, Tor will be among your programs in the application menu. I hope it works correctly.


GRUB booting only Ubuntu but not Windows 8

Boot Ubuntu. Try opening a terminal by holding down CTRL and ALT and tapping T and then issue the command

sudo update-grub

This should find your windows 8 installation again. If this doesn't work it's possible you've overwritten your Windows 8 boot sector which you would need to repair with windows 8 media and then reinstall grub (making sure you don't overwrite the windows boot sector again) so you can boot ubuntu.


Unable to load .mozilla during installation sometimes (ubuntu 12.04 LTS)

You probably have .mozilla rather than .Mozilla. As vasa1 says, filenames in Ubuntu are generally case-sensitive. The .mozilla subfolder of your home folder contains your Firefox profile. (If you really do have .Mozilla with a capital M, please let us know, and provide more details about what this folder is and what you're trying to accomplish.)

As mikewhatever says, files and folders whose names start with a . are hidden by default. To show them, press Ctrl+H or click View > Show Hidden Files. The Ctrl+H shortcut works in most file browsers, and also typically works in Open File (and Save File, Export To, Select File, etc.) dialog boxes.

To copy your .mozilla folder somewhere else, just show hidden files as explained above, and copy it as usual.

If you're burning it to a CD/DVD/BluRay using Brasero, you do it essentially the same way. But you have two options. You can drag it in from a file browser window, or you can click the + to add files and select it.

When the Select Files dialog box appears, you can press Ctrl+H to show hidden files, just as you would in a file browser window.

If you rename .mozilla so it doesn't start with a ., then it will always be shown, but it will not be found by Firefox. So if you prefer, you can rename the backed-up copy. But when you restore it, it will need to start with the . to be recognized as the folder that contains your Firefox profile.


WiFi not working on Ubuntu 14.04 amd64 / Qualcomm Network QCA8172

I just installed 14.04.2 on a system, also with a Broadcom wifi chip, and was having the same issue.

In the past, on a fresh install on this system, I've had to install "dkms" and then "bcmwl-kernel-source" - both of which are available on the Ubuntu install media (under "pool"), and if I install them in that order, I've found that it creates the wireless interface and configures it properly to let me use it. But not this time!

This appears to be an issue with 14.04.2 and the included Broadcom driver (never a good thing to hear), and for me, it happened to be this exact issue reported on Launchpad:

https://bugs.launchpad.net/ubuntu/+source/bcmwl/+bug/1307744

That bug report states a fix was released 9 months ago for this, but for some reason it didn't make it into the 14.04.2 release. The issue didn't affect 14.04.1 since it was still using the 3.13 kernel.

Happily, I was able to fix it easily, by just installing the bcmwl-kernel-source package from Ubuntu 14.10 "Utopic", rather than doing the code editing and compiling that is discussed in the bug report.

You can download the bcmwl package for Utopic from here:

http://packages.ubuntu.com/utopic/bcmwl-kernel-source

Get the amd64 one if you are using 64-bit, or i386 for 32-bit. Just download it and double-click it - Ubuntu Software Centre will pop up and ask if you want to install it. Hopefully, if your problem is the same as mine, that will automatically install the module, add the wireless interface and get you online without having to tether to your phone.

Matt


Use dd to pull all the info off the tapes, and then experiment with copies of the files.  Tapes are fragile after 20 years, so assume media is cracking and oxide is flaking off.

Examine the first 100 characters of the file, it should be recognizable as a tar header, if it looks scrambled, but not binary (encrypted), try dd with some of the byte swapping switching, again just the first characters until you get the right combination, then you can dd with those switches to tar.

If the header looks encrypted, try the tar z with the various byte swapping on dd, then try uudecode, (on a copy of the file, then dd byte-swapping, first few hundred...) Try unzip on the file.
When you can see the header, then apply to the whole file.


How to Install Okular 0.15 on 12.04 LTS?

I backported poppler 0.20.5 to Ubuntu 12.04, compiled Okular 0.16.2 (edit: now updated to 0.17) against it, and put them in a ppa. To use it, add the ppas ppa:kubuntu-ppa/backports and ppa:kalakris/okular:

sudo apt-add-repository ppa:kubuntu-ppa/backports
sudo apt-add-repository ppa:kalakris/okular

Now update the package index and upgrade okular:

sudo apt-get update
sudo apt-get install okular

This version allows me to export annotations to PDF. Since these packages are compiled for precise, there should be no trouble with other dependencies, unlike the solution that suggests installing packages from quantal.


I made Ubuntu Thrash My Win 8 MBR - Can I restore it and my data?

Boot the Ubuntu LiveUSB and run the command

sudo fdisk -l

to look at the drive and partitions.  If there are only two partitions on the hard drive - ext4 / and a swap partition then you have re-partitioned and formatted your hard drive.  Recovery would be difficult but you could try testdisk to see if will recognise any of the old partitions and the data on them.

If you have multiple partitions including your Windows hidden recovery partition and the NTFS Windows partition, then you could try to mount the main NTFS partition to copy your data off it.

Backups of important data are highly recommended before installing any operating system or doing anything to partitions.  Data recovery in cases where things go wrong can be a difficult and expensive process.  You should immediately image the drive to a backup device of sufficient size before you do very much to it - ie don't write any more data to the hard drive until you've recovered everything possible.


I can't install Teamviewer 12 on Ubuntu 16.04

The message

internal bzip2 read error: 'UNEXPECTED_EOF'

means that the file is smaller than expected. In your case, I assume your download is broken.

There are multiple reasons for this to happen, but I just recommend to download again later.


Ctrl + W is the shortcut for searching. The same effect can be achieved by pressing the F6 key. After entering the search term, press Enter. To repeat the search, issue Alt + W. In this menu, you can select earlier searches using the arrow up/ down keys.

To toggle backwards searching, you need to press Alt + B in the search dialog.

For more shortcuts, press F1


Most famous ones are:

Gnome Calculator
galculator
xcalc
kcalc

They all have basic and scientific modes.

By default Ubuntu comes with "Gnome calculator" unless you are using a specific flavor of Ubuntu.

Gnome Calculator:

For example in "Kubuntu" you should have "kcalc".

Kcalc:

galculator

There are other options available too like "xcalc", I use galculator myself, install it using:

sudo apt install galculator

It's lightweight and really fast, doesn't have much dependencies, easy to use and has nice features.

Paper Mode:

Scientific view:

Extcalc

If you are looking for something with more features then I guess you are looking for "Extcalc".


Find USB device's directory /sys/bus/usb/devices/ using idVendor/idProduct

If I understood your question, the following script should do the job:

#!/bin/bash

if [ $# -ne 2 ];then
  echo "Usage: `basename $0` idVendor idProduct"
  exit 1
fi

for X in /sys/bus/usb/devices/*; do
    if [ "$1" == "$(cat "$X/idVendor" 2>/dev/null)" -a "$2" == "$(cat "$X/idProduct" 2>/dev/null)" ]
    then
        echo "$X"
    fi
done


How do I interface my Samsung Rugby II phone with Ubuntu?

I have had the same problem with my Rugby 2 phone. The phone needs a memory card before it can be interfaced your computer. The card has to be bought separately and is placed behind the battery in the phone back. There is no indication of this either on the phone or, in my case, in the owner's manual; I had to go to the place whee I bought the phone to learn about this. You can send photos and other data directly from the phone to a phone address and to an email address with out a memory card.


There are errors in .bashrc (or .bash_aliases or .profile) in your home directory. Find the line(s) containing 'alias' and correct the error.


I recommend to make a boot repair. For that refer the following link:
https://help.ubuntu.com/community/Boot-Repair


How do I fix the color shift on the text?

Start GNOME Tweaks. Adjust these settings...

If you've got a CRT type video monitor, it may need convergence, to properly align the RGB color beams.
Pattern used to align example...

Misaligned example...


ubuntu packages and Advance Package Manager

dpkg  is the Linux Debian packages manager. When you use the apt command to install a package, apt will invoke the dpkg program to install or remove applications while including additional functions dpkg doesn’t like dependency resolution. The program dpkg can be used to install or remove programs and some other related things.

Packages contain all of the files necessary to implement a set of related commands or features. For Ubuntu, they usually have the .deb extension. Since you have used Windows, you can think the .deb packages as .exe or .msi files.

There are some tools that help us to help us install these packages. One of these tools is apt which used to install packages.


Edit /etc/default/locale:

LANG="en_US"

LANGUAGE="en_US:en"

Edit ~/.pam_environment:

LANG=en_US

Language=en_US

Log out and log in, or reboot.


When I try to install Ubuntu, the screen res is too low to use the installer

Holding down the Super key will let you drag the installer windows upwards enabling you to use the buttons.


Why I can't access google products like google.com and youtube.com?

I had similiar problem with youtube videos not playing. I am using chrome browser mostly, so I will explain the method that fixed my problem.

Open the chrome settings
Open advanced settings.
On the Privacy section click content settings
Under the Cookies click the Manage exceptions and set www.youtube.com and youtube.com as blocked.

So the basically the problem is cookies. Above procedure solved my problem.


i386 is apparentely the "wrong architecture" for my 32 bit Chromebook running ubuntu 14.04

If your chromebook is ARM based then neither will work and you can't install OpenTTD.

OpenTTD has no port to armhf.


Ubuntu insists on installing a broken package

It looks like you have removed that virtualbox-dkms 4.3.10 package.

It had problems and apport tries to report them.

The easiest way to solve it is not to close this error window every time you boot, but uncheck "Send an error report" and press "Continue".

After that apport should not pop up again with that error message.


Found the answer here:

sudo apt-get -y update
sudo add-apt-repository ppa:ondrej/php
sudo apt-get -y update
sudo apt-get -y install php5.6 php5.6-mcrypt php5.6-mbstring php5.6-curl php5.6-cli php5.6-mysql php5.6-gd php5.6-intl php5.6-xsl php5.6-zip
php -v


It is possible to use a swap file on btrfs, but there are some considerations that need taking care of.
btrfs filesystem doesn't let to create snapshots if there is a working swap file on the subvolume. That means that it is highly recommended to place a swap file on a separate subvolume.
Lets assume that the current swap is already off, the / is on /dev/sda1 and Ubuntu is installed with / on @ subvolume and /home is on @home subvolume.

Mount /dev/sda1 to /mnt.
 sudo mount /dev/sda1 /mnt

If you run ls /mnt, you'll see @, @home and other subvolumes that may be there.

Create a new @swap subvolume.
 sudo btrfs sub create /mnt/@swap

Unmount /dev/sda1 from /mnt
 sudo umount /mnt

Create /swap directory where we plan to mount the @swap subvolume.
 sudo mkdir /swap

Mount the @swap subvolume to /swap.
 sudo mount -o subvol=@swap /dev/sda1 /swap

Create the swap file.
 sudo touch /swap/swapfile

Set 600 permissions to the file.
 sudo chmod 600 /swap/swapfile

Disable COW for this file.
 sudo chattr +C /swap/swapfile

Set size of the swap file to 4G as an example.
 sudo fallocate /swap/swapfile -l4g

Format the swapfile
sudo mkswap /swap/swapfile

Turn the swap file on.
sudo swapon /swap/swapfile

Now the new swap should be working.
You also need to update /etc/fstab to mount all this on boot. Add there two lines:
UUID=XXXXXXXXXXXXXXX /swap btrfs subvol=@swap 0 0
/swap/swapfile none swap sw 0 0

The UUID is the one of your /dev/sda1.
Comments and sugestions are welcome.


How to black out screen when watching video/playing game on other screen?

Use xrandr to pick out the monitor you want to dim (I'm assuming the secondary monitor, if not remove the ^):

$ xrandr | awk '/ connected [^p]/{print $1}'
HDMI2

Then use it to set that display's brightness off:

xrandr --output HDMI2 --brightness 0

You can set it to 1 to make it visible again:

xrandr --output HDMI2 --brightness 1

xrandr's output is of the form:

Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 32767 x 32767
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 477mm x 268mm
   1920x1080      60.0*+
...
   720x400        70.1
DP1 disconnected (normal left inverted right x axis y axis)
HDMI2 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 476mm x 267mm
   1920x1080      60.0*+   50.0     59.9
   1920x1080i     60.1     50.0     60.0
...
   720x400        70.1
DP2 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

So I'm looking for a display with connected, but not followed by primary in the description.


Automatic CD/DVD ripper that supports multiple drives

I created the Automatic Ripping Machine https://github.com/automatic-ripping-machine/automatic-ripping-machine awhile back which sounds like what you're looking for.  Usage is insert a disc, it rips, and ejects the disk for you to insert another while it transcodes asynchronously.  I'm not sure how it would fare on older hardware--I think it would run just slower.


Remove the Packages completely leaving no file?

If the package maintainer is a good package maintainer, then the following should be enough:

To remove a package completely, use

 sudo apt-get purge package_name

But it can be, that some configuration files exists in your home folder. This files will not be removed by the command above.

As I don't know your package name, simply start a search

find ~ -maxdepth 1 -iname '*package_name*''

And

find ~/.config -iname '*package_name*''

Don't remove the * from the search pattern. Change only the package_name.

But if you in doubt, start a full scan

sudo   find / -iname '*package_name*''


Solution using a yad script

Overview
Unfortunately there's no existing GUI option that would be able to search through LibreOffice documents without creating an index first (e.g. Recoll, Tracker). The closest one I found was gnome-search-tool but it only supports plain text files.
Because I was looking for the same type of functionality a few months ago I decided to sit down and see what I could come up with myself. So, without further ado, here's the script I wrote:
ODT finder
#!/bin/bash

# NAME:           ODT finder
# AUTHOR:         (c) 2014 Glutanimate (https://github.com/Glutanimate)
# LICENSE:        GNU GPLv3 (http://www.gnu.de/documents/gpl-3.0.en.html)
# DEPENDENCIES    yad libreoffice unoconv

# Dialogs

Title="ODT finder"
TxtEntry="Please enter the directory you would like to search through \
and the search term."
ErrNoArgs="ERROR: Please make sure to supply both a search path and search term"
ErrNoReslt="No results found."

# Variables

declare -A Results

# Functions

dialog_options(){
    SearchOptions="$(yad --form --title="$Title" --text="$TxtEntry" \
    --width=400 --height=200 --center \
    --field="Directory":DIR \
    --field="Search term" )"

    RET="$?"

    if [[ "$RET" != "0" ]]; then
      echo "Aborting"
      exit 1
    fi

    SearchPath="$(echo "$SearchOptions" | cut -d '|' -f1)"
    SearchTerm="$(echo "$SearchOptions" | cut -d '|' -f2)"

    echo "Path: $SearchPath"
    echo "Query: $SearchTerm"

    if [[ -z "$SearchPath" || -z "$SearchTerm" ]]; then
      dialog_error "$ErrNoArgs"
      dialog_options
    fi
}

odt_search(){
    while IFS= read -r -d '' File; do
        Match="$(unoconv --format txt --stdout "$File" 2> /dev/null  | grep -m "1" -i "$SearchTerm")"
        if [[ -n "$Match" ]]
          then
              echo "Match found for $File:"
              echo "$Match"
              Results["$File"]="$Match"
          else
              echo "No Result found in $File"
        fi
    done < <(find "$SearchPath" -type f -name '*.odt' -print0)
    echo "1" > "$SearchState"
}

dialog_error(){
    yad --title="$Title" \
      --center --width="400" --height="100" \
      --image=dialog-error \
      --window-icon=dialog-error \
      --class="$WMCLASS" \
      --text="$1" \
      --button="OK":0 2> /dev/null
}

dialog_progress(){
    sleep 0.5
    while true; do
      if [[ "$(cat "$SearchState")" = "1" ]]; then
        break
      else
        echo "#Searching..."
        sleep 0.5
      fi
    done | \
    yad --progress --pulsate --auto-close \
    --width=350 --height=100 \
    --title="$Title" \
    --text="Searching for '$SearchTerm' in '$SearchPath' ..." \
    --button='_Cancel!gtk-cancel!':1 \
    2> /dev/null
    PROG_RET="$?"
    if [[ "$PROG_RET" != "0" ]]
      then
          kill -s TERM "$TOP_PID"
    fi
}

dialog_results(){
    TxtMain="Search results for '$SearchTerm' in '$SearchPath'"

    if [[ -z "${Results[@]}" ]]; then
      dialog_error "$ErrNoReslt"
      exit 1
    fi

    for File in "${!Results[@]}"; do
      echo "$File"
      echo "Ubuntu Mono 12"
      echo "\"[...]${Results[$File]}[...]\""
    done | \
    yad --list --listen --print-column=1 \
    --expand−column=0 \
    --title="$Title" \
    --text="$TxtMain" \
    --ellipsize=NONE \
    --width=800 --height=600 --center \
    --dclick-action="bash -c \"open_result %s\" &" \
    --column="File":TEXT --column=@font@ --column="Result":TEXT
}

open_result(){
    xdg-open "$1"
}

# Prep

TOP_PID="$$"

SearchState="$(mktemp -u --tmpdir "${0##*/}.XXXXX")"
echo "0" > "$SearchState"

export -f open_result

# Cleanup

trap "echo "1" > "$SearchState"; sleep 1; [[ -f "$SearchState" ]] && rm -r "$SearchState"; exit" EXIT

# Main

dialog_options
dialog_progress&
odt_search
dialog_results

Dependencies
ODT finder uses unoconv to convert LO documents to plain text. The GUI is based on yad, a powerful Zenity fork. Yad isn't available in the official repositories, yet, but you can install it from a webupd8 PPA.
The following commands should take care of all dependencies:
sudo add-apt-repository ppa:webupd8team/y-ppa-manager
sudo apt-get update
sudo apt-get install unoconv yad

Installation
Copy and paste the contents of the code box above into a new text file, name it whatever you want and make it executable. You can integrate the script with your system in various ways, e.g. by assigning a launcher or using it as a Nautilus script.
Usage
First time launching the script you will be greeted with an entry dialog for the folder you want to search through and the search term:

Click on 'OK' to start the query. This might take a while:

When the result window pops up you can double-click on any of the entries to open it in your default viewer (LibreOffice, generally). You can do this for more than one file:

The script will exit after hitting OK, Cancel, or closing the window.
There are some basic checks to guide the user and warn them if something went wrong:

Hopefully this fits the bill ☺.


Can't Move Home Folder to a Partition, Hybird SSD/HDD

I solved the problem..
1.) The  Ubuntu Home Partition Guide worked correctly.

I mistakenly thought it worked incorrectly because because only part of my restored files & settings were available (making me believe that the smaller SSD Drive had simply run out of space and prematurely terminated my rsync command)

2.) I booted into a live session and checked out the home partition.  And sure enough, it also had only partial amounts of my files and settings.  Meaning that the problem was some mysterious "malfunction" of rsync command that was supposed to restore my files & settings.
3.) Therefore, on the home partition I:
a.) rsync my files and settings, again.. into a folder with username
b.) I confirmed that the home folder was set to my user folder user folder
/home/dragonpharaoh using the usermod command
c.) I booted up and "presto" all was well..  @oldfred  thx.


Browser crashes/hangs system on low-spec machine under Xubuntu

Do you have swap enabled, i.e., does free list any swap space?

Here's a trick I learned from running Android Studio and a modern web browser on 4GB of memory:

Add the line kernel.sysrq=1 to /etc/sysctl.conf and run sysctl -p. This will enable all Alt+SysRq commands.
When your system freezes due to running out of memory, press Alt+SysRq+F to manually invoke the OOM killer. For me, this kills the program causing the memory pressure every time, but YMMV.


Answered by launchpad

The documentation in /usr/share/doc/libcurl4-gnutls-dev/html/curl-config.html is indead wrong, and thus this is a documentation bug.

Instead or reading on line 88:

`curl-config --cc --cflags --libs` -o example example.c

it should read

`curl-config --cc --cflags` -o example example.c `curl-config --libs`

This places the shared libraries AFTER the object we want to link, and now it works.


Simulate a middle-click on Lenovo Yoga 2 Pro Synaptics touchpad

Below is what I have in the file /usr/share/X11/xorg.conf.d/50-synaptics.conf and works as intended.

Section "InputClass"
    Identifier "touchpad catchall"
    Driver "synaptics"
    MatchIsTouchpad "on"
    MatchDevicePath "/dev/input/event*"
    Option "TapButton2" "3"
    Option "TapButton3" "2"
EndSection

Alternatively, you can create a script as described in

Execute a command 20 seconds after the desktop is booted

or include the commands below in $HOME/.xprofile

sleep 20
synclient TapButton2=3
synclient TapButton3=2


How to Extend Ubuntu OS Partition Size from Unallocated Partition?

You cannot simply assemble several non-juxtaposed pieces of partition into one in a normal paritioning scheme.

To achieve what you want to do, you would need to reinstall the Ubuntu part (remember to do yoru backups first!), using LVM (Logical Volume Management)

Under such circumstances, you would indeed be able to add individual partitions to a volume group, and piece them together to make a single logical volume.

The advantage of this approach is that additionally, you can make your Ubuntu partition grow to also include additional drives etc.

See here the section on installing using Logical Volume Manager


The difficulty here is that your rasberry pi doesn't have a fix IP and is by default not reachable from the outside because your router is a firewall. The following would still work:

Setup your owncloud-Linux to create an ssh reverse tunnel to your outside box on every boot (using key authentification). A ssh reverse tunnel allows that talking to localhost:8123 on the wordpress manshine would reach localhost:80 on the owncloud mashine. For more info search "ssh reverse tunneling", or try this.  The ssh configuration ~/.ssh/config file on the resberry pi would contain lines like these:

  host wordpress

  hostname 123.345.678.987 # IP of the wordpress

  RemoteForward 8123 localhost:80

Configure apache on the Wordpress mashine to proxy all requests on "/owncloud" to localhost:8123 . After enabling the Apache2 module, the configuration would look something like:

  ProxyPass         /owncloud http://localhost:8123/owncloud

  ProxyPassReverse  /owncloud http://localhost:8123/owncloud

The keyword to search for here is the Apache2 Module HTTP-Proxy

The result would be www.yourdomain.com reaches your wordpress etc.. Only http://www.yourdomain.com/owncloud reaches you raspberry pi.

BTW: Do not use the URL "/owncloud", but rather something that is not standard like "/mycloudy" to avoid standard attacks.


How to fix slow/unstable ethernet/wifi on Dell Latitude/Ubuntu/Kernel 5?

I found that switching off Bluetooth and suspend/resume made the DA200 work a couple of times but highly unreliably. My solution was to buy a generic docking adapter. The fact that this adapter (and many others one can find) has the same chipset (Realtek 8153) makes me believe that the DA200 hardware is intricate to handle by drivers or simply unreliable. For any DA200 users' interest, my observation sadly confirms to what is reported by several others. The W10 drivers seem to be able to circumvent these issues. I've filed an issue report with the hope to help getting a potential kernel bug fixed.


In Xubuntu both Chrome and Firefox are default browsers

Here's what worked for me.

sudo update-alternatives --config x-www-browser

There are 2 choices for the alternative x-www-browser (providing /usr/bin/x-www-browser).

  Selection    Path                           Priority   Status
------------------------------------------------------------
* 0            /usr/bin/google-chrome-stable   200       auto mode
  1            /usr/bin/firefox                40        manual mode
  2            /usr/bin/google-chrome-stable   200       manual mode

xdg-settings set default-web-browser google-chrome.desktop

Verified with xdg-settings get default-web-browser

output:

google-chrome.desktop

I believe you are missing some chrome entries from your mimeapps.list as well. My output after the commands above is as follows:

grep chrome ~/.config/mimeapps.list

application/x-mswinurl=google-chrome.desktop;
text/html=google-chrome.desktop
x-scheme-handler/http=google-chrome.desktop
x-scheme-handler/https=google-chrome.desktop
x-scheme-handler/about=google-chrome.desktop
x-scheme-handler/unknown=google-chrome.desktop

Sources:

How to change default browser AND the command line parameters used to open a link from gnome-terminal

/.config/mimeapps.list


How to find drivers and tools for eeePc F201e

I found some answers at http://bach-online.de/2012/12/27/ubuntu-12-10-on-the-asus-f201e-x201e/

  Minor tweaks necessary For a few issues, some tweaks were necessary to
  fix them.

  Brightness keys After the installation, the keys for the brightness
  were not working. This could be fixed by editing the /etc/default/grub
  file and changing the line "GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
  to "GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=". After running
  "sudo update-grub" in the terminal and rebooting, the keys were
  working again.

  Network card not working Besides, the ethernet controller was not
  recognized and did not work, while Wifi was functioning just fine.
  This could be fixed my installing the package
  linux-backports-modules-cw-3.6-quantal-generic. This package will
  install several other packages (depending on the current kernel used)
  and after running "modprobe alx" in the terminal as super user, the
  ethernet card was working also.


Failed to install ubuntu 12.10 on asrock h77 pro4/mvp with uefi bios

What options are there when booting Ubuntu from a USB or CD?

You have two options when booting from a bootable USB or using a LiveCD.

The first option is:

Try Ubuntu

The Try Ubuntu option allows you to try Ubuntu without permanently installing it and altering your system. It creates a environment, run by the files on your CD/USB and using the hardware on your computer. While in this state, your hard-disk is not affected and no changes are permanently made to your system.

The second option is:

Install Ubuntu

The Install Ubuntu option permanently (unless you want to remove it) installs Ubuntu onto your computer, and from that point on will use your hard-drive to save files and to operate off. If you choose to dual-boot with Windows or OS X, you are able to choose which one to start at the boot of your computer.

Which should I use?

If you are looking to test Ubuntu, you should:

Choose the Try Ubuntu option, or
Install Ubuntu in a Virtual Machine, which can be deleted and won't override your previous OS.

If you wish to permanently install Ubuntu, you should:

Choose the Install Ubuntu option, and
Run it alongside (dual-boot) Microsoft Windows, Apple OS X, or another OS you have installed, or
Replace your old OS with Ubuntu. Please not that this will remove all files and data on the other OS.

Depending on what you want to do, you must choose the right option!

Good luck!


Ubuntu 19.10 Bluetooth on Intel AC 3168NGW Stopped working (WiFi still works)

Found the answer in another thread: Bluetooth not working at all after I made some changes to pair with PS3 joystick

Turn off the computer, unplug everything including power, give it a few minutes and then power back up. Bluetooth is back again. (I had tried powering off, and rebooting, but not disconnecting everything)

You can see in the screenshot that it is still acting strange in the Additional Drivers panel, but that Bluetooth devices are successfully connected:


Chrome application shortcuts open small window

Just to see what happened, I created some webapp- launchers. What you describe occurred to me as well, but in an unpredictable way; sometimes it happens, sometimes it doesn't.

Opening a webapp window with a pre defined size

To guarantee that a newly created window of a certain application has a certain size, turned out to be a bit more complicated than I anticipated. I think however that the solution below works elegantly.

What it does and how to use

The solution below redirects the command to run the webapp to a script. The scripts runs the command, waits for the corresponding window to appear (waiting for the pid of chrome to produce a new window) and resizes it to the size that you define.

In practice:

Looking inside the webapp's .desktop file, you see in the Exec= line (as you mentioned) a command, looking like:

Exec=/opt/google/chrome/google-chrome --app=feedly.com/i/my

After you made the setup below, all you need to do is to replace the command in this (or any other webapps-) file to:

Exec=run_maximized "/opt/google/chrome/google-chrome --app=feedly.com/i/my" 100 100

The last to figures in the command are the horizontal/vertical sizes of the window (in %, related to the screen size)

The setup

The script uses both wmctrl and xdotool:

sudo apt-get install wmctrl
sudo apt-get install xdotool

Copy the script below into an empty file, save it as run_maximized (no extension) in ~/bin. Create the directory if it does not exist. Make the script executable.
If you just created the directory ~/bin, either log out/in or run

source ~/.profile

In the webapp's .desktop file, replace the command in the Exec= line:

Exec=/opt/google/chrome/google-chrome --app=feedly.com/i/my

to:

Exec=run_maximized "/opt/google/chrome/google-chrome --app=feedly.com/i/my" 100 100

Mind the quotes, and don't forget the horizontal/vertical size of the window

The script

#!/usr/bin/env python3
import subprocess
import getpass
import time
import sys

user = getpass.getuser()
get = lambda x: subprocess.check_output(["/bin/bash", "-c", x]).decode("utf-8")
ws1 = get("wmctrl -lp"); t = 0
subprocess.Popen(["/bin/bash", "-c", sys.argv[1]])

while t < 30:
    ws2 = [w.split()[0:3] for w in get("wmctrl -lp").splitlines() if not w in ws1]
    procs = [[(p, w[0]) for p in get("ps -u "+user).splitlines() \
              if "chrome" in p and w[2] in p] for w in ws2]
    if len(procs) > 0:
        command = "xdotool windowsize "+procs[0][0][1]+" "+sys.argv[2]+"% "+sys.argv[3]+"%"
        subprocess.call(["/bin/bash", "-c", command])
        break
    time.sleep(0.5)
    t = t+1

Notes

I used xdotool to resize the window. It could also be done with wmctrl, but the maximize command of wmctrl has some side effects that xdotool does not have.
With a minor change of the script, it can be made usable to run windows of a predefined size (or position) of any application. Could be usefull in quicklists for example, to create multiple windows in a predefined layout.


Cinnamon is not supported in ubuntu 10.10 ,so if you wanto install cinnamon you have to upgrade to ubuntu 11.10


You can install the GNU Fortran compiler using:

sudo apt-get install gfortran

..or install the f2c (Fortran to C) translator using:

sudo apt-get install fort77

The best option is most probably to use gfortran.


What is the name of the process for a running gnome terminal?

It's called bash. Each running terminal does have a separate process.


PHP may be executing as a "privileged" group and user, which could be a serious security vulnerability

The privileged user in this case is www-data. You see, PHP will run always with the www-data:www-data permissions, which can be detrimental if the environment is shared between many users / projects, since PHP can overwrite or modify any file that belongs to www-data, irrespective of the user who created the script.

Of course, this is not a problem if you are the only user creating PHP scripts on your machine, is it.

Also, the UID / GID of www-data might be below 100; since some policies grant special privileges to users with low UIDs, that may be a reason your software is complaining.

If you are worried, read this.


Move window from display :0.0 to display :10.0?

No, there's no way to attach a running application to another X display. The X protocol mandates that clients exit when they lose connection to the X server.


Problems after upgrading to 13.10 from 12.10

I would like to suggest to boot your system into recovery mode. Try to fix broken packages as shown below.

Choose Drop to root shell prompt after booting Ubuntu in recovery mode.
Execute following commands in terminal.

mount -o remount,rw /

sudo rm /var/lib/apt/lists/* -vf

sudo apt-get update

sudo apt-get install -f && sudo dpkg --configure -a

sudo apt-get --fix-broken install

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


How to install & Boot ubuntu with windows boot mgr and not grub2?

Besides that this is a more Windows related question, you can add Linux to the Windows boot loader by opening a command prompt as administrator and executing :

bcdedit /create /d name /application bootsector
bcdedit /set {****} device partition=c:
bcdedit /set {****} path \linux.bin

Before that, copy and export the Linux boot sector by opening a terminal in Ubuntu and executing :

sudo mount /dev/sdYY /mnt
dd if=/dev/sdXX of=/mnt/linux.bin bs=512 count=1

Note 1: name = the name of the system to boot (e.g. Ubuntu)
Note 2: **** = the identifier of the new entry in the BCD store
Note 3: sdXX = the Ubuntu partition
Note 4: sdYY = the Windows partition

This is the most proper method to add the Linux boot entry to the Windows boot loader, because using 3rd party tools like EasyBCD tend to generate problems when changing or deleting entries.

Task order and summary :

Install Windows (on the first partition of the disk).
Install Ubuntu (install GRUB to root ( / ) partition - NOT to mbr !).
Copy and export Linux boot sector (do this from the Ubuntu install media).
Boot into Windows and proceed as mentioned in the beginning (edit BCD).
Reboot the computer and now you will see the Ubuntu entry in the Windows boot menu.

These instructions are valid for installations in Legacy BIOS (MBR) mode.
If your computer is UEFI based, you simply can adjust this in the UEFI menu.


Unable to Mount Location Can't mount file

This is nothing to be concerned about. This happens due to partitioning - the "500 GB Hard Disk" icon represents your entire SDA tree, so it can't be mounted as a single volume.

Next to that icon, you will see a folder called "File System" that represents the base of your Linux installation. Any other operating systems or data partitions should be accessible from your desktop, and will be labeled "xGB File System" where x is the amount of space in that partition.


Port listening on localhost:8000 but not on ip:8000

As @JamesHenstridge points out, the behaviour you're observing is not due to Ubuntu blocking your application on some IPs, but due to your application explicitly binding only to the local loopback interface (127.x.x.x). At least if you didn't install and set up a firewall to specifically block that port.

You need to consult your application's documentation to see if there's a setting to make it listen on other (or on all) interfaces.


Is there an equivalent to windows+p hotkey (change between mirrored/extended monitor) in Ubuntu?

If you don't find a simple built-in shortcut, you can do what I do on Xubuntu and use xrandr to switch the display output. All of this might seem like a pain in the ass, but I've found it to be rock solid reliable over the years (especially compared to relying on display auto-switching).

$ sudo apt-get install xrandr

So on my setup, this command switches to mirrored output:

xrandr --output HDMI1 --mode 1920x1080 --pos 0x0 --rotate normal --output VIRTUAL1 --off \
--output DP1 --off --output eDP1 --mode 1920x1080 --pos 2040x0 --rotate normal \
--same-as HDMI1 --output VGA1 --off

And this one switches to extended desktop:

xrandr --output HDMI1 --mode 1920x1080 --pos 0x0 --rotate normal --output VIRTUAL1 --off \
--output DP1 --off --output eDP1 --mode 1920x1080 --pos 2040x0 --rotate normal \
--output VGA1 --off

Obviously, these commands are too long to be typing in, so I save them to scripts called display_TV_mirror.sh and display_TV_extend.sh, and then I bind a shortcut key to each script. In regular Ubuntu, I think you can set the shortcuts in  System Settings -> Keyboard -> Shortcuts. I use to separate scripts with two separate shortcut keys, but you could easily combine them into one switch with some toggle logic.

Note: To find out the exact command you want to use for xrandr, it is probably easier to use arandr at first, which is basically a gui interface to xrandr.

$ sudo apt-get install arandr
$ arandr

Then you can set up your desired config, save it to a file somewhere, then look at that file to find out what xrandr command is needed to get the setup you want.


how to block a process for certain time in ubuntu 13.04

You can send the SIGSTOP signal to any process and that process will stop execution, this signal can't be ignored by the process. To send the signal by PID of the process run:

kill -STOP THE_PID_OF_THUNDERBIRD

To send the signal to every process running a specified command, e.g. thunderbird, use this :

killall -STOP thunderbird

To allow the process to continue execution just send the process the SIGCONT signal:

kill -CONT THE_PID_OF_THUNDERBIRD

or

killall -CONT thunderbird


How to format datetime indicator in Unity's panel to show in two lines?

At this time it is not possible to do in the top panel, sorry.


Times have changed from the days of Ubuntu 9.10 (when this question was originally asked) and now a modern version of FFmpeg in a recent Ubuntu release has both an encoder and decoder for the caf (Core Audio Format) container. Test your own modern version of FFmpeg as follows for 'D'ecoding and 'E'ncoding with caf:
ffmpeg -formats 2>/dev/null | grep caf
 DE caf             Apple CAF (Core Audio Format)

We can test with the following sample .caf file:
wget samples.mplayerhq.hu/A-codecs/caf/waterfall.caf

And an easy conversion to mp3 with FFmpeg:
ffmpeg -i waterfall.caf -hide_banner -ac 1 test.mp3
[caf @ 0x66e8c0] Estimating duration from bitrate, this may be inaccurate
Guessed Channel Layout for Input Stream #0.0 : mono
Input #0, caf, from 'waterfall.caf':
  Duration: 00:00:01.95, start: 0.000000, bitrate: 722 kb/s
    Stream #0:0: Audio: pcm_s16le (lpcm / 0x6D63706C), 44100 Hz, mono, s16, 705 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s16le (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
Output #0, mp3, to 'test.mp3':
  Metadata:
    TSSE            : Lavf58.10.100
    Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, mono, s16p
    Metadata:
      encoder         : Lavc58.13.100 libmp3lame
size=      16kB time=00:00:01.96 bitrate=  65.7kbits/s speed=75.6x
video:0kB audio:16kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.429291%

How cool is the command line :)


Try removing the installation package with the following command:

sudo rm /var/cache/apt/archives/libjack-jackd2-0_1.9.8~dfsg.2-1precise1_amd64.deb

Then reload the sources list with

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

...and then reinstall libjack-jackd2-0.


GNOME extension "Internet Radio" not working while session locked

Unfortunately, this is as per GNOME's security policy, whenever you enter the lock screen all the extensions get disabled automatically until you get back in, and then the extensions get re-enabled.

So the only feasible workaround is to keep the screen unlocked all the time. You may use an extension like Keep awake! to prevent automatic screen-locking.


How to update printer state after installing cups file

So the answer was to unplug the printer and plug it back in again. Go figure. Thanks to this answer for the inspiration.


Force LibreOffice 5.1.2.2 to use gtk2 instead of gtk3?

Uninstall libreoffice-gtk3 if you need the GTK2 version of LibreOffice.


What kind of animal is a Pangolin as in "Precise Pangolin"?

It looks kind of like an armadillo you can get more details here: http://en.wikipedia.org/wiki/Pangolin


localhost not working(apache2,ubuntu12.04). but showing "it works" page

I resolved the issue..!
It was due to, some other process using the same port 80. so it was unable to run. I found out process and killed and restarted the apache server.

It is working now.


There is a way to turn off online searches and a few other tweaks that will speed up the search dash.

Install Unity Tweak Tool here Unity Tweak Tool
** *Have caution with this program even though you can reset the settings changed, you may have issues that conflict with eachother.

After installing open it up and click on the Search Settings Under Unity

You can turn off Background Blur and Clear History as well as a few other options that will speed it up nicely.


Software Center disappeared and system settings does not work

To directly restore Software Center you need to re-install the software-center package. You can do so from the terminal with

sudo apt-get install software-center

If that doesn't restore your entire desktop there is a good chance that you will need to re-install the ubuntu-desktop meta-package. Try re-installing the ubuntu-desktop meta-package:

sudo apt-get install --reinstall ubuntu-desktop


This works on 16.04 now.  See the following q/a for more details:

What is the workaround for LXD-nested pivileged docker (/dev/.lxc/proc/ error)?

lxc launch ubuntu-daily:xenial xenial
lxc config set xenial security.nesting true
lxc exec xenial snap install docker
lxc exec xenial docker run ubuntu ls


How can I switch graphics (Intel integrated/ ATI discreet) in 16.04 LTS

I did the changes by hardware, in the BIOS.


Can you install Ubuntu on a Windows 8 laptop without CD/DVD or USB drive?

Its kinda tricky, but I'm sure its possible. You should try to install GRUB4DOS Then you'll need a try with this commands or better add a boot entry to menu.lst file placed in a root directory of your hard drive, something like:

title Boot My Ubuntu ISO file NOW!
find --set-root /ubuntu-14.04-desktop-i386.iso
map /ubuntu-14.04-desktop-i386.iso (0xff)
map --hook
root (0xff)
kernel /casper/vmlinuz boot=casper iso-scan/filename=/ubuntu-14.04-desktop-i386.iso quiet splash
initrd /casper/initrd.lz
boot

I'm not 100% sure that will work fine, however for me it's definitely worth to try. ISO file should be placed in root directory. Remember you will need a free partition where you be able to install Ubuntu. If you doesn't have partition for Ubuntu but you have space on it I would try changing size of it and make a new one with Gparted tool in Ubuntu Live. Try to not erase your Windows 8 if you doesn't want it.


Max brightness on Ubuntu 18.04 is lower than Windows 10

On ubuntu there is a package named xrandr and it has an option for manage the brightness. But it need to know the output you have:

sudo apt install xrandr
xrandr

After that you type:

xrandr --output <your_output> --brightness <x>

You can replace "x" by the value you want. I use "1" or "1.2" in general. Your screen output on a laptop is eDP-1.


Missing dictionaries for spell-checking with kate and kile

Just install for example hunspell-de-de package, restart Kate and you should be good to go, German added to spelling dictionaries.

sudo apt-get install hunspell-de-de

I used muon package manager myself.


Can someone harm my computer just using grub?

Yes they can; by editing GRUB to boot to single user mode.

They can then reset the root password simply by entering passwd. It is then possible to for the attacker to mount file systems and basically, do as they please...

This guide provides you with information on locking the GRUB command-prompt with a password: https://help.ubuntu.com/community/Grub2/Passwords


WARNING: PV /dev/sda3 in VG ubuntu-vg is using an old PV header, modify the VG to update

'VG' in the warning means volume group. This is applicable to systems using logical volume management. 'PV' stands for physical volume, that is the actual partitions on disk(s). Headers contains information about the volume group's layout which can be used for data recovery.
You can try to resolve this with the tool vgck which checks volume group metadata and can rewrite it to correct problems with the --updatemetadata command. You need to give the name of the volume group mentioned in your warning - in your case it says that the physical volume /dev/sda3 (that's a disk partition device file) which is in volume group ubuntu-vg is using an old header, so probably the metadata needs to be updated. To do that you can use this command:
sudo vgck --updatemetadata ubuntu-vg


Make gedit embedded terminal colours the same as the default terminal

Make sure you have the following packages installed:

dconf-tools
gconf-editor

Open up gconf-editor and navigate to apps ➜ gnome-terminal and select a profile:

Now open up dconf-editor and navigate to org ➜ gnome ➜ gedit ➜ plugins ➜ terminal and uncheck the use-theme-colors key:

From gconf-editor, copy the values of the

background-color
foreground-color
palette

over to the corresponding keys in dconf-editor. The embedded terminal should now match a regular gnome-terminal.


You're trying to start airodump on a non-monitor interface.

Airodump requires that you run it on a monX interface just like the error message tells you to do.  I'm working on a python conversion for everything but the cracking.  In the mean time, read the directions and run airmon-ng start wlan0 to fix your problem.

It's a little upsetting when the answer is in the error message in the question in total...


How do I remove ._ from beginning of filename?

This is a dry-run (simulates the command, doesn't execute it):

rename -n 's/^\._//' ._*

If you like the output, execute it:

rename -v 's/^\._//' ._*


Kernel advice and how to block unwanted downloads

To stop installing 3.13 upgrades you can run in terminal

sudo apt-get remove linux-image-generic linux-headers-generic
sudo apt-get autoremove

You can also install Synaptic

sudo apt-get install synaptic

and remove linux image and headers packages of version 3.13, that may not be removed at the previous step.


Have you tried fixparts . I have recoverd  corrupted partition table of my hdd using this tool. More info: http://www.rodsbooks.com/fixparts/ and http://manpages.ubuntu.com/manpages/precise/man8/fixparts.8.html


Compiling php 5.2 from source under 12.04, apxs2 (via libtools) ignores the -prefix used with ./configure

Based on this blog article, if you specify INSTALL_ROOT the PHP apache module will try to install in that directory.

INSTALL_ROOT=/the/dir/path/to/install/in make install

The other thing you might want to try adding this option to your ./configure of php-src:

--libexecdir=DIR        program executables [EPREFIX/libexec]
--sysconfdir=DIR        read-only single-machine data [PREFIX/etc]

as I believe those are being used in the Makefile


No sound on 13.04 except when (un)plugging power chord

Apparently repeatedly turning it off and on again makes some kind of magic happen and now it's working again. \o/


SSH-Agent can't open a connection to authentication agent?

Yes. you can enable agent-forwarding by adding

ForwardAgent Yes

in your ssh configuration file (either ~/.ssh/config for user or /etc/ssh/ssh_config system wide.

See also http://drupal.txwikinger.me.uk/content/configurations-ssh-make-some-things-more-convenient.

Alternatively, if ssh is called with the option -A, the agent forwarding is also enabled as pointed out in the other answer.


Transfering files from Windows 7 to Ubuntu VIA partition

Actually, when you boot into Ubuntu, you can access to your Windows partition directly... You can manage your Windows files from Ubuntu... What you CAN'T do, is accessing Ubuntu partition from Windows... What you can do, is making a partition with a NTFS format... So, you can access it from Windows and Ubuntu as well...

Hope it helps...


Solved! :)

I entered #linuxmint-help IRC channel and with help of orcus and mtn I made my machine really FLYING :) Thanks, guys, one more time. In Mint there is a shortcut to this channel in Welcome Screen.

Now I'm running on Mint 19.1 MATE 64-bit.

The issue was solved by adding nomodeset in grub settings during firts boot (while booting from USB I used Compaltibility Mode). Just hold Shift while it's booting and grub menu appears. With first entry marked press e to edit and add nomodeset parameter to second line from the bottom. You will guess where. There are hints at the bottom of screen how to operate. After installing I didn't have to change anything in grub settings. Just installed nvidia drivers in System Settings; during installation I installed all upgrades and it was good. Exceptions will be described below. In hope for making things even better I also installed newest kernel via Update Manager as guys on IRC channel told me.

The only issue is missing sound and alsamixer did not start. System does not detect soundcard properly so I need to do more research on newest hardware, but for my work sound is the last thing I need to fix.

Edit: Sound on speakers is working now. Next day I discovered that headphones started working (I did nothing in the system). Alsamixer as well, but still silence on speakers. Seems there is a bug. I noticed in alsamixer, that it's muting speakers after connecting headphones and opposite when I unplug. So for test I turned up volume on headphones (unplugged) and speakers started playing. Looks like the program changes only indicators but not real output.

Edit2: I managed to get sound working good enough. Before investigation I thought of 2 things:
1. alsamixer does not store settings
or
2. alsamixer fails to restore settings at boot

After severals tests with saving various states and comparing contents of /var/lib/alsa/asound.state I discovered that it stores the settings correctly but does not restore them at boot. So I added script at start with "alsactl restore" command and it restores volume's levels do default. BTW: when used without sudo it restores to default volumes (initializes soundcard actually) and with sudo - to saved levels.

Problem STILL exists: after unplugging headphones I have to restore settings by manually starting the script.

//End of Edit2

Hibernating and suspending works suspicious. Haven't tested it thoroughly because with that BOOST who would care if the system is suspending or shutting down ;)

I hope someone finds this post useful.

Cheers!

msi gp73 leopard 8re


Ubuntu 16.04 booting to black screen with blinking cursor when adding additional hard drives

So the answer to my problem is semi-unrelated to UBUNTU, Semi because the problem did not exist until i Updated my server to 16.04, but the fix was hardware. After I re installed ubuntu 16.04 twice on my root partition, loosing all the setup I had prior, I learned that some desktops will force SATA0 to be the default OS drive even if one is not located there, I realized this when I booted up the system with all drives mounted that BIOS told me the HDD boot drive order and the one with ROOT was second. After switching the cables around everything seems to be in order. I just mounted the rest of the drives, nothing lost.


How can I make pulseaudio have a programs output as a separate stream?

Fire up the 'voice changer' and open Pulse Audio Volume Control.  On the 'Recording' tab you should see the app you are using listed, in this case for the 'rec -d pitch -310' command it shows "ALSA plug-in [sox]" for me. There is a button to select the capture device, typically 'Built-in Audio Analog Stereo' which is the built in mic.  On the playback tab you can do the same and select where the output goes like 'Built-in Audio Analog Stereo' (speakers).  This only shows apps that are currently attached to the audio, so make sure your app is running.

Now start up the second program that is going to use it as input. Locate this application in the 'Recording' tab in Pulse Audio.  For this, select "Monitor of {device that is selected as playback for other program}".

That should do it. However there is one drawback and that is if the second program is also using the same playback device, there is the potential for feedback.  I've used this setup with FireRTC and it seems to cancel out some of the feedback, sometimes it cancels out too much.  Other apps don't and it just echos incoming audio back.  If the second app isn't generating audio, it will work fine.  If the two apps are set to different playback devices (like a USB headset and built in audio), you might be able to eliminate this issue.  You can also fire up a dummy sound device to pipe audio through using:

sudo modprobe snd-dummy


how to execute brother dcp135 printer driver

if you want to install it over a rpm and not over the normal way (cups whit driver detecton) you can use this programm to convert your rpm to deb https://help.ubuntu.com/community/RPM/AlienHowto


How to remove nginx and re activate apache?

First, you need to stop nginx so it releases port 80 so that apache2 can listen to it later on.

sudo service nginx stop

Next, if nginx was installed with apt-get, it can be removed by running one of the following two commands (I explained the difference in the next paragraph).

sudo apt-get remove nginx

Or

sudo apt-get purge nginx

Both of them remove all package files, while the second also removes the configuration files that package had installed.
If you intend to use nginx later on with the configuration you did, use remove. Else, I would suggest using purge.

After removing nginx, you can restart apache to make sure it is listening to port 80.

sudo apache2ctl restart

If you had removed apache before installing nginx, you can re-install it with

sudo apt-get install apache2


Taking screenshot saves a black image with the cursor only

Switch to tt1 (ctrl + alt + f1) and back to tt7 (ctrl + alt + f7), then take a screenshot. hat workarounds the problem.


Dualboot broken after Upgrading to Ubuntu 20.04

Download grub customizer from ubuntu software store if you haven't done so already.
In the General settings tab check show menu if unchecked.
Check look for other os if unchecked.
Increase the boot time to something like 10 seconds.

In the end it should look something like this:


Which software (Daw´s, Audio Editors, etc.) should be installed in Ubuntu Studio to work with videogame music and sounds?

The Linux Multi Media Studio is a must for every audio producer.

If you are familiar to MS Based Audio Tools, like: Fruity Loops Studio, Sony Acid, etc. You can feel happy with LMMS.

Screenshots from the official website at: http://lmms.sourceforge.net/screenshots.php posted here for your convenience:

You can create, use, edit samples from audio files, such as wav, mp3, midi, etc.

For audio capturing, manipulation, editing, DSP, etc. I can suggest you the Audacity, which is more like a multi-track waveform sound editor.

Screenshots from the official website at http://audacity.sourceforge.net/about/screenshots placed here for your convenience:

Additionally you may wish to give a try to the Israel Remix Team Multimedia 11.04 found at: http://www.israelremixteam.com, which features lots of useful audio/video tools which will make these tasks easy.

A screenshot of my System using the Israel Remix Team Distro posted here for your convenience:

The left side monitor is showing the menu with Audacity and Ardour in the background, the right side monitor is showing LMMS with a new project.

Your question seems not to be answered with a single one but this may be useful for you.

Good luck!


Look in the file /etc/postgresql/9.1/main/postgresql.conf and in the section under the title "FILE LOCATIONS".  For instance:

data_directory = '/var/lib/postgresql/9.1/main'

is what I have.


get error apt-get search virtualbox E: Invalid operation search

Depending on your version of Ubuntu, the command is either apt-cache search (all versions) or apt search (14.04 and above), but not apt-get search.


Why is my Wacom Intuos tablet not detected?

Im running Ubuntu 13.10, I downloaded the kernel driver v0.20 and followed instructions from Linux Wacom SourceForge Project, and my CTL-480 is working flawlessly.


No root file system is defined , what should I do?

Wubi isn't being developed anymore. If you just want to try Ubuntu you can use a LiveUSB without modifying your current install, or a virtual machine with something like VirtualBox.


vpn connection shortcut for different usersnames and passwords?

nmcli con up id "NAME OF YOUR VPN"

More informations

Check also How to Setup VPN


Use alacarte to edit the menus or delete the relevant .desktop files from ~/.local/share/applications.


Ubuntu currently only has Pygame for Python2. You can't use it with Python3.


There is currently no way of doing a "rollback" to Ubuntu 16.04 LTS.
However you could always just backup, get the 16.04 LTS installation files and clean install.


How to get double click to highlight words in Ubuntu 18.04 LTS terminal similar to putty functionality?

So basically go to Settings -> Universal Access -> Pointing and Clicking needs to be set to medium speed. I had mine set to lowest setting.
Now you can double click a word in the terminal and then with middle click you can paste. You don't have to drag and highlight a word and then right click, and then select "copy"


Is my new portable harddrive compatible with Ubuntu 14.10?

USB 3.0 disks have been compatible with Linux for quite some time now (some years, at least). Ubuntu 14.10 is using Linux kernel version 3.16, which is higher than 2.6.

You can confirm this by opening a terminal (Ctrl-Alt-T) and running:

$ uname -r
3.13.0-43-generic

(I'm on 14.04, which is currently on the 3.13 kernel version.)


Ubuntu 20.04, Bluetooth True wireless headphones not working (work in previous version) Sony WF-1000XM3

I had the same problem. reading your question I realized that you were right, the headphones never warned me that it was connected so they were still in pairing mode.
Once the pairing was done I turned them off, then turned them on again and it worked without problems.
Greetings my friend.


Most of the functionality of lirc has been moved into the kernel on recent Ubuntu releases.

So, you need to uninstall lirc and make sure that ir-keytable is installed instead. Then, in terminal type man ir-keytable to get started.

Plug in your remote dongle, and in terminal, type ir-keytable and this will give you the basic information you'll need to get started. Then use ir-keytable -t to get/review your scan codes. You'll save a keymap in /etc/rc_keymaps (you can get a prebuilt keymap file from /lib/udev/rc_keymaps/), and edit /etc/rc_maps.cfg if you need to.

If you Google ir-keytable you'll get plenty of how-to articles to help you. See http://madaboutbrighton.net/articles/2015/remote-control-media-player-without-lirc-using-ir-keymap


Clam AntiVirus is an anti-virus toolkit for Unix. The main purpose of
  this software is the integration with mail servers (attachment
  scanning). The package provides a flexible and scalable multi-threaded
  daemon in the clamav-daemon package, a command-line scanner in the
  clamav package, and a tool for automatic updating via the Internet in
  the clamav-freshclam package. The programs are based on libclamav6,
  which can be used by other software.1

To install ClamAV, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the commands below.

sudo apt-get install clamav clamtk

Once its done Type clam in Dash, and click on calmTK to start the application.

You may have to do an update.  Just run sudo freshclam in terminal to update definitions.

To update the program Click Here to download the file, once downloaded, go the download location, right click on the file, and choose Open With Ubuntu Software Center

And click on Update.

1Source:Ubuntu Apps


Two downloads of Ubuntu Alternative Installer look different (but have same SHA256). How?

It seems to me that you boot

in UEFI mode and get the black & white grub menu and
in BIOS mode (alias CSM alias legacy mode) and get the language selection and then the coloured syslinux menu.

This depends on the computer's boot mode: Cloned Ubuntu live systems can boot in both modes. The boot mode is set in the UEFI-BIOS system, which is activated at an early stage of the boot process, before the bootloader of the operating system.