Bluetooth earphones Jabra Rox Wireless not recognized under Ubuntu 14.04

Here's the steps involved to discover and pair a bluetooth headset:
Case new device never seen to the computer before

Hardware enable Bluetooth or plug in your Bluetooth dongle

Enable Bluetooth from the Bluetooth indicator (which had appeared on the top panel)

Put the headset in pairiging mode

Choose Set Up New Device...

Choose your device from the list of new devices then press Continue
In the unusual case that your headset needs a PIN go to PIN options... first.

Wait until setup was completed:

Case re-paring a known device
In case we had already paired the device before we will not be able to see it on setting up a New Device as shown above. We then have to remove the device first before we can proceed:

Open Bluetooth Settings

Select the device in the list to remove with pressing on - button:

Put your device in pairing mode

Press + to add a new device

Proceed with 5. and 6. above.

Note Due to a yet incomplete Bluetooth integration to pulseaudio/sound-indicator we may have to run pavucontrol  once to be able to select the Bluetooth audio profile there. Switching profiles from A2DP to HFP may not yet work as expected.


Same program, different version, in different locations...how to specify which to use?

I suggest you set the correct executable search path when invoking your program:

export PATH="/myownbing:$PATH"
cufflinks

Or shorter but without altering the environment of the executing shell:

PATH="/myownbing:$PATH" cufflinks


Error while installing Etcher in Ubuntu 20.04

There's an important clue in your output: '/usr/bin/dirmngr': No such file or directory  That means dirmngr is not installed.
From the dirmngr package description:

dirmngr is used for network access by gpg, gpgsm, and dirmngr-client,
among other tools.  Unless this package is installed, the parts of
the GnuPG suite that try to interact with the network will fail.

Install it: Try sudo apt install dirmngr, then try adding that key again.


Dual Boot Ubuntu 12.04 on a Thinkpad T420 but keep recovery partition

Create a partition in Windows 7, say 50GB. Then run the installation CD and make partitions, such as:

/boot 500 MG
/ 15 GB
/home - the rest


what's the default color scheme of pantheon terminal?

From a quick look in the dconf settings for Pantheon Terminal (org.pantheon.terminal.settings):

The background color appears to be #252e32 with opacity 95%, the cursor color appears to be #839496, and the the foreground color appears to be #94a3a5.

For future reference, dconf-editor is a useful package to have.


Ubuntu doesn't appear on network discovery when connected over Ethernet

it seems to me that Samba share isnt installed on your linux box. Neither are the corresponding client dependencies installed of it. Samba (smb) is required in order to share files with windows and other OSes through smb protocol on your private network.

Maybe you are missing the samba client library too, the following post might help there:
https://help.ubuntu.com/community/Samba/SambaClientGuide
or this:
https://goo.gl/mZT0ew


Which JDK version is compatible with Netbeans on Ubuntu?

Open the terminal and type:
sudo apt install openjdk-8-jdk openjdk-11-jdk

Open NetBeans and check in Tools -> Options -> Java -> Nashorn tab that the default Java after where it says Java Platform is the same as the Java version which you want to use in your project.

Apache NetBeans IDE 11.0 snap package
You can add a new Java platform to the Java Platform dropdown menu by clicking the  Manage Platform   button to the right of the Java Platform dropdown menu.
The apt package version of NetBeans in 18.04 is 10.0-3 and the snap package version of NetBeans in all currently supported versions of Ubuntu is 11.0. The version of NetBeans is the same as the Java version it targets, so NetBeans 11 targets Java 11 and NetBeans 12 targets Java 12, etc. Although JDK 8 is no longer maintained by Oracle, the openjdk-8-jdk package is still maintained in Ubuntu 16.04-21.10.
If you tried to run a higher Java version in NetBeans than the NetBeans version, for example Java 14 in NetBeans 12, it would probably run, but there could be unexpected glitches with some of the plugins.


How to sync contacts and the calendar on Ubuntu Touch with OwnCloud

The Ubuntu phone uses the evolution data server and the data can be synchronized using syncevolution.

Open an ssh-connection to your Ubuntu Phone (I'm using the Ubuntu-SDK for this purpose)
Then execute

syncevolution --configure --keyring=no --template webdav username=- password='OCPASSWORD' syncurl="YOURSERVER.COM/owncloud" target-config@owncloud

everything that's written in capitals needs to be replaced with your custom owncloud parameters.
if you are using a self-signed certificate you would download it from the server, save it locally and tell syncevolution where to find it SSLServerCertificates="/home/phablet/YOURCERTIFICATE.crt". You can place this command just after the URL parameter.
if the above doesn't work, you could use this unsecure alternative SSLVerifyServer="0"

Now tell syncevolution the information about the phone

syncevolution --configure --template SyncEvolution_Client sync=none syncURL=local://@owncloud username= password= owncloud

and the specific parameters for the calendar

syncevolution --configure --template webdav database=https://YOURSERVER.COM/owncloud/remote.php/caldav/calendars/OCUSER/personal backend=caldav target-config@owncloud calendar

The database path, can be found in the owncloud web frontend by clicking the chain symbol.
now

syncevolution --configure sync=two-way backend=calendar database=personal owncloud calendar

and finally start the synchronization

syncevolution --sync slow owncloud calendar

For synchronizing the contacts you would just need to add this steps:

syncevolution --configure --template webdav database=https://YOURSERVER.COM/owncloud/remote.php/carddav/addressbooks/OCUSER/contacts backend=carddav target-config@owncloud contacts

you can again get the right path from the web frontend
syncevolution --configure sync=two-way backend=contacts database=personal owncloud contacts

database is the name of the address book on your device
now run

syncevolution --sync slow owncloud contacts


I solved this problem. The culprit is fcitx. How can I know? As you can see in screenshot above (top/htop is the best tool to diagnose), after gedit the most CPU-hugry are xorg (with lightdm), compiz and fcitx. I changed from lightdm to gdm3 with no luck. I skipped compiz as the probability of making lag is small. From previous googling, I ever read that fcitx also causing hang in a case. This probably happens to me, too.

Then, I search Language Support in the dash. When I open it, it asks to update. Then I see it updated my libfcitx. After finish updating, I open my gedit, and, it works normally again!

If you encounter this problem (gEdit slow due to high CPU consumption) you may have either the same or different causes. Just investigate with top/htop, and see what apps causing it. Scan and investigate it one by one, from the highest CPU consumption.  The normal CPU consumption for an app about 5-10% (except chromium and high computation program).


Bug making it difficult to delete themes?

It is either a bug, or you had them also in /usr/share/themes. If you don't have them there, then you should report a bug for sure.


IMHO:

You may just need to wait for AOSP (http://source.android.com/) and Ubuntu Touch (based on AOSP) to support the Samsung Galaxy S3 (i9300).

I would certainly like Ubuntu Touch on my Galaxy S3 Mini (i8190).

Real support is only for the (older) Galaxy-Nexus (maguro) and Nexus-4 (mako) smartphones, and the Nexus-7 (grouper) and Nexus-10 (manta) tablet. It is NOT there yet even for the newer: Nexus-5, Nexus-7 gen2 (aka '2013') or Nexus-10 gen2 (soon to be released).


GNU Octave - question about graphs and plotting

in default mode plot connects all the points with a line. with plot(y3,'.') you just plot the actual points itself. you can choose between different symbols to plot like '*', 'x' and more.

http://www.gnu.org/software/octave/doc/interpreter/Two_002dDimensional-Plots.html#Two_002dDimensional-Plots

If you really need to connect the points, you can split the vector in different subvectors and plot them all separate.

t = [0:1:9];
x = [ones(1,5) -ones(1,5)];

figure(1)
plot(t(1:5),x(1:5),'b',t(6:end),x(6:end),'b')
axis([0 10, -2 2])


Ubuntu 16.04 Network Issue, Server Not Found in Mozilla Firefox, Cannot Connect to Slack either

You probably know more than I do, so take this for what it is worth.
Two days ago, I experienced a similar issue with Ubuntu 16.04. I could print using wi-fi, and Google opened on Firefox but not much else.  I turned off the computer, unplugged it (it's a desktop) and re-plugged it. During the reboot (4.4.0-185-generic) I saw a quick message regarding a "repair". Internet has worked fine since that point. Good luck.


How to get caps/num/scroll lock keys OSD notification?

There is already an application that attempts to do this called indicator-keylock. You need a PPA to install it:

sudo add-apt-repository ppa:tsbarnes/indicator-keylock
sudo apt-get update
sudo apt-get install indicator-keylock
setsid indicator-keylock  # to run it the first time

But I'd be interested to see if there's a neat way to bind onto these lock-toggle events.


Macbook 2,1 - Everything works except wireless!

I imagine you've moved on already, given the lateness of this reply, but I had similar problems with the Atheros drivers when installing Ubuntu 10.04 on my old Mac Mini.  Eventually, my only option was to plug a USB broadcom wireless in.

However, I understand that the Atheros drives have moved on significantly since then and it might be worth trying again.

If you're still wanting this resolved, please post into your question the results of running lspci | grep -i net which will confirm what kind of card you're running for wireless.

Troubleshooting the connection more generally, you could run a terminal window, then issue tail -f /var/log/kern.log, then watch that window as you try to connect wirelessly.  Again, post the results back into your answer so that we can analyse where things are falling down.


After trying to Install Ubuntu Touch on a Nexus 10 the device won't turn on

Can you boot to the bootloader by both volume buttons and power button?

If yes, try boot to recovery by menu in booloader.

If you can go to recovery, then is easy flash original Android ROM.

Or you can post tutorial which you follow at installation?


The cd drive probably doesn't have Linux support.  You can try to install the windows version of the drivers though.


Dell 1390 wireless (BCM4311) Ubuntu 12.04 no wireless icon in unity

My problem appears to be that in a machine with both a BCM43xx wireless and BCM44xx wired connection, the driver for the wired connection requires the generic 'ssb' module, which grabs the resources needed by both, expecting the final drivers to cooperate with it (?).  Unfortunately, broadcom's 'wl' driver (which is the driver I had installed) does not cooperate in the way it expects; only the open-source 'b43' driver is capable of doing this.

This bug seems to be related: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/197558

A workaround of the same general kind as the one proposed in comment #4 of that bug would presumably have worked for me, but simpler was to switch to using the 'b43' driver rather than 'wl'.  To that end, I blacklisted 'wl'.  Once that was done, I added 'b43' to /etc/modules, and the 'b43' driver then loaded automatically at startup, and everything worked smoothly.


How can I stop Nautilus from caching thumbnails?

If you sudo into gconf-editor goto /desktop/gnome/thumbnail_cache and set the maximum_age to 1. The thumbnails will stay around for 1 day as for permanently disabling caching I am not sure.


Your system will honor TTL, which 'caches' the response for some time.  You don't want to ignore these values or mess with these at all.

Many people prefer dnsmasq (I have to assume) because it gives them more control of the DNS responses.  In most scenarios, dnsmasq is set up as a sort of proxy to query other DNS servers for most domains, but allow you to customize or edit certain domains.  bind is a more robust DNS server.

An example would be if you are a developer and (before Google bought .dev TLD) you wanted to set up nic.dev on your computer or LAN such that the domain resolves to an IP instead of erroring that their is no record.

It's great that you are interested in these technologies, but don't mess up your main system playing around, especially if you're not addressing a problem.  Set up a VM or another system and play around with dnsmasq or bind if you have the interest or need.


How to grep for tabs without using literal tabs and why does \t not work?

grep is using regular expressions as defined by POSIX. For whatever reasons POSIX have not defined \t as tab.

You have several alternatives:

tell grep to use the regular expressions as defined by perl (perl has \t as tab):

grep -P "\t" foo.txt

the man page warns that this is an "experimental" feature. at least \t seems to work fine. but more advanced perl regex features may not.
use printf to print a tab character for you:

grep "$(printf '\t')" foo.txt

use the literal tab character:

grep "^V<tab>" foo.txt

that is: type grep ", then press ctrl+v, then press tab, then type " foo.txt. pressing ctrl+v in the terminal causes the next key to be taken verbatim. that means the terminal will insert a tab character instead of triggering some function bound to the tab key.
use the ansi c quoting feature of bash:

grep $'\t' foo.txt

this does not work in all shells.
use awk:

awk '/\t/'

use sed:

sed -n '/\t/p'

See the wikipedia article about regular expressions for an overview of the defined character classes in POSIX and other systems.


What would another Ubuntu user's default font be?

As mentioned by Uri Herrera & Rinzwind:

  That's suppose to happen regardless of the OS, If i send you a
  File/email/whatever, with a specific font and then you open it and you
  don't have the font i used the OS will use the closest matching font
  it can out of your installed fonts

  unless they have set a font that preceeds any other font (all my mails
  show up as courier new

So in most cases, sending the letter with a specific font will be displayed with that same font. In the case of not having that specific font, a similar one will be appointed.


The Ubuntu 16.04 does not support legacy Catalyst drivers. The X server version is higher.

AMD dropped support for Catalyst. You'd better use the open source Radeon driver.


What do sapd, skysapd, sksapd, and ksapd do?

It's a backdoor / DDoS trojan. Check your /etc/crontab and /etc/cron.* files for multiple cronjobs that download and execute those files. (see https://isc.sans.edu/forums/diary//17282)


You can change your password with:

command line

Open a terminal and enter

passwd

graphical

The graphical method is preferred, especially if you have an encrypted home directory.

Open user accounts and change your user password from  there.

Lost password

If you lost your password see How do I reset a lost administrative password?

Still having a problem

If you are still having a problem, please update your question with a better description.


Dual-booting Ubuntu 13.04 with Windows 7. Having problems

What you need to do is create a second partition on your hard drive here are a couple of links to help you out.

http://technet.microsoft.com/en-us/magazine/gg309169.aspx

http://technet.microsoft.com/en-us/magazine/gg309170.aspx

Those should help you create a new partition
It is not actually important that you format the new free space, but make sure you name it something clearly identifiable from your pre-existing windows partition. Whenever you use the cd to install reformat the new partition that has nothing on it to a gnu/linux format ext4 should work without issue. Whenever you get installed you will be able to access your windows files from ubuntu but you won't have access to your ubuntu files from windows. If you need access from windows you would have to use a "fat" format.


Keep header from file1 and add column from file2 to file1

Assuming both File1 and File2 are originally tab delimited, you could do something like this:
$ awk -F'\t' 'NR>3 {x = $0; $0 = (getline < "File2") > 0 ? x FS $2 : x} 1' File1
##header
##header
##header
A1      B1      C1      E1
A2      B2      C2      E2

Checking the return value of getline is good practice - in this case, it would prevent appending the "wrong" $2 in the case that File2 runs out of data before the end of File1.


Dual monitors, screen resolution, xorg.conf.d

Please see the following for my answer to this question on another site:

https://superuser.com/questions/438699/adding-dual-monitor-settings-to-xorg-conf-d/440518#440518


Instead of downloading Steam, open a terminal window (Ctrl + Alt + T) and type:

sudo apt-get remove --purge steam

Press ENTER. Your password will be requested, type it and press ENTER again. This command will remove Steam if it was installed with errors.

Then type:

sudo apt-get install steam

And press ENTER. Wait for the process to end, and steam will be installed on your computer, including all of the needed packages.

Note: I am posting this answer assuming that you downloaded Steam directly from your browser.

EDIT: If everything works, a Steam Launcher should appear in your Desktop. If this does not happen, open a terminal window and type

steam

And then press ENTER.
Also, if you really want to install those packages, remove that :i386. For example, instead of sudo apt-get install libgl1-mesa-dri:i386 use sudo apt-get install libgl1-mesa-dri. Seems that i386 only indicates that you need a 32-bit package.


Launcher and Panel disappeared 14.04 even after running compiz

Please follow the steps below :

Open terminal
To reset Unity and Compiz settings 'dconf reset -f /org/compiz/'
To restart Unity 'setsid unity'
To reset to default icons on Unity launcher 'unity --reset-icons'
Logout or reboot

Hope it helps.


Map is not full screen in Google Earth Pro

Happened to me too, Its a graphics driver problem. It does not work on X.org nouveau graphics driver. More on it here. So you can uninstall the present version 7.3 and install 7.1 version from here.


This seems to be related to ipv6.  It worked for me after I disabled ipv6.  Hopefully somebody else can comment as to why ipv6.  In my case, forwarded X sessions were also slow, in addition to the sshfs misery.

Here's the workaround I used:

echo 'net.ipv6.conf.all.disable_ipv6 = 1' >> /etc/sysctl.conf
sysctl -p

I also added "ipv6.disable=1" to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub and run update-grub, then rebooted.

Finally, if thereafter it doesn't work at all, add "AddressFamily inet" above ListenAddress in the other machine's /etc/ssh/sshd_config and restart sshd.  For some reason, the default addressfamily of "any" doesn't work in that case, even when you specify 0.0.0.0 as a listenaddress.  Granted, the other end is running ssh 5.5.


The way you define the order files are seen from application view are through the different PATH variables.
PATH defines in what order directories are searched for executabels to execute.

LD_LIBRARY_PATH defines directories and order to search for libaries when compiling and linking a program.

CLASSPATH (and --classpath argument that is searched before CLASSPATH variable) defines the order Java class'es are searched.

There might be other PATH variables too, but their stories are the same.

In what order find lists files has no impact on the above mentioned PATH variable.


Replacing text in multiple files with text from a list in order

You can do this with sed in a loop if the lines of list.txt are well-behaved.

  How would I use sed (or something similar) to replace the word
  word1 in every file.txt, with one line from list.txt? Each line
  in list.txt, is only to be used once.

Ubuntu has GNU sed, which makes it easy to replace only the first occurrence of a pattern in a file, then stop. To use separate replacement strings for each input file, you can use a loop. The code below is just complex enough that I suggest making it a script and running the script. There are three major caveats:

The pattern word1--which I presume you may  change to something else--must not contain /, unless you use a different delimiter in the sed command. Nor may it contain characters sed treats specially, such as regular expression metacharacters (\, *, ., and so forth), unless that's what you intend.
The lines in list.txt must not contain / or most special characters either.
Your dir1, dir2, ..., are in /etc and your list.txt is in /root, but I've written my script to assume those directories--and that file--are in the current directory instead. I did this because files stored in those locations are often important, and I assume you will want to test this script--and perhaps make your own modifications--before using it for real. You can change the script to use the locations you gave, or any other locations you need.

I've bolded #2 becuase it's the one I expect might cause you trouble, depending on what list.txt might contain. Now that you've been warned, here's the script:

#!/bin/bash

mapfile -t <list.txt

for ((i=1; i<=${#MAPFILE[@]}; ++i))
do sed -i.bak "0,/word1/ s//${MAPFILE[i-1]}/" "dir$i/file.txt"
done

That's all it takes. In case you're interested, here's how it works:

mapfile is a Bash builtin that reads lines into an array. I use it to read from list.txt. I didn't specify the array's name so the default name of MAPFILE is used.
Bash offers an alternate (C-style) for loop, which is useful when one wants to loop from or to a value obtained by parameter expansion, since brace expansion in Bash won't expand things like {1..$var}. I use it to loop from 1 to the length of the MAPFILE array.
sed -i replaces the original file. You lose the old version unless you provide a backup suffix. You can remove .bak from the command if you don't want to keep the old version but I recommend you consider keeping it. Please at least test with it before removing it.
With GNU sed, 0,/word1/ s//REPLACEMENT/ operates only in the range from the beginning of the file to the first match with word1 (0,/word1/), replacing text matching that same pattern with REPLACEMENT (s//*REPLACEMENT*/). This is to say that it replaces only the first match in the input. The rest of the input is unchanged regardless of whether it would match the pattern.
Bash arrays are indexed starting with 0, but your files are named starting from 1, which is where I decided the loop variable $i should start. Fortunately this is easy to deal with because Bash arrays accept arithmetic expressions as indices. ${MAPFILE[i-1]} expands to element i - 1 (that is, the ith element) of the array of lines from list.txt.

To replace using arbitrary text read from a file, consider alternatives to sed.

If you can't abide caveat #2--that is, the lines in list.txt could be just about anything--then I don't know of a good way to do this with sed. But there are a number of alternatives. Bash can actually do this itself, without any external commands, and I'll show an almost pure-Bash solution. (Perhaps more answers will be posted to show methods using awk or other utilities.)

In sed, a pattern is a regular expressio. But this method treats the pattern as a glob. See also this FOLDOC entry and man 7 glob. Thus special characters including *, ?, [, and ]--and some others like \--have special meanings in word1 (just not usually the same meanings as in sed). If word1 is literally word1 or any other text with no globbing characters, no problem. Otherwise you must modify it accordingly. This method removes caveat #2 but not caveat #1--nor #3, but you can deal with that yourself easily.

#!/bin/bash

pattern='word1' # text to search for
suffix='.bak'   # suffix to append for backup files

mapfile -t <list.txt

for ((i=1; i<=${#MAPFILE[@]}; ++i)); do
    name="dir$i/file.txt"
    mv "$name" "$name$suffix" || exit  # quit with an error if we can't rename

    {
        while read -r; do  # output up to and including the replacement
            case "$REPLY" in
            *"$pattern"*)
                printf '%s\n' "${REPLY/$pattern/${MAPFILE[i-1]}}"
                break ;;
            *)
                printf '%s\n' "$REPLY" ;;
            esac
        done

        while read -r; do  # output the rest
            printf '%s\n' "$REPLY"
        done

    } <"$name$suffix" >"$name"
done

In case you're (still) interested, here's how that works:

As before, I read list.txt into an array. I could also read each file.txt into an array, but for all I know these files could be enormous, so I'm reading them one line at a time with read -r instead.
I move each file aside by renaming it with a .bak suffix with mv. mv is the only external utility this script uses. I haven't bothered to pass -- before the path because, in this case, there's no way the path can start with -. If the move operation fails, mv will output an error and || exit terminates the script, preventing accidental data loss. The only data that should be possible to lose by running this script is data in pre-existing .bak files.
The two loops that read input and write output are grouped together with { }. The whole group has both its input and output redirected to use the .bak file as input and a file named the same as the original as output (<"$name$suffix" >"$name").
Each loop may read many lines, and the only way read -r itself modifies them is to remove the newline characters at the ends (which printf will put back with \n later). In Bash, read -r with no variable name reads a line to $REPLY and doesn't strip leading and trailing whitespace; it is equivalent to IFS= read -r REPLY.
The first loop reads until a line appears consisting of any or no characters (*), followed by word1 ("$pattern"), followed again by any or no characters (*). When it finds such a line it prints it but replaces the part that matches "$pattern" with the ith line from list.txt (${MAPFILE[i-1]}) and then breaks the loop. All the lines before that one are just printed verbatim.
The second loop prints all the remaining lines verbatim.

By using two loops grouped together, I've achieved the same basic logic as the sed way detailed above--text up to, including, but not beyond the first match is processed first so the match is substituted, then subsequent text is not searched at all, just copied. However, unlike in that sed method, special characters in what ${MAPFILE[i-1]} expands to are not treated as part of the command.

For example, observe that a replacement string that tried to cause trouble by closing the inner parameter expansion and injecting additional substitutions would not succeed:

$ s=foobarbaz t=bar u='}$s$s$s'; echo "${s/$t/${u}}"
foo}$s$s$sbaz


How to get GNOME Shell "Applications overview" to show the full name of applications

As a workaround you may use a GNOME shell extension called Applications Overview Tooltip. It

Shows a tooltip over applications icons on applications overview with complete application name and description.

(screenshot source: extension's homepage at extensions.gnome.org)


Installing LiClipse 2.4.0, not launching

I observed a star (*) before file name....it mean you are not saved the file.Please click on save.

sudo -H gedit /usr/share/applications/liclipse.desktop

Change version number

[Desktop Entry]
Version=2.4.0
Name=LiClipse
Comment=IDE for Python/Django developers
Exec=env UBUNTU_MENUPROXY=0 /opt/liclipse/LiClipse
Icon=/opt/liclipse/icon.xpm
Terminal=false
Type=Application
Categories=Utility;Application;Development;IDE

Just know I tested....


Help How to install HD5550 in xubuntu 13.04

It depends if you want the open-source or proprietary drivers, for the latter this site is your best bet: https://help.ubuntu.com/community/BinaryDriverHowto/ATI


That usually means that you mounted the wrong partition when you installed grub. Try following this guide: http://grub.enbug.org/Grub2LiveCdInstallGuide (in case it's still down when you read this here is the google cache: http://webcache.googleusercontent.com/search?q=cache:http://grub.enbug.org/Grub2LiveCdInstallGuide )

I prefer this guide because, among other things, if you mount the wrong partition you will get an error message when you get to the chroot step, so you'll know that something needs to be changed.


Wubi installer stuck on "Downloading ubunt-12.04.2-wubi-amd64.tar.xz"

There is a bug on 12.04.02 64bit. Try using 12.04.01 instead and do an upgrade to get to 12.10.
Also, do not mount the ISO.  There is no need, it will just cause problems...


Finally, I downgrade my gcc and g++ to version 8 or lower, as though nvcc is not compatible with later than gcc version 8


Installing suggested packages only by top-level listed packages rather than dependencies

There are three sorts of dependencies:

Depends. These must be pulled in, and for good reason. You can prevent these by using and apt flag that I won't discuss here because it's dangerous and likely to break whatever you are trying to install.
Recommends. These should be pulled in for a full feature set. In Ubuntu, this is enabled by default. You can turn it off with apt's --no-install-recommends flag or change the apt configuration item APT::Install-Recommends from '1' to '0'. Most users should never need to touch this setting. You can check the current setting with apt-config dump | grep Install-Recommends
Suggests. These can be pulled in under limited circumstances to supplement functionality. In Ubuntu, this is disabled by default. You can turn it on with apt's --install-suggests flag or change the apt configuration item APT::Install-Suggests from '0' to '1'. Most users should never need to touch this setting. You can check the current setting with apt-config dump | grep Install-Suggests

Apt will follow the dependency tree all the way with the same settings. There is no way to change the settings halfway down the tree.

If you want some (but not all) suggested packages, you must list the packages you want. This may complicate your future life: Manually-specified packages are not eligible for autoremove, so you will need to clean up manually, too. Take good notes.


What office suite will be used in 11.04?

Debian and Ubuntu have been using the Go-OO patched version of OOo for quite some time (e.g. the website link for OOo in Software Center points to the Go-OO site), and according to the Go-OO frontpage, Go-OO will be discontinued now that there is The Document Foundation / LibreOffice:

  Go-oo joins forces with LibreOffice

  Go-oo shares much of its goals and philosophy with The Document
  Foundation's LibreOffice project, we're therefore supporting LibreOffice
  since it's inception, and are in the process of merging most of our patches
  over, as well as migrating to Document Foundation infrastructure. Going
  forward, the Go-oo project will be discontinued in favor of LibreOffice.

Currently LibreOffice is upstream OOo (= Oracle) + Go-OO patches (mostly Novell) + some other various patches.

So if LibreOffice 3.3 is released in time for Natty, I guess there would be no point in releasing anything else—releasing standard OOo without those patches would result in a serious loss of functionality.  (Of course, if Oracle agrees with that, it could still be named OpenOffice.org like now, but I somehow doubt that will happen...)


Brightness control does not work in Ubuntu 13.04 on Sony Vaio

Follow the following steps and your brightness key will start working:

sudo -H gedit /etc/default/grub

Change

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

To:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor"

Run:

sudo update-grub

Restart your system.


How to remove a browser malware in google chrome Ubuntu 14.04

I hit the reset button and its gone now, not pretty sure if it really wiped out from my system, but its not prompting anymore.

This option is under Settings -> Show advanced settings...


The Ubuntu Touch Simple UI aplication template helps you create the basics of an application that uses the Ubuntu SDK and has the native look and feel of Ubuntu and can integrate with the rest of the platform. It is the recommended way to start writing your first apps in Ubuntu, and you'll be using the QML programming language.

The Qt GUI application, will create a basic app using Qt only, but it will not use the Ubuntu SDK (unless you manually add it later). The app will be based on the Qt foundations and C++. It's not the recommended way to get started, but the app you create will run fine in Ubuntu, although it might not have the native look and feel of other Ubuntu apps.

And yes, while we recommend and encourage using the Ubuntu SDK, our community will welcome almost any kind of app and contributions you make to Ubuntu! :)


Yeah I think you're going to need to get forensic here. It sounds like the drive is toast. There are a variety of tools available for this sort of stuff but before you start, given that the drive has likely already suffered some physical damage, do a full disk backup right now.

sudo apt-get install gddrescue
sudo ddrescue -n /dev/sdb diskbackup logfile
sudo ddrescue -d -r3 /dev/sdb diskbackup logfile

Then we need something like foremost or photorec to analyse and extract what it thinks are files.

# gets everything
sudo foremost -i diskbackup -o ~/recovery/

# gets .jpg files:
sudo foremost -i diskbackup -o ~/recovery/ -t jpg

Other options for -t include: jpg, gif, png, bmp, avi, exe, mpg, wav, riff, wmv, mov, pdf, ole, doc, zip, rar, htm and cpp.


Network Manager always starts disconnected

Note to self: make sure that the router is also set to reserve the static IP address.  Once I updated the router (which I had forgotten to do), everything worked like a charm.


Specify starting number when renaming multiple files

You can use Thunar Bulk Rename utility from Ubuntu Software. It supports a lot of bulk rename options including the one you mentioned.


Alternative characters key doesn't work after restarting Ubuntu 14.04

Here I found solution, which works for me.

Type in console ibus-setup, and then make sure, that you have following settings:

To avoid different problems with switching beetwen Polish and English, I removed English from list.

Proof: u mnie działa świetnie :)


Ubuntu Install on external drive without touching the internal one

When installing Ubuntu to the external drive, using the something else option, you need to ensure that you select the correct device for bootloader / grub installation.

Usually Sda is your internal drive and your USB drive will be Sdb if you have no other USB devices connected.

This way the internal hard drive / windows bootloader will not be modified in anyway.

Have a look at my answer on How to Install Ubuntu To USB Drives, it has all the details and should help you.

Below is an image, showing the 'bootloader installation' menu highlighted in red at the bottom.

Image Source : help.ubuntu.com/community/Grub2/Installing.


How to NOT show keyboard layout chooser popup when changing language in GNOME 3

It is possible by querying gnome-shell via its JS interface with gdbus call (src).

The following script will alternate between two configured input sources.  Easy to modify if you have more.

#!/usr/bin/env bash

cur_idx=$(
        gdbus call \
                --session \
                --dest org.gnome.Shell \
                --object-path /org/gnome/Shell \
                --method org.gnome.Shell.Eval \
                "imports
                        .ui.status
                        .keyboard
                        .getInputSourceManager()
                        .currentSource
                        .index" |
        cut -d"'" -f2
)

next_idx=$(( 1 - $cur_idx ))

gdbus call \
        --session \
        --dest org.gnome.Shell \
        --object-path /org/gnome/Shell \
        --method org.gnome.Shell.Eval \
        "imports
                .ui
                .status
                .keyboard
                .getInputSourceManager()
                .inputSources[$next_idx]
                .activate()" \
        &> /dev/null

Make it executable with chmod a+x </path/to/script> and you may then bind it to a  custom shortcut key:

Open Settings -> Devices -> Keyboard and click the '+' choice-button at the bottom to assign the script to some shortcut

(For Gnome < 3.x: Settings -> Devices -> Keyboard -> Custom Shortcuts).


Ubuntu with Linux 3.5.0-45-generic won't boot. Earlier version will, but wrong resolution

I ran into the same problem today, with exactly the same symptoms. It turned out to be an nvidia version conflict. I managed to solve it by following these instructions: Ubuntu 12.04 LTS - Black Screen at boot After changing Nvidia Driver

First of all, check for an nvidia error message:

grep NVRM /var/log/kern.log

I saw this:

  API mismatch: the client has the version 304.116, but this kernel module has the version 173.14.39. Please make sure that this kernel module and all NVIDIA driver components have the same version.

Get a list of installed versions:

dkms status

In my case, this returned:

nvidia-173, 173.14.39, 3.5.0-45-generic, i686: installed
nvidia-304, 304.116, 3.5.0-45-generic, i686: installed

Remove the oldest version:

sudo apt-get purge nvidia-173 nvidia-173-updates

Reboot, and everything should be back to normal.


Try with adding the is not going to be installed packages to the main installation list:

sudo apt-get install apache2.2-bin apache2.2-common


Multiple Monitors while running Ubuntu on VM Ware, with Windows Host

It looks like this is an issue with Ubuntu 16.04 in particular. I switched to 14.04 and dual monitor now works.


Files on inaccessible ubuntu partition on a windows dual boot

Avoid Access Permission Error

I would suggest you run nautilus (file explorer) as root so that you can move the files no matter who is the owner and their permissions.

Instructions

While at the desktop press Alt+F2.
Then enter the next command: gksu nautilus
If a prompt for password comes just leave it empty and press Enter. Else continue to step 4.
Now a new window for nautilus should open as root user which has permission to read, write and execute anything.
Go to your folder (user folder are under /home/username/) and copy your files to your windows partition.

Recomendation

If you plan to do a fresh install of ubuntu try to make a separate partition for the /home/ directory so that you can leave your information separated from the OS in case you need to do a fresh install again at some point.

I know that tinkering as a novice can lead to problems but is the best way to learn. So congrats on messing up.


What should I do for change connection from other network computer mysql to my computer mysql?

You've two machines:

A: the machine on which Apache resides. IP address 10.0.0.2
M: the machine with the MySQL database. IP address 10.0.0.3

In a default MySQL installation, MySQL listens on all interfaces and thus, other machines can reach it on it's public (network) IP address on port 3306 (default port or MySQL).

To allow A to connect with M, a MySQL account should be present on M allowing accountname@10.0.0.2 to connect with MySQL (user = accountname). In your webapp on A, use hostname 10.0.0.3, username accountname and a password as set for accountname@10.0.0.2.

If there is a firewall on M, be sure to allow incoming connections to TCP port 3306 on M.

Assuming your webapp uses PHP as language, replace something like:

$oCon = new MySQLi('localhost', 'accountname', 'password', 'database');

by:

$oCon = new MySQLi('10.0.0.3', 'accountname', 'password', 'database');


How to configure password requirement for shutdown from unity

You can use Polkit rules to control the GUI shutdown privileges (the shutdown command isn't affected, and needs root as usual). A set of rules like in this answer should do. Create a .pkla file in /etc/polkit-1/localauthority/50-local.d/ (say 00-disable-shutdown.pkla):

[Disable Shutdown, etc. for all users]
Identity=unix-user:*
Action=org.freedesktop.login1.reboot;org.freedesktop.login1.reboot-multiple-sessions;org.freedesktop.login1.power-off;org.freedesktop.login1.power-off-multiple-sessions;org.freedesktop.login1.suspend;org.freedesktop.login1.suspend-multiple-sessions;org.freedesktop.login1.hibernate;org.freedesktop.login1.hibernate-multiple-sessions
ResultAny=auth_admin

The auth_admin policy will require that an administrative user (by default, members of the sudo group) authorize it.


Is there an easy to use, simple FTP server for Ubuntu server

I have used the following link to setup VSFTP few months back you can give it a try. The link is here


Will installing Ubuntu using Wubi have any performance disadvantage compared to a full installation?

Ubuntu will be faster if it is installed on the hard disk as a seperate os rather than from wubi also you need not delete win7 you can dual boot your pc until, atleast, you become comfortable with linux


Looking for a super-low-power any-arch DIY Squeezebox reciever

Given we're getting closer and closer to the release date, I thought it time I had better post this as a proper answer, as I can't see how I'm not going to buy a plethora of these. I will update when I can see how it performs.
Raspberry Pi
Onboard sound (of unknown quality), USB, low power and most importantly I could get away with the $25 version when that comes out.

I suspect the Raspberry Pi is going to revolutionise several [geeky] aspects of my life.


It looks like you're specifying the x86_64 architecture but that is not a valid architecture name. Do this instead:

# landscape-api create-series --pockets release,updates --components main,extras,restricted --architectures i386,amd64 --gpg-key secret-key --mirror-uri http://us.archive.ubuntu.com/ubuntu/ --mirror-series xenial xenial lala-ubuntu

This should work better. Also, consider adding the security pocket if you care for security updates (--pockets release,security,updates).


How do I install a minimal Ubuntu - no desktop needed?

Use the Ubuntu minimal CD to install a base system.

It will contain the Linux kernel, basic Linux tools and the Debian APT system to install any other packages you might need manually.

The downloaded ISO for 11.10 is 23MB and after install (on my system) occupied around 600MB (rest of packages to install the system are downloaded via a network connection).

You will be able to choose the packages you want during the installation or after your reboot your system you can install anything individually with apt-get or by choosing packages by typing sudo tasksel.


I would suggest to enable cron logging and see what exactly is happening. Googling finds the following instructions on enabling cron logging:

  edit /etc/rsyslog.d/50-default.conf (uncomment the line starting with #cron.* - remove the # )

  restart cron - sudo service rsyslog restart

I think the most likely cause of the problem is permissions although I don't see anything suspicious in your crontab


Work-around:
You can use the Pathological Eclectic Rubbish Lister:
perl -pe 's/../../g' file

or inline replace:
perl -pie 's/../../g' file

This works for the cases where I use sed. If things get more complicated I write a small python script.
BTW, I switched to No Shell-Scripting


Scanning from HP PhotoSmart C4580 - what is SANE?

I still can't claim to understand exactly what SANE is, other than some kind of driver. But you can find a list of compatible GUI apps at The SANE Project website.


12.10 x64 - RTL8188CE - Intermittent/Slow Internet Connection

Putting this into /etc/modprobe.d/rtl8192.conf

options rtl8192ce ips=0 fwlps=0 debug=2

then restart, fixed it for me.


PlayOnLinux cannot find wine (from Wine)

you need to install wine & to do so ,open your terminal and type as

sudo apt-get install wine

thats it.


Windows executables are started with archive manager

Right-click, select Properties, open the "Open With" tab, and make Wine the default application for EXE files.


Ubuntu 18.04 - The following packages have been kept back

My first question is, have you rebooted the system to ensure any previous updates (that require OS to be logged out) have been applied?

Second, have you tried this command?

sudo apt-get dist-upgrade -y

In my experience, all updates will apply to a newly built system over a day or 2 but you can try to force it.


How does the system admin gets the ethernet address of computers in the network?

the command nmap is useful to quickly scan networks.

To install nmap,

sudo apt-get install nmap.

Once it is installed, run the command

 nmap -sP 10.10.1.0/24

Replace 10.1.1.0 with yours

Another solution

the command arp will show you a list of the IP's in your network plus the MAC addresses associated with.

run the comamnd arp results

Address                  HWtype  HWaddress           Flags Mask            Iface
10.10.1.11               ether   00:04:ff:ff:ff:d0   C                     eth0
10.10.1.16               ether   00:04:ff:ff:ff:a6   C                     eth0
10.10.1.29               ether   00:04:ff:ff:ff:c9   C                     eth0


I had a similar problem for some of my music. The solution was simple: make sure the music tags are properly used in the mp3 files. Now the phone recognizes all my music nicely.


How can I update ubuntu from 32bit to 64bit?

You cannot do it in simple way. What I would do is to save the content of /home and the /etc, afterwards make a list of installed packages with:

dpkg --get-selections > ~/Package.list
sudo cp -R /etc/apt/sources.list* ~/
sudo apt-key exportall > ~/Repo.keys

After that save somewhere the created files, and reinstall your Ubuntu choosing the 64bit version. When finished with basic install, copy back the /home and /etc, and restore the packages you had before with:

sudo apt-key add ~/Repo.keys
sudo cp -R ~/sources.list* /etc/apt/
sudo apt-get update
sudo apt-get install dselect
sudo dpkg --set-selections < ~/Package.list
sudo apt-get dselect-upgrade -y

Ofcourse adjust the paths of your backed up files.


I am not the owner and all options are greyed out.

When you do this you are a USER.

  However when I check system information it says that I am the Administrator.

This is unrelated to your 1st problem: you are BOTH the administrator AND a user.

So the answer is: you need to change the permissions of the drive as an administrator for your user to gain access. That those 2 are the same actual person is a coincedence ;)

Command line:

sudo chown -r $USER:$USER {/mountpoint}

You need to change the {/mountpoint}  to your specific situation. A mountpoint can be an USB and than it could be /media/ubs-stick/. If it is a harddisc it might be mounted in the root system. I have a /discworld in my system.

New user warning: Before issueing the command have someone confirm you are doing it correctly. You will mess up your file if you put "/" or "/etc/" as a mountpoint ;)


How to get rid of more than one million ghostfiles?

If you want to remove all those mini files, I might suggest running these two commands:

cd /
rm -r 6jF8vak8\ H

(if "/6jF8vak8 H" is the directory hosting all those files like you mention in the comment.)

If this command fails, it might be because you lack permission to write to that directory, in which case you would need to use sudo - which is potentially dangerous in the root directory.

Use extreme caution and double-check your spacing. In fact, I would recommend typing in the terminal "rm -r 6jF" (or whatever the first few characters are) and hitting tab, which should auto-complete the directory. If it doesn't auto-complete (and you are in the root directory), don't run the command. Using this method will ensure that you don't accidentally run rm -r on the root directory itself.

Other warnings:

I have no idea what effect removing those files will have on bleachbit.
Running this command on a million files will probably take a significant amount of time.


What does lib folder contain in my ubuntu 16.04 ec2 instance?

Package: linux-image-4.4.0-36-generic (4.4.0-36.55) [security]
Linux kernel image for version 4.4.0 on 64 bit x86 SMP

So if these files are taking too much space. Just a simple sudo apt-get autoremove should remove these unnecessary files.

Now to answer the question are these files important? I don't think so. They are image files, probably for purpose of some sort of restoration. Some ubuntu expert can throw more light on them, these packages don't have much detail about them on their page


Advanced File Copy & Move Utility for Ubuntu

You can try Ultra Copier. which is based on QT and provide advance features.(Under GPL3)

Install by (available on universe repository for Ubuntu 14.04):

sudo apt-get install ultracopier


How to change Nginx firewall status to “active”

You need to run

sudo ufw enable

to enable the firewall.

You can get further help on ufw on help.ubuntu.com and man ufw.

Example

$ sudo ufw enable
Firewall is active and enabled on system startup
$ sudo ufw status
Status: active

To                         Action      From
--                         ------      ----
22/tcp                     ALLOW       Anywhere
22/tcp (v6)                ALLOW       Anywhere (v6)

$ sudo ufw disable
Firewall stopped and disabled on system startup
$ sudo ufw status
Status: inactive


After doing a normal configuration of just eth0, I came back around and added config for eth1. With just eth0 up, the route table was:

# ip route show
192.168.0.96/27 dev eth0 proto kernel scope link src 192.168.0.126
default via 192.168.0.97 dev eth0 metric 100

But once I brought up eth1, the order of the default route statements determined which interface was always used. As shown below, it happens to choose the eth1 route to the 192.168.1.65 gateway.

# ip route show
192.168.0.96/27 dev eth0 proto kernel scope link src 192.168.0.126
192.168.1.64/27 dev eth1 proto kernel scope link src 192.168.1.93
default via 192.168.1.65 dev eth1 metric 100
default via 192.168.0.97 dev eth0 metric 100

only one gateway statement

The first problem can be the extra 'via 192.168.1.65' default route. It appears there if the eth1 definition in /etc/network/interfaces has a "gateway 192.168.1.65" statement. So remove any extra gateway statement, and bounce the interface:

# ifdown eth1
# ifup eth1
# ip route show
192.168.0.96/27 dev eth0 proto kernel scope link src 192.168.0.126
192.168.1.64/27 dev eth1 proto kernel scope link src 192.168.1.93
default via 192.168.0.97 dev eth0 metric 100

setup new routing table

Create a new, seperate routing table containing a default route appropriate for all traffic flowing out of eth1. The table number here is not important; 101 is simply not the main routing table. Do this with a 'post-up' command on the eth1 configuration in /etc/network/interfaces. Add only one post-up on eth1; Do not add it to any of the eth1: sub-interfaces.

post-up ip route add default via 192.168.1.65 dev eth1 table 101

Bounce eth1. The main routing table is unchanged, and table 101 will contain the via 192.168.1.65 default route if eth1 is up.

# ifdown eth1
# ip route show
192.168.0.96/27 dev eth0 proto kernel scope link src 192.168.0.126
default via 192.168.0.97 dev eth0 metric 100

# ip route show table 101   (ie, table is empty, no output)
# ifup eth1
# ip route show
192.168.0.96/27 dev eth0 proto kernel scope link src 192.168.0.126
192.168.1.64/27 dev eth1 proto kernel scope link src 192.168.1.93
default via 192.168.0.97 dev eth0 metric 100

# ip route show table 101
default via 192.168.1.65 dev eth1

new routing rule

Add a routing rule to use table 101 to select a default route for packets which should go out eth1.

# ip rule add from 192.168.1.64/27 lookup 101
# ip rule show
0:     from all lookup local
32765: from 192.168.1.64/27 lookup 101
32766: from all lookup main
32767: from all lookup default

Add the rule to the /etc/network/interfaces file as well:

post-up ip rule add from 192.168.1.64/27 lookup 101

Now make sure to add cleanup to remove the route and rule when the interface goes down:

post-down ip rule del from 192.168.1.64/27
post-down ip route del default via 192.168.1.65 table 101

[EDIT for ubuntu 16.04+]
Like indicated here and from test I've made from this help, ip route2 have changed his structure of commands.
For making work you will have to adapt just a bit to do in the order how the man ip points.

up ip route add default table 101 dev eth1 via 192.168.1.65
up ip rule add from 192.168.1.64/27 lookup 101
down ip rule del from 192.168.1.64/27
down ip route del default table 101 via 192.168.1.65

Or you will end up after a ifdown - ifup command with a error message @ifdown command(standard message to say that the peripherals is not correctly configured), and @ifup the absence of a route in table 101.


After experimenting a lot this seems to be the solution:

sudo setfacl -m u:user:- /dev/snd/pcmC0D0c

On my computer, /dev/snd/pcmC0D0c is the microphone. Blocking write access for a specific user seems to forbid capturing.
With the above command, I reduce the rights for the user "user" to --- (check with getfacl /dev/snd/pcmC0D0c), which does not allow for capturing sound.

Hint: for finding microphones in /dev/snd/ the c for capturing at the end of the name may be an indicator.

NOTE: As all changes made to /dev/ will be lost at reboot, as these files are placed in RAM, you would have to additionally add the above command (without sudo as /etc/rc.local is executed with root rights at boot) to /etc/rc.local before the "exit 0" line.


How to import contacts from OS X address book to Thunderbird in Ubuntu?

You can use the Address Book Exporter 2.1.2 to export from the Mac OS X address book into a ".txt" file and then import into Thunderbird. Make sure to use the Yahoo option. This method is still not perfect but you can get it to work after a little bit of cut & pasting.

See this MozillaZine article for more information


Import Windows DHCP leases into a Linux DHCP Server

I can only speak to question 3, IP address from MAC:
Yes, you can do it that way. You would do it in your dhcpd.conf file. Those declarations should be outside of your generic DHCP IP address pool and before them. Example:
ddns-update-style none;

# option definitions common to all supported networks...

default-lease-time 86400;
max-lease-time 93000;
option domain-name "smythies.com";
# option domain-name-servers 192.168.111.1, 75.154.133.68, 75.154.133.100;
option domain-name-servers 192.168.111.1;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.111.255;
option routers 192.168.111.1;

# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;

# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;

# Some specifically declared static IP addresses

host Wireless-R {
  hardware ethernet 00:22:6B:82:01:55;
  fixed-address 192.168.111.57;
}

host dwifi {
  hardware ethernet f4:8c:eb:c8:08:a0;
  fixed-address 192.168.111.58;
}

host Doug-XPS {
  hardware ethernet 00:23:4d:a6:ed:c4;
  fixed-address 192.168.111.100;
}

host Doug-XPS2 {
  hardware ethernet 00:21:9B:F9:21:26;
  fixed-address 192.168.111.101;
}

host S10 {
  hardware ethernet A0:F3:C1:10:22:EA;
  fixed-address 192.168.111.102;
}

host cyd-hp {
  hardware ethernet 70:1a:04:82:90:6f;
  fixed-address 192.168.111.103;
}

...

host serv-ff {
  hardware ethernet 52:54:00:27:1b:4e;
  fixed-address 192.168.111.217;
}

# The Basic DHCP allocated addresses

subnet 192.168.111.0 netmask 255.255.255.0 {
  range 192.168.111.3 192.168.111.50;
}

Note that addresses given out based on MAC will not appear in your dhcpd.leases file.


If I upgrade from Ubuntu 12.10 to 13.04, and then to 13.10 and so... Will I have any problem?

You may need to update some of your applications, too, as well as most PPAs you've installed, but in general you should not run into problems.  I followed such a sequence myself and found that it worked quite well.  (In fact, one of my systems has been updated with each new Ubuntu release starting with 11.04, and it is very solid and reliable.)

Of course, as with any such endeavor, you should make sure your system is backed-up.

Buena suerte.  Yo era misionero en la Argentina durante los setenta, y todavia amo al pais.


Wireless LAN not working on Lenovo Ideapad S205

deep in a bug report I found a solution that worked for me. https://bugs.launchpad.net/ubuntu/+s...ux/+bug/875659

"At least for the IdeaPad S205 model 1038 there is a quite weird workaround:

After installation there is a mysterious "ubuntu" entry in the boot order that must not be at the top. So go to your "BIOS" with F2 and change the boot order so the hardisk comes before "ubuntu" entry. Seems like a buggy EFI/BIOS implementation.

Kudos goes to the german guys at http://forum.ubuntuusers.de/topic/wlan-karte-ralink-rt3090-lenovo-ideapad-s205-l/"


dual boot windows 8 and ubuntu in acer aspire e1-572

See:

Ubuntu's wiki on UEFI issues.
My page on installing Linux on EFI-based computers.

If neither of these helps, you'll need to post more details. Most importantly, what's your Windows boot mode? (I'm assuming EFI because you're using Windows 8, but that's not really a 100% safe assumption. If you're not booting Windows in EFI mode, you should also ignore my first two links.) Also, describe how it's failing in more detail -- how far can you get, what (if any) error messages do you see, etc. Unfortunately, "it halts" describes dozens, if not hundreds, of problems, each with its own solution.


Why "df -h " does not show the root mount, but multiple repetitive entries?

I do not know the ultimate source of the problem, something in the upstart scripts and running in openvz.

I do not think it is causing any problem and is safe to ignore.

If you wish, pastebin your /ect/init/openvz.conf and I will review it.

You can try commenting out these lines:

mount -t tmpfs varrun /var/run
mount -t tmpfs varlock /var/lock

BUT I would not do that if you do not have access to the VPS from the host as if your change prevents it from booting, you will have a useless VPS.

There is a discussion of this exact behavior on the OpenVZ Forums , but without any conclusion.


changing device with v4l2-ctl is not working

Ok I made it...
In a single line:

raoul@raoul-EasyNote-LS11HR:~$ v4l2-ctl -d /dev/video1 -i 2
Video input set to 2 (s-video: ok)
raoul@raoul-EasyNote-LS11HR:~$ cat /dev/video1>test.mpg

although I do not quite understand what difference it makes from the input I previously posted... it would seem that one needs to define the input type at the same time as the device switch.


try those 2 answer
It seems that you mistakenly deleted the Python library package of the core Ubuntu driver. Try to reinstall the ubuntu-drivers-common package
https://t.codebug.vip/questions-1621597.htm
and
https://ubuntu.buildwebhost.com/tw/q/88605


For each file in a directory, pass it as an argument to an image viewer

Open one after the other:
(To stop, switch to terminal and press Ctrl+c)

for f in *.dcm; do dicomscope "$f"; done

Open all together (will only work, if dicomscope allows simultaneous instances):
(Maybe try first with fewer files)

for f in *.dcm; do dicomscope "$f" & done


Will I loose my Windows Vista data by doing a full install of Lubuntu (LTS) 18.04.4?

No, you will not loose your data but it's recommended to back up your data in case something went wrong and to follow the the instruction set up your computer in order to dual boot , you will be able to have 2 systems in your machine
dual boot , Happy linux experience :)


This is currently being tracked as a problem with RGBA anti-aliasing.

It can be resolved by changing the aliasing value from RBGA to grayscale.

Use MyUnity (available in the software-center)

Alternatively, you can similarly use ubuntu-tweak which you need to install from the authors PPA.


To install Zerodha Pi you need,

Microsoft .NET Framework 4(x86 and x64)
Microsoft Visual C++ 2008 Runtime Libraries(x86)
Microsoft Visual C++ 2010 Runtime Libraries(x86)

Step 1 :

First of all Install wine and winetricks.

wine : using ppa for latest version.

sudo apt-add-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.7

winetricks :

sudo apt-get install winetricks

Step 2 :

Most of the Windows apps work on 32 Bit. So you have to create a 32 Bit wineprefix by following commands,

rm -fr ~/.wine
export WINEARCH="win32"
export WINEPREFIX=~/.wine/

Now you can install Microsoft .NET Framework 4.0 using winetricks as,

winetricks dotnet40

Step 3:

I suppose you have already downloaded Zerodha Pi from  Zerodha q-back office with the activation key. Extract pi.zip in the Downloads directory and you will get a directory pi. There you can find Pi_setup.exe. Run the following command to install it,

wine ~/Downloads/pi/Pi_setup.exe

Before installing Pi you can see the system would install Microsoft Visual C++ 2008 and Microsoft Visual C++ 2010.

At last step Pi will be installed and a desktop icon will be created.  Just Log in with your credentials, answer those two security questions. Then Pi will ask for the activation key. Just put it to activate. Happy Trading.

For more information please look at,

Running .Net 4.0 application with Wine
How to install and configure Wine?


How to remove Nvidia HDMI audio output in PulseAudio?

in 18.10 i was able to fix it

file /etc/modprobe.d/blacklist.conf
add

blacklist snd_hda_codec_hdmi


You can use the xrandr command.

xrandr --output HDMI-1 --mode 1366x768 --right-of DP-1

You can adjust the command according to your monitor resolution or your desired disposition.


Is it there a way to stop kalarm error messages from appearing?

You can disable errors on pre-alarm scripts in the Special Actions button, where you edit the alarm. Unfortunately, I don't see a good way of doing it for simple terminal scripts.

What you might want to do is just modify the scripts you have running to check whether the Internet is up or not. See this StackOverflow question for checking the status of an Internet connection from Bash.


Open vlc from a terminal with vlc -Iqt4, then open Tools > Preferences & set back to Native or pick a skin that actually works


Ubuntu hangs on purple screen after external HD install

At the GRUB loader, go to the Ubuntu entry and type 'e'. Then, remove the words: 'quiet splash vt_handoff=7' and replace with 'noquiet nosplash'. This should show you the kernel loading, so you can see where it freezes.


Unity 14.04 - left click to raise window with focus-follows-mouse

Try this command:

gsettings set org.gnome.desktop.wm.preferences raise-on-click

There is a litany of configuration tools in system settings, unity-tweak-tool, gnome-tweak-tool, and dconf-editor.  Not knocking Canonical, it's certainly a hard problem.  Rule of thumb, if you can't find it, it's probably buried somewhere in dconf-editor.


sudo apt-get update
sudo apt-get upgrade

Or just refresh update manager.

It's part of the normal release system (v8 is in both ubuntu-updates and ubuntu-security) so you should get it. If you're still not getting it, there's likely a problem with your updates in general.

Running sudo apt-get update manually in a terminal should display any errors.


Ubuntu 16.04LTS extended display not working - 2 cards

sudo nvidia-xconfig

Change the settings for each of the monitors there (on the first tab you see) and make each of them active as they currently may not be.  But you should also adjust the specific settings you wish for each one individually in the settings for each just below "PowerMizer".


Specify encryption cipher to use during install?

The default cipher is aes-xts-plain64 with 256-bit key and SHA-1 checksums. This is a good default. A very good default. Unless you are a qualified cryptographer you should leave it as is. Knowledgeable people have chosen this default after spending a lot of time and effort.

To find out what cipher is used for your encrypted container you can use the command sudo cryptsetup status and sudo cryptsetup luksDump. For example:

$ sudo lsblk
NAME                  MAJ:MIN RM  SIZE RO TYPE  MOUNTPOINT
sda                     8:0    0   40G  0 disk
├─sda1                  8:1    0  284M  0 part  /boot
└─sda2                  8:2    0 39.7G  0 part
  └─Machinia          252:0    0 39.7G  0 crypt
    ├─Machinia-Swap   252:1    0  1.2G  0 lvm   [SWAP]
    ├─Machinia-Home   252:2    0  9.5G  0 lvm   /home
    ├─Machinia-System 252:3    0   20G  0 lvm   /
    └─Machinia-Srv    252:4    0    6G  0 lvm   /srv
sr0                    11:0    1 1024M  0 rom

$ sudo cryptsetup status Machinia
/dev/mapper/Machinia is active and is in use.
  type:    LUKS1
  cipher:  aes-xts-plain64
  keysize: 256 bits
  device:  /dev/sda2
  offset:  4096 sectors
  size:    83298304 sectors
  mode:    read/write
  flags:   discards

$ sudo cryptsetup luksDump /dev/sda2
LUKS header information for /dev/sda2

Version:        1
Cipher name:    aes
Cipher mode:    xts-plain64
Hash spec:      sha1
Payload offset: 4096
...

Those being said, it you absolutely want to specify another cipher, you can. The basic process is well described by the good folks at ArchLinux in Encrypting an entire system. Do it as follows:

Boot from the installation medium.
Choose "Try Ubuntu".
Open a terminal.
Using fdisk, parted or the graphical Gparted, create your /boot partition manually. (This assumes that you are using an MBR-partitioned disk. If you are using a GPT-formatted disk, you must also create an EFI System partition.)
Create your partition to be encrypted manually. Let's say that this is /dev/sda2.
Format it as a LUKS container. This is where you specify the cipher:

sudo cryptsetup luksFormat /dev/sda2 --cipher=<cipherspec> --keysize=<size>

For example,

sudo crypsetup luksFormat /dev/sda2 --cipher=aes-cbc-essiv:sha256 --keysize=512

Let me repeat that unless you have professional cryptographic knowledge you shouldn't do this. But let's continue.
Open your encrypted partition and give it a container name:

sudo cryptsetup luksOpen /dev/sda2 <name>

For a "pet" computer system, a good choice is to use the host name with an initial capital. For example, if you plan to use the host name machinia,

sudo cryptsetup luksOpen /dev/sda2 Machinia

Format /dev/mapper/Machinia (or whatever name you chose at step 7) as a LVM physical volume:

sudo pvcreate /dev/mapper/Machinia # Use the name chosen in step 7

Create a LVM volume group on the physical volume:

sudo vgcreate Machinia /dev/mapper/Machinia # Use the name chosen in step 7

Create logical volumes for /, /home, /srv, /var, swap etc. in the LVM volume group. You must create at least one logical volume for /. A separate volume for /home is optional but recommended. Creating separate volumes for /var, swap and so on is optional and depends on your plans.

sudo lvcreate -L 20g -n System Machinia # /
sudo lvcreate -L 3g  -n Swap   Machinia # swap
sudo lvcreate -L 10g -n Home   Machinia # /home

You may want to leave some space unallocated, in order to be able to use LVM snapshots. Your choice.
Now run the installer and install Ubuntu choosing "Something else" and selecting /dev/sda1 (or whatever) for /boot, /dev/mapper/Machinia-System (using your chosen names, of course) for /, /dev/mapper/Machinia-Swap for swap space, /dev/mapper/Machinia-Home for /home.

Use the partition made in step 4 for /boot, and the logical volumes created in step 10 for /, swap, /home etc.

If you are using an MBR-partitioned disk double-check and make sure that GRUB is to be installed on the physical disk, /dev/sda (or whatever is right for your system.)
Let the installer proceed to the end. When it finishes, choose "Continue testing" and go back to your terminal.
Mount your future root volume on /target, mount special directories, then chroot into /target:

sudo mount /dev/mapper/Machinia-System /target
for d in dev proc run sys; do sudo mount --bind /$d /target/$d; done
chroot /target

You are now root in your future root volume. Go to /etc and edit /etc/crypttab:

cd /etc
echo Machinia UUID=$(cryptsetup luksUUID /dev/sda2) none luks,discard >crypttab

/etc/crypttab should look like this:

# cat /etc/crypttab
Machinia UUID=016193a0-8a79-416c-95f3-c94bd3745c5c none luks,discard

(With your chosen name instead of Machinia, and the UUID returned by cryptsetup luksUUID.)
Update the initial root file system and GRUB:

update-initramfs
update-grub

Exit from the chroot:

exit

Unmount what you mounted in step 13:

for d in dev proc run sys; do sudo umount /target/$d; done
umount /target

Reboot and hope for the best.


Why does Matlab iso image get mounted as read-only?

ISO 9660 is a read-only file system, because it was designed for read-only media (CD-ROMs). This shouldn't pose a problem for installation though, because during installation the installation medium is only read and not written to.

Mount the image read-only to a folder (e.g. /mnt), open a terminal and change the working directory to that folder, then start the installation program. Everything should be fine.


Ubuntu 20.04 Raspberry Pi 4 B USB Boot Implementation

Compiled from source code U-Boot 2020.10-rc4-00027-g4dcced1169
(https://gitlab.denx.de/u-boot/u-boot)
successfully boots from USB mass storage device.
Also it supports Raspberry Pi 4B built-in Ethernet.
U-Boot 2020.10-rc4-00027-g4dcced1169 (Sep 16 2020 - 07:00:33 +0000)

DRAM:  3.9 GiB
RPI 4 Model B (0xc03111)
MMC:   mmcnr@7e300000: 1, emmc2@7e340000: 0
Loading Environment from FAT... Card did not respond to voltage select!
In:    serial
Out:   serial
Err:   serial
Net:   eth0: ethernet@7d580000
PCIe BRCM: link up, 5.0 Gbps x1 (SSC)
starting USB...
Bus xhci_pci: Register 5000420 NbrPorts 5
Starting the controller
USB XHCI 1.00
scanning bus xhci_pci for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
Hit any key to stop autoboot:  0
U-Boot>
U-Boot> usb tree
USB device tree:
  1  Hub (5 Gb/s, 0mA)
  |  U-Boot XHCI Host Controller
  |
  +-2  Hub (480 Mb/s, 100mA)
    |   USB2.0 Hub
    |
    +-3  Mass Storage (480 Mb/s, 200mA)
         SanDisk Cruzer Facet 4C532000040726111220


Ubuntu Desktop 18.04 LTS Installed but won't boot Mac Mini 4,1

I kept digging and found this tutorial.  I went the boot-repair GUI route rather than the terminal route.  The first time, I just ran the recommended repair.  No dice.

I tried a second time and customized the process a bit.  one of the settings allowed me to add the "nomodeset" bootarg which I had to do in order to get Ubuntu to install from the Live USB in the first place.  I think that setting is why boot-repair did indeed work the second time around.

I'm up and running now.  Phew!


The installation or removal of a software package failed

If you have Synaptic Package Manager installed open it, then select "broken" on the left side. Uninstall or reinstall the broken package.

I was showing libmotif4 as a broken package. Turned out I had libmotif3 installed as well and this was causing an issue. I removed libmotif3 and reinstalled 4.


If you don't have ISO files associated with an application, such as power ISO or other, most of the time the system will see it as a zip file. You can use ImgBurn, to burn the ISO to disk, or Virtual CloneDrive to mount the ISO.

Lets explain with an example.

You probably have the .ISO extension associated with WinRAR when it was installed.  the simplest way to get it burned onto a CD is to get Free ISO Burner.  That will burn the file for you.  When you open the program after you install it, just click on open, browse to the file location (ubuntu-12.04.1-desktop-amd64), and then click on burn

Once that is done, make sure that you change the boot order, so you can boot from CD.


Can't install ubuntu on windows10 laptop

Since you have NVIDIA graphics, there's an extra step you have to take before you can boot into the installer.

When GRUB comes up, highlight Try Ubuntu and press E. Put nouveau.modeset=0 at the end of the line beginning with linux and then press F10 to boot into the Live Session.

Install Ubuntu and then check out how you can get Ubuntu working after installing.


You can back up your ssh keys by creating a copy of the .ssh folder in your home folder. You can backup your Heroku credentials by creating a copy of the .heroku folder in your home folder. It would also be wise to backup any gpg keys you have by creating a copy of ~/.gnupg if it exists. To restore these on a new installation, copy them back into your home folder.

From the command line you could run:

cp -r ~/.ssh ~/.heroku ~/.gnupg BACKUP_FOLDER

replacing BACKUP_FOLDER with the path to the folder you are backing up to.

I'm not sure about rvm, but you could look for a .rvm folder in your home folder. If there isn't any you could search for rvm files/folders:

find ~ -path "*rvm*"


Remove packages to transform Desktop to Server?

To remove x11 and everything that uses it, including all configuration:

apt-get purge libx11.* libqt.*

Unlike the accepted answer (remove xserver-xorg-core) this one will also remove all desktop packages like Firefox etc.


Default folder to install customised GDM theme

Create a .themes directory in your home directory. (~/.themes)

Install the User Themes GNOME extension from https://extensions.gnome.org/extension/19/user-themes/.

Install/move new themes into ~/.themes.

Install gnome-tweaks, and select your desired theme there.

Understand that poorly written themes can cause all kinds of problems with your GUI.

Update #1:

If you're talking about changes to the gdm3.css file, be forewarned that incorrect changes can lead to log in/out problems, and lock you out of your computer.

Modified .css files should probably be placed into /usr/share/gnome-shell/theme/.


Ubuntu 17.10 not booting after bootloader update (Acer laptop)

Turns out this was caused by the BIOS/UEFI firmware.
After updating the firmware to version v1.15, I was able to install Ubuntu in UEFI mode. (BIOS/Legacy mode still don’t work for some reason.)
I had to mark the bootloader files as trusted like @oldfred suggested.

Now everything works just fine.
After installing all Ubuntu updates, the OS still boots!

If you have an Acer, you can download the latest firmware from the Acer support website.
Unfortunately Acer does not support Linux, so you need Windows to flash the system.


Just to be correct: GCC stands for "GNU Compiler Collection" and does not compile binaries for PIC Microcontrollers.

The PIC18 compiler can be downloaded from the MPLAB site:

To my knowledge it is Windows only and does not work with Wine. You might have to use another compile such as the HI-TECH C Compiler for PIC10/12/16

Also see Programming PIC's in Linux.


If you first remove the lock modifier from the Caps Lock key you should then be able to assign the key in Keyboard Shortcuts, use the command below to do that:

echo  'remove lock = Caps_Lock' | xmodmap -


Install both i386 and amd64 versions of musl-tools/gcc/binutils

Same problem here, this is a re-post from elsewhere of the best explanation I could find for the problem:
Multiarch as of Debian Jessie does not allow the parallel installation of executables:
The package python (for example) contains executables that are installed to /usr/bin (e.g. pdb, pydoc, ...)
The package python:armhf also contains those executables and they should also get installed to /usr/bin.
Therefore python and python:armhf can not be installed at the same time since the executables of one package would overwrite the executable of the other package.
The good thing is, that you do not need two python interpreters. In your case I would just install the python interpreter that is needed for the host architecture (e.g. python:amd64). Please note that the installation of build dependencies with a command such as sudo apt-get build-dep -a armhf PACKAGE-NAME might sometimes fail and you have to guess what packages need to be installed manually.


I followed below steps to resolve it.

Created /var/log/volumes-list and wrote volume-id:Volume-name inside it.
Installed AWS CLI using this link.
Changed /usr/local/bin/aws with /home/centos/.local/bin/aws (in my case).
Ran it using following command.

  bash myscript.sh

It worked like a charm.


It turned out this problem was caused by a ridiculously simple mistake - one of my ethernet cables was a CAT5.  It took me a while to finally suspect the cable because my network normally ran at 1Gbps.  Replacing the cable with a CAT5e fixed the problem right up.


It might be happening because qt is not finding the libraries with the path you informed. When I had to install opencv those files were in "/usr/local/lib", try using this path for the .so and "/usr/local/include/opencv" for the .hpp.


Configuring a persistent static IP address

It's easy to do that in Network Manager. Click the network icon and select edit connections. Select your interface and click edit. In the IPv4-settings page, select Method: Manual. Enter your IP address, netmask and gateway and then add one or more DNS servers. If you want the connection to be setup at boot, before you login, select "Available to all users" in the bottom of the screen and click Save. You'll need to be a sudoer in order to do that.


Opting out of searching in online resources

The name of this search box is Dash.

To turn off online search Go to System Settings- Privacy - Search results. Mark 'When searching in Dash - Include online search results' as 'Off'.

Furthermore, on the Dash go to the second menu from the bottom left- Applications lens. On the  Filter Results go to Sources and unselect Software Center.

To bring the search box press Super Key.


Installing on a computer with USB 3.0 hardware

If your computer have an SD slot card, install from it. Put the image in both, the CD and the SD card. Your computer will start from the CD and it will load the installation from the SD. This is because your SD has USB 2.0 ports.

The HP Envy 15 have more issues to solve. You can find how to solve them in my blog:

http://airamrguez.blogspot.com/search/label/HP%20Envy


Apache2.4 and WSL2 is giving an Error 403

I was experiencing the same issue. It's a network error.
Run the ip addr command and find out your eth0 IP address, and use that one for your
hosts file.
That's what worked for me, because just like your Apache configuration, mine was right as well.


Windows 8 not running after installing ubuntu

Firstly, make sure you install Windows first. If, after installing Ubuntu you don't see Windows in the boot list try configuring grub.


Trouble booting Snappy on Raspberry Pi 2

I changed the USB2miniUSB cable and this time, the computer booted completely... Strange but it seems the cable I was using was of too low quality and not supplying enough power.


Atlast I went to Lenovo Service Center for re-installing my OS. Which they did. I am not happy at all with the Lenovo Service Center at Impact Infotech Pvt. Ltd., Goregaon (East). While they did install my Operating System they deleted all partitions including the Lenovo partition which had the Drivers of my laptop, they don't have any knowledge regarding any issues related to an Operating System. Plus they charged me Rs. 800 for installing a pirated Operating System.

I recommend DO NOT GO TO THIS Lenovo Service center they will install a pirated OS on your laptop instead of installing from a recovery disc & laptops nowadays show "Media Test Failed" when they are switched from UEFI to Legacy Support. They will trick you that your Hard Disk is damaged & will charge you extra bucks for it.

Now I am having a working laptop with Windows 8.1 Pro which he installed.

Thanks to @oldfred for helping me solve my problem. I learned a great deal of knowledge from you. Keep up the good work.


How to remove Eclipse 3.8 from Ubuntu 14.04?

Maybe you have to remove an eclipse version installed via apt-get.

sudo apt-get remove eclipse

You can also see which eclipse is called by the command eclipse with:

which eclipse

in a terminal.


Holding Super Key doesn't show Unity shortcuts

What's your screen's resolution? The keyboard shortcut list is not displayed on small monitors.


How can I have audio in Google Dictionary's pop-up bubble?

Try this one:
https://chrome.google.com/webstore/detail/dictionary-bubble-by-good/mfembjnmeainjncdflaoclcjadfhpoim

if you're still facing the same problem then sure, you don't have Flash installed.

to install Flash use the following command.

sudo apt-get install gnash mozilla-plugin-gnash

Gnash is an alternative to Adobe Flash.


18.04 MATE Auto-accept all files when receiving by Bluetooth from device (phone)

Set the device to trusted.
Then in a terminal run blueman-services.
A window should open, here you can select "Transfers" -> "Accept incoming files from trusted devices".


It should be sufficient to wrap the while loop into a for loop:

for i in file1 file2 file3; do
    while IFS= read -r line
    do
         #stuff
    done < "$i"
 done

If you care only about the text itself, you can just cat file1 file2 file3 | while IFS= read -r line, but beware of non-newline terminated files, as cat will splice last item of that file with first line of new one.

Also, since you mentioned particular directory, you can use glob with the for loop as in for i in /mnt/traitement/*. Like so

for i in  /mnt/traitement/*   ; do
    if ! [ -f "$i" ]; then
        continue
    fi
    while IFS= read -r line
    do
         #stuff
    done < "$i"
 done


Getting GRUB to show all my OSes at once

Ubuntu Boot Repair should be able to do that for you. You'll need to boot into a Live session and then follow these instructions:

https://help.ubuntu.com/community/Boot-Repair


Want chrome close normally when shutdown or reboot ubuntu 18.04

Update 1 Mar 2019

This bug has now been marked as fixed and expected to ship in Chrome 74 or later:

Taken from this answer, you need to add the following line into your /etc/gdm3/PostSession/Default:

killall -HUP chrome

Note you will need root (eg. sudo) access to edit that Default file.


Need to have 2 versions of Python without using a VM

You can just install them alongside eachother.

sudo apt-get install python2.7 python3

I think by default Python 2.7 will be used (i.e. is symlinked to /usr/bin/python). You can change this by changing that symlink. Most Python programs will specify which version they need and use it automatically.

Changing the symlink is not advised, as it is likely to cause programs to return errors.


Firefox doesn't play sounds in Slack desktop notifications

Never mind. I have script blockers that were preventing the needed Javascript from running right.

White-listing the domain wasn't enough. I had to tweak other settings.


I had the very same problems with a somewhat old brazilian Intelbras notebook. And I just downloaded the lighter LUbuntu. Porteus Linux also works fine and saves me from time to time whenever I get some weaker machine, or face compatibility issues.


In Unity, how can I hide the global menu on an application running fullscreen in a second monitor?

Install CompizConfig Settings Manager  if you don't have it installed in your system.

To do that, either click the link or open a Terminal (Ctrl+Alt+T) and run:
sudo apt-get update && sudo apt-get install compizconfig-settings-manager.

Then open CompizConfig Settings Manager (by running the ccsm), select "Ubuntu Unity Plugin" if you dont find it search for it in the search toolbar. In Ubuntu Unity Plugin select the  "Experimental" tab, adjust the menus-fade in/out time duration according to whatever you want.


Gnome-Screenshot GUI: Which command launches that?

You may look for interactive mode

man gnome-screenshot

  -i, --interactive
          Interactively set options in a dialog.

Use:

gnome-screenshot -i

Anyway, to get command for a GUI launcher in menu, look for its .desktop file. Example:

more /usr/share/applications/gnome-screenshot.desktop

Or use MenuLibre tool


Can Connect to OpenVPN but no internet access

Needed to add this to /etc/rc.local

iptables -t nat -A POSTROUTING -s 10.8.0.0/24 ! -d 10.8.0.0/24 -j SNAT --to $MY_IP

Which probably would have shown up had I checked out route earlier!


How to rename multiple files sequentially from command line?

The rename tool that ships with Ubuntu is pretty hot at this sort of stuff. You can embed little Perl expressions like so:

rename -n 's/.+/our $i; sprintf("AS%d.txt", 1+$i++)/e' *

That will just show you what it would do. Remove the -n to make it a live-fire exercise.

This basically works by rough-defining a variable and incrementing it each file we hit. If you're going to have more than 10 files, I suggest using some zero-padding in the sprintf. The following is good up to 999:

rename -n 's/.+/our $i; sprintf("AS%03d.txt", 1+$i++)/e' *

... But that's easy enough to expand.


Since no version requirement has been specified, I suggest you to install the libreadline-dev package instead of libreadlineX-dev. (libreadline-dev depends on libreadline6-dev.) Just for your information, on 11.10 Oneiric, libreadline5-dev has been dropped.


what is the default ownership permission of /var directory?

Owner User and Group of my /var folder is root/root (permission 755).
This is my output of: ls -d /var/

drwxr-xr-x 13 root root 4096 Apr 16  2014 /var/


"rm" command defaults "--preserve-root" option?

rm is not being aliased to rm --preserve-root, but the option is selected by default in the rm binary.

From the manpage of rm in Ubuntu 17.10, you can find the following details of the --preserve-root and --no-preserve-root options:

   --no-preserve-root
          do not treat '/' specially

   --preserve-root
          do not remove '/' (default)


According to the HP support site, you can press F10 at some point during startup to access the BIOS settings. You should then be able to find a setting for this. The setting should be called "Action Keys Mode" and you want it to be disabled, but I can't say for sure if that's exactly how it works with your particular laptop.

There's a nice detailed guide on said support site:

http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02035108&cc=us&dlc=en&lc=en&jumpid=reg_R1002_USEN


How can an IP address be statically assigned in Ubuntu 15.04 server?

Before we start, find your Ubuntu Server's internal MAC Address (All servers have them) and write it down

1- Open a web browser
2- Go to your router using your IP Address
3- Login to your router

WARNING: SETTINGS MIGHT BE SLIGHTLY DIFFERENT, JUST USE YOUR INNER CHRIS COLUMBUS AND FIND THE SETTING PAGE

4- IP And MAC Binding
5- Add a new one
6- For MAC Address put your server's address
7- For IP, put the static IP you want to give it (REMEMBER THIS IP)
8- Restart your router
9- Go to the settings of your Ubuntu Server and set the IP to the Static One (The one that you set as the bound IP in your router)
10- Restart the computer
11- BAM! You're done!


How do I move to a new tab in gedit using the keyboard?

To move to the previous tab (left): Ctrl + Alt + PageUp
To move to the next tab (right): Ctrl + Alt + PageDown

Full list of shortcuts here: https://help.gnome.org/users/gedit/stable/gedit-shortcut-keys.html


Alpha3 will not be released. However, you are welcome to download and install the daily image. Please read the Technical Overview for the issues and workarounds. We do expect to release Beta1 on schedule.


How much space do I need to create a backup with fsdisk

Hmm. I've never tried to recover from such a situation. However, if you've got valuable data on that disk, I strongly recommend making a complete image of the disk before doing anything else. That means you'll need a device with at least as much free space as your disk has. Then do

dd if=/dev/sda of=/path/to/image.img

That way, if something goes wrong, you won't lose anything.

If you don't have enough space on a single partition, you might be able to work around that issue by doing something like this (WARNING: This is untested):

mkfifo /tmp/dd
dd if=/dev/sda of=/tmp/dd

Then, in another terminal, try this

split --bytes=4G /tmp/dd /path/to/staging/area # adjust size as appropriate

Finally, in a third terminal, you can quickly move the chunks to their permanent home, optionally compressing them first. Do this while dd runs. But whatever you do, make sure it's fast enough so that you don't run out of space in the staging area.

To restore the split files, you can do something like this:

Terminal 1:

mkfifo /tmp/dd
cat /path/to/chunks/dir/1/* /path/to/chunks/dir/2/* > /tmp/dd # List all chunks here

Use zcat instead of cat if you also need to uncompress the chunks.

Terminal 2:

dd if=/tmp/dd of=/dev/sda


gedit weird encoding of standard text file

You can force the encoding to UTF-8 when you launch the gedit, e.g.,

\gedit --encoding UTF-8 myfile.txt

Somewhere you have the default encoding set to UTF-16LE as indicated by @filipe-brandenburger. You can verify this by using the UTF-16LE encoding to see the weird output.

\gedit --encoding UTF-16LE myfile.txt

Update -- encoding may be stored with the file uri.

Gnome editor apparently cached the encoding type along with the file uri. You can see this my moving the file around. E.g.,

echo "Hello there." > testfile.txt
\gedit --encoding UTF-16LE testfile.txt

(see Chinese text)

mkdir tempdir
mv testfile.txt tempdir
cd tempdir
\gedit --encoding UTF-8 testfile.txt

(English text)

Now open without specifying encoding.

\gedit testfile.txt

(English text)

But moving the file back cause it to use a different encoding.

mv testfile.txt ..
cd ..
\gedit testfile.txt

(see Chinese text)


User menu in Gnome Shell (Gnome 3.4) - entries missing

A reinstall (with the same home directory) without the mentioned repositories solved the problem. I don't know why I thought I'd need newer versions.


How to use NoCloud Cloud-init to install Ubuntu 20.04 Live Server from a USB stick?

I'm experimenting as well these days and was looking for the same solution.
You can follow this gist, it is pretty well documented. However, getting dynamic (i.e. changing at every install) user-data from USB is not as simple. This is because, cloud-init does have the volume mounted when it attempts to retrieve the config. It might be easier to go with nocloud-net and serve the file via a docker container or via NAS shared folder.


Graphic issue after firmware update (Dell Precision 5540)

I tried several fixes to this...

upgrading mesa
adding sudo add-apt-repository ppa:oibaf/graphics-drivers
trying to disable built-in graphics in UEFI (not possible on my model)
purged intel and nividia drivers and started over
installing nVidia drivers manually both open source and proprietary
tried bumblebee
reverted firmware
forcing nvidia card on

In the end I did a dist upgrade to 19.10 which fixed the issue. Not ideal leaving LTS but whatever graphic drivers were included fixed my issue.


How do I change the Window manager from grub or the command line?

sudo gpasswd -d username nopasswdlogin

where user name is your log in name.  That should make sure that you are not in the no password group.


There are reports out that libc6 broke the package manager in 11.10, see here:
https://answers.launchpad.net/ubuntu/+source/apt/+question/193006

A proper workaround is described on Ubuntu Forum here:
http://ubuntuforums.org/showpost.php?p=11767830&postcount=19


Route Multiple APIs with same Domain Name Nginx 404

Solved the issue with adding / end of proxy_pass URL
proxy_pass http://192.168.100.12:4000/;


What is the prefered method to adjust network time protocol?

The two methods are the same.  /var/lib/ntp/ntp.drift records the current drift adjustment.  This allows NTP to maintain the same drift setting following a reboot.  You can move this file by adding a driftfile to your NTP configuration file.

On kernels that support it NTP will modify the tick speed so that that the clock does not drift as much.  Various factors such as temperature can cause clocks to drift.  If the clock speed changes, the calculated drift value will change.

If you are not running the NTP daemon, you can calculate the drift and manually enter the value in the drift file.  If NTP cannot write the drift file, it may start with a setting that will cause the time to drift faster than it would normally.  NTP will eventually adjust.


Try installing IDLE 3 ( sudo apt-get install idle3 ). Open IDLE 3 and type import speechd and it should work. Does it work? Type help('speechd') to show speechd help.


On my Gnome 3.8.4 (Ubuntu 13.10) the right way to do that operation was going in monitor settings, and drag&drop the panel from the monitor to the other one (pointing the cursor on the little monitor pictured in the image box).

Here's a screenshot (sorry, the user interface is not in english):


Firefox hangs because sort-directories-first setting missing

The file /usr/share/glib-2.0/schemas/org.gtk.Settings.FileChooser.gschema.xml exists and contains the desired key sort-directories-first.

We know from the answer by WinEunuuchs2Unix that the system will look for the file in a location depending on the value of XDG_DATA_DIRS environment variable.

So what happen when the system looks for org.gtk.Settings.FileChooser.gschema.xml in a different location ?

The error-message doesn't tell us that the system can't find the file, the message tells us that the system can't find the key in the file. That makes me sure that you have a second file named org.gtk.Settings.FileChooser.gschema.xml somewhere in your system and this file doesn't contain the desired key.

As a workaround I would suggest that you search for files with the name org.gtk.Settings.FileChooser.gschema.xml, I am sure you will find more than only one. Check the content of that file in the different location if it contains the desired key, it will not.

Copy over from

/usr/share/glib-2.0/schema/org.gtk.Settings.FileChooser.gschema.xml

You may check the value of XDG_DATA_DIRS with echo $XDG_DATA_DIRS in terminal, that may give you a clue where to search for files.

I couldn't find out how to set the value for XDG_DATA_DIRS, the value will be set during start-up by a bash-script, but information I found seemed to be outdated.

Your issue might be related with this bug, Google leads me to this link while searching the net about your issue.


Install old library file required by a program

Rather than download and install a point upgrade or downgrade of a specific library you can often simply make a symbolic link, commonly known as a symlink, from the required library to the point upgrade library.

In your case the most common location for the libreadline shared libraries will be /lib/x86_64-linux-gnu/libreadline.so.7.0 although this can be tested by running the following:

sudo find /lib -iname libreadline*

If this is the case the following two commands will successfully create a symlink to libreadline.so.7.0:

cd /lib/x86_64-linux-gnu
sudo ln -sv libreadline.so.7.0 libreadline.so.6

And then hopefully all will be well...

References:

libreadline.so.6 required but libreadline.so.7 is the current version, build fails #993: A neat illustration of the required syntax from somebody caught in the same dilemma as yourself :)


Screen dim while brightness set to max on Xubuntu 14.04 everytime display turns off

The issue appeared to happen sporadically, after some debugging I figured out that it happened only when gnome-screensaver was running (which I disabled in the startup menu but still ran on every boot).

So basically I just removed gnome-screensaver altogether and running xscreesaver instead.


How to install phpmyadmin on apache2 ubuntu 20.04 server

This worked for me:

After that you do all the steps that is written in the link that you post, do these steps:

At first, download the phpmyadmin from the https://phpmyadmin.net.

after that, extract the zip file and rename the extracted directory to phpmyadmin.
then move the the phpmyadmin directory to /var/www/html by this command in terminal:

  sudo mv /home/{Username}/Downloads/phpmyadmin /var/www/html/phpmyadmin

then, write this in you'r browser:

  http://localhost/phpmyadmin/

and hit ENTER.


"eclipse Could not save master table to file"

Try setting correct privileges to the file

<workspace>/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources`

I would suggest setting correct permissions for the whole workspace

See discussion here


I just edited this part

############ Find ESPEAK TTS ############

find_path(LIBESPEAK_INCLUDE_DIRS
          NAMES speak_lib.h
          HINTS /usr/include/espeak)
find_library(LIBESPEAK_LIBRARIES
             NAMES espeak
             HINTS /usr/lib/ /usr/x86_64-linux-gnu/
             PATH_SUFFIXES lib)

########################################

add_executable(TextReading
        ${DAD_SOURCES}
        ${DAD_HEADERS}
        ${MY_UI_HDRS}
        ${MY_MOC_SRCS}
    ${MY_CUDA_COMPILED_FILES}
    ${QEXTSERIALPORT_SOURCES} ${QEXTSERIALPORT_HEADERS}
    )

target_link_libraries(TextReading
        ${OpenGL_LIBS}
        ${QT_LIBRARIES}
        ${QGLVIEWER}
    ${Boost}
    ${OpenCV_LIBS}
        ${TESSERACT_LIB}
    ${FFMPEG_LIBRARIES}
    ${MathGL_LIB}
    #${ESPEAK_LIBRARIES}
    ${LIBESPEAK_LIBRARIES}
    ${QEXTSERIALPORT_LIBS}
    ${QTMOBILITY_LIBRARIES}
    udev

)


Xubuntu/XFCE: Is it possible to have email notification in the system tray?

Install xfce4-mailwatch-plugin. Then, right click on the panel, and choose Panel --> Add New Items

Click on Mail Watcher, and then on Add, and Close

Once done you'll see the icon on the panel.

Once done, right click on the icon, and choose properties, to be able to setup emails.


Shotwell: Storing part of library on external HDD

Take a look at gThumb. It is quite simple but yet very powerful underneath. It facilitates file system folder structure and has more on top of it (tags, catalogs, marks, batch processes, simple image editing, export/import). So it won't be a problem to manage PC photos and external HDD photos from one program and move them one way around.

As to having a set of small thumbnails I guess you gonna have to do some scripting, which is also possible in gThumb. I've never herd of anything like this.


12.04 `kernel panic not syncing IO-APIC + timer doesn't work`

When you first start Ubuntu you need to press the escape key and append "noapic nolapic acpi=off" to the boot options. Your computer is an older model apic isn't compatible with it. My dad's computer is the same way. If you ever get around to installing it on your harddrive you're going to have a doosy. You'll have to go into a liveCD, mount your harddrive as if you were actually using it and then edit your bootloader.