New tweetdeck custom launcher to run under unity 11.10

Just add nohup and an & to that command

nohup wine  ~/.wine/drive_c/Program\ Files/Twitter/TweetDeck/TweetDeck.exe > /dev/null 2>&1 &

Probably best to use the full path with those commands, so /home/your_user rather then ~

Then make a custom launcher with that command.


x86 or x64 for AMD E-300 and 4 GB of RAM?

64-bit utilizes large amounts of memory more efficiently that 32-bit. So I would go for x64.


The first thing, you should do, is writing a bug report. The bug page at Launchpad doesn't list your bug so far. So if you describe the problem and what helped you the maintainer might release a new version soon.

Building the source from source seems the best solution at the moment. In the case of dcraw it is sufficient to just replace the executable. If you want a more nice and clean solution I would suggest building an own Ubuntu deb package. You can use apt-get source dcraw to retrieve the old source files. Now you replace the old dcraw.c with the new one and try to rebuild the package. Now you get a new deb file, which you can install using dpkg or Software Center.

A third option is to use a package from another distribution. For instance OpenSUSE has a newer version than Ubuntu. You can download the RPM file and use alien to make a deb package from the RPM.


i have installed xampp on ubuntu 18.04 .. but why is an error like this?

"invalid settings".

That means you need to check host, user name and password set in phpmyadmin and compare it to what you set in mysql.


This is an error from your mail server so you will need to contact the admin of your mail server to find out more, but it sounds like it won't let you claim to be sending mail from an address that differs from the one you are supposed to be using.


Installed Flash plugin version 13 - video still not working

I've dealt with this before. There appears to be a difference between the Flash plugin that is installed within the browser, and the one that works better.

(This also seems to resolve the issue of videos spontaneously stopping and restarting themselves in Firefox and Chrome.)

I recommend using Synaptic to check this, but the instructions below are for the terminal...as you probably don't need me telling you what to click in Synaptic, ha ha.

sudo apt-get remove flashplugin-installer

That removes the rather glitchy version that gets parked in the browser when you install from the Adobe Flash website.

sudo apt-get install adobe-flashplugin

(For the record, that one is version 11. Version 13 is not yet available for Firefox, as user7134 correctly stated.)

That installs the plugin, which works a LOT better. That's the only one I have installed on my Ubuntu 14.14 system, and Firefox and Chrome are quite happy.


How is the Magic Trackpad's Battery Life (with Ubuntu)

The included batteries lasted five weeks in my usage. The device has been on at least eight hours a day. I expect quality rechargeable batteries to last more. There seems to be no way to know if it's going into a reduced power mode when not in use, but it doesn't seem to.

If upon holding down the power button, the green light goes on, stays lit for a second and immediately goes off without blinking, that's an indication that the batteries are dead.


Ubuntu 14.0.4 OpenVPN connection - username and password only

Change the VPN type from "SSL/TLS + User Auth" to "User Auth" and then it does not require certs for clients.


How to move the  Dash launcher home button to the panel?

I also liked the Dash launcher on the panel, it made the two bars seem more integrated and didn't make me dislike Unity as much.  I don't like the current look either.  As Manish Sinha pointed out in his comment above, there is currently no way to do this.


First find the md5 hash of your file:

$ md5sum path/to/file
e740926ec3fce151a68abfbdac3787aa  path/to/file

(the first line is the command you need to execute, the second line is the md5 hash of that file)

Then copy the hash (it would be different in your case) and paste it into the next command:

$ find . -type f -print0 | xargs -0 md5sum | grep e740926ec3fce151a68abfbdac3787aa
e740926ec3fce151a68abfbdac3787aa  ./path/to/file
e740926ec3fce151a68abfbdac3787aa  ./path/to/other/file/with/same/content
....

If you want to get fancy you could combine the 2 in a single command:

$ find . -type f -print0 | xargs -0 md5sum | grep `md5sum path/to/file | cut -d " " -f 1`
e740926ec3fce151a68abfbdac3787aa  ./path/to/file
e740926ec3fce151a68abfbdac3787aa  ./path/to/other/file/with/same/content
....

You could use sha1 or any of the other fancy hashes if you want.

Edit

If the use case is to search through "several multi-gigabyte MP4s or iso-files" to find a "4 KB jpg" (as per @Tijn answer) then specifying the file size would speed things up dramatically.

If the size of the file you are looking for is exactly 3952 bytes (you can see that using ls -l path/to/file then this command would perform much faster:

$ find . -type f -size 3952c -print0 | xargs -0 md5sum | grep e740926ec3fce151a68abfbdac3787aa
e740926ec3fce151a68abfbdac3787aa  ./path/to/file
e740926ec3fce151a68abfbdac3787aa  ./path/to/other/file/with/same/content

Note the extra c after the size, indicating characters/bytes.

If you want you could combine this in a single command:

FILE=./path/to/file && find . -type f -size $(du -b $FILE | cut -f1)c -print0 | xargs -0 md5sum | grep $(md5sum $FILE | cut -f1 -d " ")


Unable to install libgnutls-dev on new 16.04LTS machine

Current version of libgnutls-dev on xenial is 3.4.10-4ubuntu1.4.

It seems that you disabled xenial-updates repository.

On desktop open Software & Updates (software-properties-gtk), go to Updates tab and check xenial-security and xenial-updates.
On server you should have the following line in /etc/apt/sources.list:

deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse

And try to install it again.


Ubuntu after Windows 7 disk unrecognized

Make sure to boot the LiveCD in no-EFI mode, since you've installed Windows in legacy mode.

Execute sudo gdisk /dev/sda and try converting to MBR and then rewriting the partion table under Recovery/transformation options.


The simple answer is no, the indicators cannot be individually enabled or disabled, however you can kill the network indicator by running the following command: pkill nm-applet

To restart the network indicator, run nm-applet

To turn off the network indicator so it doesn't show up at all when you log in:

Click the power icon in the top right corner and select System
Settings.
Click Startup Applications in the Personal section.
Uncheck the Network Manager item.

Be aware that killing the network indicator will not allow you to connect to wireless networks.


You need an unattended install. A couple of approaches here:
https://help.ubuntu.com/community/Installation/UnattendedCD
http://www.linuxuser.co.uk/tutorials/unattended-ubuntu-installations


Desktop icons missing after "logging on" to 13.04

create a file with that content:

#!/bin/bash
dconf reset -f /org/compiz/
unity --reset-icons

Save it under any name.
Then go to settings of that file (2nd tab) and make it executable, then double click and run it in a terminal.
Keep that file on desktop if it occurs again...

EDIT

to get rid of the login screen you just have to go the the system settings, go to user, and change to automatic login


How to remove the big banner from Software Center?

This banner ad was bugging the hell out of me too.  I figured out how to remove it, but this might void your warranty or whatever so do this at your own risk:

Close Ubuntu Software Center and make a backup copy of
/usr/share/software-center/softwarecenter/ui/gtk3/widgets/exhibits.py
Edit that file as root:
sudo gedit /usr/share/software-center/softwarecenter/ui/gtk3/widgets/exhibits.py
Find the line which defines MAX_HEIGHT = 200 (line 229 or so)
Change MAX_HEIGHT to 10
Save the file, restart software center, banner no longer obtrusive.


Are you saying your password is now set to nothing, so on the login screen you do not enter a password, but when you try to update Ubuntu it is still asking you for a password and leaving it blank does not work?

If this IS the case, I would suggest you first try your old password and see that still works here.

I am still new, so this is just a guess... But I am pretty sure that when you first install Ubuntu it has you type in a username and password. You still need that password to do things that require administrative (root?) permissions even if you set your login password to nothing.

This might help you:

https://help.ubuntu.com/11.04/ubuntu-help/user-forgottenpassword.html


Formatting a 1T storage drive ext4 how much should i leave free to avoid problems?

Ok, so the question is about filling up the filesystem, not about partitioning the drive. Two things come to mind:

Accidentally filling up a filesystem should not cause total filesystem corruption. Filesystem code is written by the most skilled developers, tested for years before being included into the kernel and used as the default filesystem in a distribution. Ext4 is used on millions and millions of computers, some of which contain mission-critical data or highly loaded. It it exteremely unlikely that developers simply forgot to add a check for free space before writing data or that a major bug exist which routinely leads to filesystem corruption when the filesystem is full.
By default, when an ext4 filesystem is created, a few percent of disk space is reserved for the superuser, so during the normal operation it is impossible to use up all disk space, unless you're logged in as root.

The latter does waste some considerable space on large drives (5% by default), so some people reduce this number on non-system drives.

In certain situations (repeatedly creating and deleting many files) a nearly-full filesystem may result in excessive fragmentation and some performance loss, however ext4 is better in this respect than ext3.


Disable keyboard backlight and Bluetooth at startup in Ubuntu mate 15.10

Remove the two lines you added to /etc/rc.local and just add
sleep 20
echo '0' > /sys/devices/platform/dell-laptop/leds/dell::kbd_backlight/brightness

Save, exit text editor and reboot

For the bluetooth we can use a udev rule to block bluetooth at start up
gksudo gedit /etc/udev/rules.d/81-bluetooth.rules

And copy the following

SUBSYSTEM=="usb", ATTRS{idVendor}=="8087", ATTRS{idProduct}=="07dc", RUN+="/usr/sbin/rfkill block bluetooth"

Save and exit


Running out of space on a Wubi install with a non-functional Windows OS

You can partition the drive and it shouldn't matter unless you change both the UUID and the partition number that contains the Wubi install.

But if you want to replace Windows with Ubuntu, then it makes sense to buy an external hard drive, backup all your data and then either migrate the Wubi install back to the hard drive, or install a fresh copy of Ubuntu over the entire drive and then copy your data back.

I like to migrate my Ubuntu installs, because setting it up from brand new is a pain. But for many people, fresh installs are common. You can choose whatever you prefer.

If you're not sure what to do just yet, you can probably also try resizing the Wubi install as a temporary measure or freeing up space.


How to install ubuntu on HP envy 4 ultrabook?

This is what worked for me,
1) Turn off acceleration in the Intel Rapid Storage Tech. It will take a while.
2) Click reset to available (it will show up once you disable acceleration) which should remove the fake raid thing and free your SSD.
3) Use some disk utility such EaseUs, to turn your HP Recovery and HP_Tools partitions to logical. Now, you should have atmost 3 primary partitions. If not, then make sure that you don't have more than 3 by changing to logical/removing unnecessary partitions that you may have created. Create some unallocated space from one/more of the partitions. ~10GB is good. DO NOT CHANGE BOOT PARTITION TO LOGICAL.
4) Restart and enter BIOS, turn off the Intel Rapid Start Tech.
5) Install using live USB by selecting "Something Else" in the unallocated space.
6) Now, you may turn on Intel Rapid Storage and Intel Rapid Start. The exact same config in the Intel Rapid Storage cannot be restored so what you could do is make 18.6GB cache volume and the rest data volume. From that data volume, you could turn 4GB into hibernation partition using command prompt and use the rest for storing any files that you access frequently.
* Apparently, there is no way to put back the same config of 4GB data(hibernation) volume and 26GB cache volume.
* All this may seem to be out of the blue and look like as if I am talking about random stuff but if you have googled enough, you'd know what I am talking about.
Good Luck!


Language packs are .deb packages which contain sets of localizations (string translations, possibly keyboard layouts, etc…), for the default installed applications and libraries. Some of these are available and installed by default, but if you wish to enable additional languages, then additional packages may need downloading and installed to enable that language. When you enable a language, only the packages for that language are downloaded and installed.


Slow Wifi on Ubuntu 14.04 LTS using Thinkpad x201 with Intel Centrino Wireless-N 1000

I had the same problem with a X201, but with a  Intel Corporation Centrino Advanced-N 6200 (rev 35) Wifi controler.
One thing that helped was to go to the bios setup, load the default configuration and save changes. But this was only temporarily.
For another reason I disabled DHCP and set a fix IP to the wifi connection. Since than the Problem is gone.
The download speed increased from not 1 Mbit to 10 Mbit.


Upgraded server to 12.04 DNS no longer working

Setup Static DNS Servers in Ubuntu 12.04 (Precise Pangolin)

sudo nano /etc/dhcp/dhclient.conf

Then change the line highlighted to

prepend domain-name-servers x.x.x.x, y.y.y.y;

liberiangeek

Ubuntu 12.04 changes the way DNS setup is handled. Rather than adding nameservers to /etc/resolv.conf, they need to be added to /etc/network/interfaces.

Edit /etc/network/interfaces, look for your primary ethernet device (such as eth0), and add this line under your primary ethernet device:

dns-nameservers 127.0.0.1

And then restart your networking:

/etc/init.d/networking restart

virtualmin


PDOException could not find driver Laravel With php 7 Xampp

Are you using XAMPP? If so, just run php artisan --host=localhost:8000, or with your prefered port.


as mount specified, something wrong with the FS(file system).
Try this:  (It'll format the drive with ext4 format)

 mkfs.ext4 /dev/sdd

If format successes
then try these mounting steps again

mkdir /media/3TBRaid
// And then the mount command
sudo mount /dev/sdd/ /media/3TBRaid

hope it helps .!!

EDITED:

instead of this():   follow this link


Python 3.3 has been released on 29 September 2012, several months after Ubuntu 12.04 was released. It is included in Ubuntu 12.10 though as python3.3 package

If you want to install Python 3.3 on Ubuntu version which does not have it in its repositories, you have the following options:

Use a PPA

There's a PPA containing Old and New Python versions maintained by Felix Krull. See Luper Rouch's answer for installation instructions.

Compile Python from source

This is very easy and allows you to have multiple Python versions without messing with system python interpreter (which is used by a lot of Ubuntu own programs). On my dev machine I have literally dozens of different Python versions from 2.4 to 3.2 living happily in /opt.

we need C compiler and other stuff to compile Python

sudo apt-get install build-essential

SQLite libs need to be installed in order for Python to have SQLite support.

sudo apt-get install libsqlite3-dev
sudo apt-get install sqlite3 # for the command-line client
sudo apt-get install bzip2 libbz2-dev

Download and compile Python:

wget http://www.python.org/ftp/python/3.3.5/Python-3.3.5.tar.xz
tar xJf ./Python-3.3.5.tar.xz
cd ./Python-3.3.5
./configure --prefix=/opt/python3.3
make && sudo make install

Some nice touches to install a py command by creating a symlink:

mkdir ~/bin
ln -s /opt/python3.3/bin/python3.3 ~/bin/py

Alternatively, you can install a bash alias named py instead:

echo 'alias py="/opt/python3.3/bin/python3.3"' >> .bashrc

And this is it. Now you can have any Python version, even an alpha, or, say, to have a few copies of Python 3.3 compiled with different settings... not that many people need that though :)

Use pyenv

There's a software called pyenv which may help you to automate the procedure - what it essentially does is compile Python from source, installing it in your home directory. Its goal is to help you manage multiple Python versions.


How (recipe) to build only one kernel module?

The recipe to build a custom module might need to be split in three sections.

Setup once

$ cd ~
$ apt-get source linux-source-3.13.0

I am too lazy to copy the mvsas specific driver source files; just copy them all to your current working directory. If apt-get results in an error message about missing source URIs then see note #4 at the bottom.

$ cd linux-3.13.0
$ make oldconfig
$ make prepare
$ make scripts

This will prepare some files necessary to build a kernel module.

Each kernel version

$ apt-get install linux-headers-$(uname -r)

This will install headers and the Ubuntu kernel configuration file for that kernel version in /lib/modules.

$ cd ~/linux-3.13.0
$ cp -v /usr/src/linux-headers-$(uname -r)/Module.symvers .

This to prevent the message "no symbol version for module_layout" when loading the module with insmod or modprobe.

$ mv -v /lib/modules/$(uname -r)/kernel/drivers/scsi/mvsas/mvsas.ko /lib/modules/$(uname -r)/kernel/drivers/scsi/mvsas/mvsas.ko.backup

This will rename the original (Ubuntu build) kernel module to make sure that the custom patched one will load.

Each edit

$ cd ~/linux-3.13.0/drivers/scsi/mvsas
$ nano mv_sas.h
$ nano mv_sas.c

These are for the edits.

$ make -C /lib/modules/$(uname -r)/build M=$(pwd) modules

This will compile and build the kernel module .ko file using the kernel configuration from your stock Ubuntu distribution as stored in /lib/modules/$(uname -r)/.

$ make -C /lib/modules/$(uname -r)/build M=$(pwd) modules_install

This will install the kernel module in /lib/modules/$(uname -r)/extra/, not overwriting the distribution module in case you didn't rename the distribution kernel module file. In this mvsas case it will also run depmod.

$ lsmod | grep mvsas

If this results in any output, the mvsas module needs unloading with (modprobe -r mvsas) first.

$ sudo modprobe -v mvsas

This should load the new kernel module.

Check the output to verify that /lib/modules/.../extra/mvsas.ko is being loaded.

Modprobe error: could not insert

In some cases you might experience a modprobe: ERROR: could not insert 'xyz': Unknown symbol in module, or unknown parameter (see dmesg) while in the verbose modprobe output you see that insmod is trying to load the module from the kernel default location. For example:

# insmod /lib/modules/3.17.0-031700rc7-generic/kernel/drivers/scsi/pm8001/pm80xx.ko
modprobe: ERROR: could not insert 'pm80xx': Unknown symbol in module, or unknown parameter (see dmesg)

In that case you need to manually run depmod and try to load the module again:

# depmod
# sudo modprobe -v mvsas

Notes

It may be the case that the resulting .ko module files are much (for example 20 times) larger in size than the original module files as distributed by Ubuntu; in that case the make prepare step could have created a Linux developers debugging kernel configuration file and you are building from the source directory. Your -C param might not function as expected.
I have seen guides with other commands like make modules_prepare and make M=scripts/mod but I don't think these are necessary for this case.
You can use the Linux developers debug config by replacing -C /lib/modules/$(uname -r)/build with -C /usr/src/linux-headers-$(uname -r)
In a default setup, apt-get source linux-sources will return error E: You must put some 'source' URIs in your sources.list. To fix this issue you can modify file /etc/apt/sources.list by uncommenting (removing the leading # from) the first deb-src line. Example for Ubuntu 17.10: deb-src http://ie.archive.ubuntu.com/ubuntu/ artful main restricted. run sudo apt-get update, and then the command will deliver sources for you. See also this question where a GUI method for doing this is described too.


I think you need a fourth parameter there to specify the encryption type.

This is what my /etc/crypttab looks like:

home_crypt /dev/disk/by-uuid/6f13e221-69f0-4f0e-9082-e2e7b32fc1dd /mnt/Keys/home-data luks
swap_crypt /dev/sda3 /dev/urandom swap

The Crypttab manpage says that all four fields are mandatory.

To test your settings, you can use the following commands to start and stop the cryptdisks after you make your changes.

cryptdisks_start
cryptdisks_stop


What is the command to run System Settings from a terminal?

gnome-control-center

Note: for versions between 14.04 and 17.04, the command is unity-control-center


How to rename/extract files with long names in zip archive

To extract

We can use zipinfo as a part of this process, it's a program from zip package.

zipinfo -2 example.zip

will only shows the files names in example.zip, something look like:

file1-long-name-...-bla-bla.html
file2-long-name-...-bla-bla.html

so we can use this feature to extract all files:

zipinfo -2 example.zip | while read i;
do
  long_fname=${i%.*}
  unzip -p -c example.zip "$i" > "${long_fname:0:250}.${i##*.}"
done;

long_fname=${i%.*}: Removes extension from long file name, so in case of file name being less that of 256 character; We're not going to get a duplicate extension.
${long_fname:0:250}.${i##*.}: Creates a new file name with legitimate number of character also adds a . and file real extension.

Simply we are looping into files list and extract each of them with a new legitimate file name which is 256 character.

To rename

You can use zipnote command, it's a part of zip package too.

Get a backup of your zip file first.

Run this command:

zipnote example.zip > names

Open names using an editor, it's look like this:

@ file name long in zip and a lot of other strings in the file name
@ (comment above this line)
@ (zip file comment below this line)

Add new file names like this:

@ file name long in zip and a lot of other strings in the file name
@=new short name for above file
@ (comment above this line)
@ (zip file comment below this line)

Then to rename files use:

zipnote -w example.zip < names

You renamed them all, you can also write a simple script which do this automatically for you.


Your system detects both AMD and Intel adapters.

By default the Intel is used. There is no need to use the AMD adapter for every application even if your laptop is on AC power. It doesn't add any value.

If you want to run some application on the AMD adapter, you can run it with DRI_PRIME=1 prefix.

If you want to run Steam games with the AMD GPU you can change the Steam shortcut in /usr/share/applications to

DRI_PRIME=1 /usr/games/steam %U

Another way is to run Steam in a terminal by DRI_PRIME=1 steam.


Unity date applet crashes all the time (Ubuntu 13.04)

Disabling "Coming events from evolution calendar" in Time & Date Settings (Clock section) fixed this.


GMail doesn't show up in the messaging menu!

Well, if this is what you mean, for me it does:

So, this is probably "just you" or a bug of some sorts.

Some people have the exact opposite problem however - webapps that are still there, although they were removed.

They only give focus to [Browser]!

Well, yeh. That happens for me as well, and as far as I can tell is perfectly intentional.

Webapps act indeed as "glorified bookmarks", as you call them, as they're essentially part of a plugin. They definitely need some improvements (at which point Launchpad comes in handy to suggest them).

Interestingly the focus pip is given to some users. Chromium in particular. (Screenshot from this probably slightly related bug report on Launchpad)

Conclusion

The answer boils down to "It's a bunch of bugs and probably-intended features."

Getting in touch with the WebApps Project team on Launchpad is probably the best course of action, as we can't really help with bugs, and whether or not what of these is a bug is complicated at this stage of development.

I'm sorry we can't help more, and I hope this gets resolved quickly.


I detected the same thing on my system, too (based upon 20.04 LTS) but I am not too worried, but you should be if you see a performance degradation.  This text indexing is meant to facilitate quick searches especially in these well-known areas:
    DOCUMENTS
    MUSIC
    PICTURES
    VIDEOS
    DOWNLOAD

You can get an idea of how much of your content is actively indexed. Here's mine.
    $ tracker status
    Currently indexed: 590 files, 37 folders
    Remaining space on database partition: 124.1 GB (49.63%)
    All data miners are idle, indexing complete

Maybe you have a lot more files being tracked than I do, but notice how it reports that I have used 50% of the space on this drive, yet only 590 files are indexed?  It's because I don't have much stored in those well-publicized directories.
The thing is text indexes once created are really cheap and quick to maintain.  They are actually a type of database with an inverted B-tree structure.
Making a quick scan to see if any text needs updating is really fast, so I wouldn't be alarmed about the 1 minute frequency unless you are noticing a slowdown.
If you're having a slowdown, or don't need all your MUSIC files scanned, try creating a directory maybe AUDIO and move the files there.  The tracker should ease up and not keep so busy.
Here's another source to look at if you think that a tracker reset is the thing for you.
https://codeforlearning.com/understanding-about-tracker-miner-f-in-linux/
Good luck,
mondotofu


IPv4 address from ifconfig differs from dhclient

I would look at deleting the old lease file:
/var/lib/dhcp/dhclient.leases

Then run the dhclient -r to re-assign the 192.168.10.21 IP address. You may also specify the network interface:
dhclient -r -v enp0s31f6

Also, once you deleted the file and removed the IP, you may want to quickly send a request to get the new IP:
dhclient -v enp0s31f6

The problem with DHCP is that it views IP addresses on a different network as possibly coming from a different DHCP. So when your DHCP client queries the server with the old address, it thinks it was assigned by a different server and it ignores all such requests instead of telling the client to delete that old IP address.
Your network mask is 255.255.255.0 which means that 192.168.2.x and 192.168.10.x are two different networks.
As a side note: you can assign many IP addresses to the same network card. (In the old days, it was as many as 65534 or so). So it is normal to see two or more addresses on the same card. It is especially used to assign an IPv4 and an IPv6 set of addresses to a card.


Turning on desktop cube removes task bars

Compiz-config-settings manger is very dangerous in unity
if it crashed your system

press alt+ctrl+f2
and enter username and password
Then type

unity --reset

How do I reset my Unity configuration?
What are some of the issues with CCSM and why would I want to avoid it?


How to get different text scaling for different displays?

I switch between a 13" 1920x1080 built-in display and an external 19" 1280x1024 one, so I have the same situation. Usually I do it on an app-by-app basis. My main applications are the browser and the terminal.

The terminal is easy, just ctrl + and ctrl - until you reach the font size you want. You can define profiles (Edit -> Profiles) and preset font sizes, then switch between profiles (Terminal -> Change Profile) or even define a default profile for newly-launched terminals.

The browser is more complicated, for Firefox I go to about:config and set the layout.css.devPixelsPerPx value to 1.4 (found experimentally). For more information see https://wiki.archlinux.org/index.php/HiDPI#Firefox.

I suggest you google for the applications you want to scale and add "hidpi" to your search to find application-specific tips.


In general you can use newer versions by installing the package for it from a newer Ubuntu. Precise uses 1.8.3 so download the package for that release and install it.

The package is rather vital for a correct working of Ubuntu so prepare for things to break. If your system is a production server I would advice to first test this on another server where you can play and break.

If at any way possible I would also consider upgrading/updating to the new LTS to prevent similar problems in the future.


run the firmware test suite, fwts klog test on a freshly booted system, it may explain some of those error messages:

apt-get install fwts
fwts klog -


How to run perf in Windows Subsystem for Linux on Windows 10/Ubuntu 16.04

WSL is a minimal shim that translates Linux kernel calls into Windows runtime calls. You can't possibly expect a full implementation.

For example, it is 64-bits only and won't execute 32-bit binaries regardless what compatibility libraries you install.


It is a directory created to store Samba "netlogon" scripts, when Samba has been configured "domain logons." It's safe to leave there or delete if you do not use it. No shame! We're in a constant learning process, no?


HDA Intel PCH ALC1150 No Sound Ubuntu 14.04x64

Run:

sudo apt-get install --install-recommends linux-generic-lts-wily

This will install the new kernel version from Ubuntu 15.10.  For details, see: https://wiki.ubuntu.com/Kernel/LTSEnablementStack


As covered by others in https://superuser.com/questions/196673/producing-a-specific-ascii-character-in-ubuntu, I'm afraid not.

I've done it with DOS related operating systems but not with Unix related ones. The codes were generated within BIOS with the initial PC's. Linux starts with raw key codes and does its own thing to figure out what code point you want. It now runs on many platforms.

The compose key may be your best bet if you don't want to use the Unicode sequence. The compose key is defined in the Keyboard Layout -> Options window.

Of course you can use the Unicode sequence to type in the first 128 bytes of ASCII, but it involves extra keys and keystrokes. If you mind those, or if you want the extended ASCII characters and find it easier to remember the extended ASCII code points, I'm sorry but I don't think there's a good answer for you.

PC BIOS Source: IBM P/N 6361453 page 5-59 and 5-60.


Why do these xte commands work in terminal, but not when bound with xbindkeys?

Another simpler solution: instead of using just "b:11" in the xbindkeys definition, use "b:11 + release". It will wait until you release the button to fire the command.

Example:

"sh ~/expo.sh"
  b:11 + release


Trouble installing 18.04 on MacBookPro mid 2010 13"

If you update a kernel in Ubuntu it will keep the old kernel in case the new one fails, at which point you can hold down Shift while booting and select the old kernel in GRUB if needed. You can also manually downgrade the kernel later if needed.

It's also worth mentioning that Ubuntu 18.04 isn't the latest release. It's the latest Long Term Support (LTS) release, but because of that it may not get certain updates since it's designed to have kernel upates infrequently except for security issues. This means it's possible for an 18.10 installation to work better on your Macbook.


PPA removed and purged but still showing available upgrades

All of what you did is just right. But you miss to do one important thing.

sudo ppa-purge ppa:ubuntu-toolchain-r/test

sudo apt-add-repository --remove ppa:ubuntu-toolchain-r/test

  And manually removed the PPA file from /etc/apt/sources.list.d as well
  as the keyring.

Now before doing

sudo apt-get upgrade

you should make

sudo apt-get update

then make

sudo apt-get upgrade

Your problem is you are still working on the software list that containing that repository, so you have to do apt-get update to update this list without the ubuntu-toolchain-r/test repository.


You actually need to install libg3dvl-mesa and mesa-vdpau-drivers and not mesa, according to the launchpad documentation you pointed to. So after you do sudo apt-get update do:

sudo apt-get install libg3dvl-mesa
sudo apt-get install mesa-vdpau-drivers


The reason this information is not in the statusbar is probably because it requires a lot of disk reading to find the disk usage of a directory. Consider opening /. It'll have to recursively traverse the entire filesystem in order to find the disk usage. The ammount of free space on the other hand, is very quick to retrieve since each filesystem keeps track of this.


The installation size depends on the content of /etc/apt/sources.list and the list files in /etc/apt/sources.list.d but would be about 680 GB.

And no, you can't install all packages via

sudo apt-get install *

Why? See below,.

But you could with this command, but you should not do that! Please. Ok?

Ok?! Can I trust you?

Ok.

aptitude -F %p search '!~i!~v' | xargs sudo apt-get install

If you start the command sudo apt-get install * in a terminal with bash you would see something like this (it depends of the content of your current folder).

$ sudo apt-get install *
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package brackets
E: Unable to locate package brackets-shell
E: Unable to locate package Dosis-Bold.otf
E: Couldn't find any package by regex 'Dosis-Bold.otf'
E: Unable to locate package Dosis-ExtraBold.otf
E: Couldn't find any package by regex 'Dosis-ExtraBold.otf'
E: Unable to locate package Dosis-ExtraLight.otf
E: Couldn't find any package by regex 'Dosis-ExtraLight.otf'
E: Unable to locate package Dosis-Light.otf
E: Couldn't find any package by regex 'Dosis-Light.otf'
E: Unable to locate package Dosis-Medium.otf
E: Couldn't find any package by regex 'Dosis-Medium.otf'
E: Unable to locate package Dosis-Regular.otf
E: Couldn't find any package by regex 'Dosis-Regular.otf'
E: Unable to locate package Dosis-SemiBold.otf
E: Couldn't find any package by regex 'Dosis-SemiBold.otf'
E: Unable to locate package dosis.zip
E: Couldn't find any package by regex 'dosis.zip'
E: Unable to locate package makefiletab3
E: Unable to locate package projectlibre_1.6.1-1.deb
E: Couldn't find any package by regex 'projectlibre_1.6.1-1.deb'
E: Unable to locate package SIL Open Font License.txt
E: Couldn't find any package by regex 'SIL Open Font License.txt'
E: Unable to locate package virtualbox-5.0_5.0.2-102096~Ubuntu~trusty_amd64.deb
E: Couldn't find any package by regex 'virtualbox-5.0_5.0.2-102096~Ubuntu~trusty_amd64.deb'

Compare the error messages with the output of

$ ls -lsog
total 74960
    4 drwxrwx---   5     4096 Aug 31 20:09 .
   84 drwxr-xr-x 246    86016 Aug 31 21:54 ..
    4 drwxrwxr-x   8     4096 Aug 30 13:45 brackets
    4 drwxrwxr-x  12     4096 Aug 30 13:57 brackets-shell
   60 -rw-rw-r--   1    59588 Jul  5  2013 Dosis-Bold.otf
   60 -rw-rw-r--   1    57896 Jul  5  2013 Dosis-ExtraBold.otf
   60 -rw-rw-r--   1    57888 Jul  5  2013 Dosis-ExtraLight.otf
   60 -rw-rw-r--   1    59028 Jul  5  2013 Dosis-Light.otf
   60 -rw-rw-r--   1    58396 Jul  5  2013 Dosis-Medium.otf
   60 -rw-rw-r--   1    59944 Jul  5  2013 Dosis-Regular.otf
   60 -rw-rw-r--   1    58524 Jul  5  2013 Dosis-SemiBold.otf
  256 -rw-rw-r--   1   261233 Aug 31 20:09 dosis.zip
    0 -rw-rw----   1        0 Jul 17 17:36 .foo
    0 -rw-rw----   1        0 Jul 17 18:10 .foo.bar
    4 drwxrwxr-x   4     4096 Aug 30 20:09 makefiletab3
12380 -rw-rw-r--   1 12675606 Aug 30 14:31 projectlibre_1.6.1-1.deb
    8 -rw-rw-r--   1     4529 Aug 31 14:09 SIL Open Font License.txt
61792 -rw-rw-r--   1 63270648 Aug 30 17:23 virtualbox-5.0_5.0.2-102096~Ubuntu~trusty_amd64.deb
    0 -rw-rw-r--   1        0 Aug  5 21:13 .vminfo
    4 -rw-rw-r--   1      172 Aug  2 19:35 .zip
    0 -rw-rw----   1        0 Jul 17 17:36 .zzyGir

All clear? ;)


the following post worked for me
http://falkvinge.net/2013/02/15/how-to-install-nvidia-drivers-in-ubuntu-12-10-quantal/

kr raphael


in 18.04 how do I get the "windows network" to open up

Make sure you have samba 4 installed in the package manager. Then in the file browser, supposing the win7 name is mypc with ip address 192.168.0.2 (you can find the IPs using ipconfig on windows's cmd), try something like smb://mypc/ or smb://192.168.0.2/

You may also need to check if the windows 7 firewall isn't blocking the access

If windows asks for login, it should be the same login you use to log in the windows sessions. You might have trouble connecting from the network if you don't have a password set. You can tell linux to use some specific username using an url like this:
smb://username@mypc/

For windows to access the samba sharing you may need to tweak the file /etc/samba/smb.conf using root. Microsoft changed sharing defaults so depending on which windows updates you got in Windows 7 you may also need to add the foolowing setting in the smb.conf:

[global]
protocol = SMB3


How to upgrading to new release automatically or download the release iso once it's released?

I extremely recommend against. Upgrading from a version to the next can take several hours, block your system, wait for your intervention, be interrupted by power loss, leave your system unbootable, etc.

When upgrading you should make sure that you have the time and a backup plan in case something go wrong. The upgrades to the next version are not automatic for this reason, there is several things that can go wrong.


Booting from ISO image located on a filesystem that's on a USB stick

If you have access to a Ubuntu computer, mkusb is likely the most suitable USB creation tool for you.

It builds a bootable flash drive with a FAT32 boot partition, thus booting BIOS or UEFI.

There is a ISO9660 read only secure OS partition. There is no need to encrypt this partition as it is standard unmodified OS.

The casper-rw Persistence partition offers persistence only limited by flash drive size.

A NTFS usbdata partition is usable for data on Linux or Windows computers.

Mkusb offers options to backup and restore the home directory, Wipe and restore the USB, write bootable images to USB, and has a Windows installer.

The home directory may be encrypted using standard encryption software.

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

If you are restricted to Windows, YUMI makes a good persistent flash drive, however I have not tried encryption with a YUMI drive. It's casper-rw file is different than most.


How can I install Ubuntu 12.04 from a USB

You can do this 2 ways:

If you really want to install from USB, then you should look here
I believe that the CD was not detected, because it's not the primary booting device, you have to change the order from which your computer boots in the BIOS, which normally can be accessed by some function key (in my case pressing F2) when PC just starts, you should find on how to do everything you need to install from cd here


How do I install ogg-opus codecs on my Meizu Pro5

Installing OTA-13 took care of the og-opus problem. Created others of course, but now i can listen to soothing music while dealing with other Touch frustrations.


My-Weather-Indicator Inaccurate, Not Able To Select Wunder Ground In Options

You need an API key:

Wunderground: http://www.wunderground.com/weather/api/
World Weather Online: http://www.worldweatheronline.com/register.aspx

Then paste in your key and activate.


Install sun-java6-bin from the Software Centre.

I have Sweet Home installed. When I remove sun-java, SH doesn't launch. When I reinstall it, SH launches.


"The system network services are not compatible with this version" - ubuntu 14.04

http://archive.ubuntu.com/ubuntu/pool/main/libn/libnl3/

Go to the above mentioned address and download three .deb files

libnl-3-200_3.2.21-1_amd64.deb
libnl-route-3-200_3.2.21-1_amd64.deb
libnl-genl-3-200_3.2.21-1_amd64.deb

this is for 64bit OS
for 32bit use i386.deb

( please confirm your OS whether 32bit or 64bit)

Place them in a new folder on desktop and name the folder abc.
Enter into it through terminal cd desktop abc
and do  "sudo dpkg -i filename.deb" for all the three.
Restart the system, you will get the network tab and its details on the top to access.

I had the same problem yesterday after updating the system.
I tried this it worked.


Going from windows to 12.04LTS, "LZMA Data corrupt" and "Kernel Panic- Not syncing VFS"

I had the same issue with Ubuntu 12.04 LTS on a desktop computer (Intel Dual Core processor) with the Live USB plugged into a USB 1.1 port (slooooow!). I worked around this issue by rebooting and trying to perform an installation again. I then only had another read error which was solved by pressing "Retry".

Try finding a faster USB 2.0 port if possible or use a Live CD.


When deleting a file in Nautilus, what's the difference between `del` and `shift+del`?

Works the same way as in windows ,also you can try it yourself

Create empty document by right click anywhere on desktop and going to create document option there you will find empty document option
after that delete that document with only del button
then recreate a document with same procedure or restore the previous document then
shift+del it.

You will see difference yourself(ubuntu recycle bin is trash the last Icon in dash[ubuntu start bar])


KEEP AWAY FROM SDA1 (FAT32)!!!
This is where your EFI boot loader is installed. You will have trouble after wiping it!

Usually the default installation option should give you a "/" partition and a "swap" partition (on UEFI systems also that additional boot partition). According to this, I assume, that this "unknown" partition /dev/sda3 used to be your swap, as the size would fit as well, until something strange happened. (Aliens? Who knows... ;D) Anyway, it is neither recognized nor mounted and Ubuntu is your only OS on that machine, so it should be safe to delete it. Then you can allocate the freed space to a brand new swap partition! You will have to edit the fstab config file to have Ubuntu mount and use it automatically. (details here)

You can resize your "/" partition, but shrinking is only possible when it is unmounted. Therefore you have to boot Ubuntu/any other distro from a live-cd/usb. Run gParted from there and resize it as you want, depending on how much free space is left inside the partition. Be aware that modifying partitions always may lead to loss of data, so I recommend you to do a BACKUP first! The new unallocated space then has to be converted into a new partition and formatted as ext4 file system. Then go on and follow this guide which tells you exactly how to make that new partition become your /home location.
Greetings and good luck.


Try sudo apt-get autoremove and then sudo apt-get purge samba*.


The short answer: Yes, Banshee will serve those needs (Source)

Banshee has had a history of being a decent linux alternative to iTunes, but it's still not perfect. Apparently it didn't work in 2009, but now it does since the update of libgpod-0.8.0, which is standard on the latest install of Banshee.


If 'pkexec' package is installed on your machine, please try the below command and enter the password when it prompts.

pkexec chmod go-w /usr/lib/sudo/sudoers.so

Or follow the below steps :

Reboot your machine and enter into a recovery mode. Then, drop into a root prompt. And execute below commands :

1. mount -o remount,rw /

2. chmod 644 /usr/lib/sudo/sudoers.so

3. chown root:root /usr/lib/sudo/sudoers.so

4. reboot

It should fix your issue.


How to speed up compilation of Ubuntu apps (make, cmake, gcc)

If a package supports it you can use the -j flag to allow parallel jobs running, e.g.:

make -j8

More details on this flag can be found in the Stackoverflow question Why does make -j perform better when it is passed a number larger than the number of cores available?.

Distributed compilation

If you have multiple machines, give distcc a go. On the involved machines, sudo apt-get install distcc. Assuming that your build machine is 192.168.1.1:

on the helper machines, run:

sudo distccd --log-file=/tmp/distccd.log --daemon -a 192.168.1.1

On the build machine, before running configure or cmake you have to specify hosts that you want to use for the build process. Optionally, specify the number of simultaneous jobs after a slash (defaulting to 4):

export DISTCC_HOSTS='localhost/4 192.168.1.2/8 192.168.1.3/8'

Make the compiler use distcc:

export PATH="/usr/lib/distcc:$PATH"

Now configure or cmake the application and build with:

make -j$(distcc -j)

Note that if you've put /usr/lib/distcc twice in your PATH, it'll fail. Be sure to set /usr/lib/distcc only once in your PATH.

For more details, see the manual pages for distcc(1) and distccd(1).


Turns out the issue was in the Nvidia driver. Few reinstalls later eventually skipping installing additional drivers made system to boot normally.
Costed me 8h of fighting with wifi drivers though, still didn't managed to fix it.


How can I transfer bookmarks from an old computer that ran Windows?

From the Mozilla Knowledge Base article “Export Firefox bookmarks to an HTML file to back up or transfer bookmarks”:

  This article explains how to export your bookmarks to an HTML file,
  which can be used as a backup or for importing into another web
  browser.

  Click the Bookmarks button on the right side of the navigation toolbar. On the menu bar, click Bookmarks. At the top of
  the Firefox window, click the Bookmarks menu and select
  Show All Bookmarks to open the Library window.

  Click the Bookmarks button and select Show All Bookmarks to open the Library window.
  From the toolbar on the Library window, click Import and Backup and choose Export Bookmarks to HTML....
  In the Export Bookmarks File window that opens, choose a location to save the file, which is named bookmarks.html by default. The
  desktop is usually a good spot, but any place that is easy to remember
  will work.
  Click the Save button. The Export Bookmarks File window will close.
  Close the Library window.

  Your bookmarks are now successfully exported from Firefox. The bookmarks HTML file you saved is now ready to be imported into another
  web browser.


From Firefox's media codec support table:

  To avoid patent issues, support for MPEG 4, H.264 and MP3 is not built
  directly into Firefox. Instead it relies on support from the OS or
  hardware (the hardware also needs to be able to support the profile
  used to encode the video, in the case of MP4). ... Linux since Firefox
  26.0 (relies on GStreamer codecs) ...

https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats

From GStreamers plugin lists:

  gst-plugins-ugly

    lame — Encode MP3s with LAME

    x264 — libx264-based H264 plugins

https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-ugly-plugins/html/ch02.html

Ubuntu:

  patent and copyright restrictions (see Ubuntu License Policy)
  complicate distribution of software to support non-free formats. ...
  However, you can install the ability to play popular non-free media
  formats ... by following the instructions below.

  ...

  Legal Notice Patent and copyright laws operate differently depending
  on which country you are in. Please obtain legal advice if you are
  unsure whether a particular patent or restriction applies to a media
  format you wish to use in your country.

  ...

  Manual Install

  If you are using regular, stock Ubuntu:

sudo apt-get install ubuntu-restricted-extras

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


Audio has a crackly echo in certain apps? (Ubuntu 16.04)

I actually discovered this by accident myself a couple days ago, in my case if I just let the audio play for about 10-30 seconds it eventually returns to normal.


Ubuntu 18.04: missing letters in login screen

I'solved this on my machine by editing /etc/gdm3/custom.conf and uncommenting:

#WaylandEnable=false

Found this info here: https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1760201


I read somewhere that if you log in to the asset store from unity installed on a windows machine then it will subsequently work on unix machines (can't find the link but it wasn't my idea).  I tried it and it does appear to work.  I've just downloaded my first asset from the asset store on unity/wine without getting a 401.

(There's no requirement for it to be a dual booted machine or anything like that.. I borrowed one of my children's friend's laptops).

The problem appears to be that it wants to ask for a username and password the first time you connect from a unity program but can't do that for some reason on linux (the  asset store web page stuff doesn't work).

Found it. DustyMonk is the hero in question.  See here https://github.com/Unity3D-Wine-Support/Unity3D-on-Wine/issues/5

LATE UPDATE The unity port for linux works really well now.  I suggest you try running it natively before running via wine.


Prepare a Ubuntu live cd and boot from it (Do not choose to install it again).

Open a terminal and mount the partition your Ubuntu Installation is on. If you are not sure which it is, launch GParted (included in the Live CD) and find out. It is usually a EXT4 Partition:

sudo mount /dev/sdXY /mnt

Replace the XY with the drive letter, and partition number, for example:
sudo mount /dev/sda1 /mnt.

Now bind the directories that grub needs access to to detect other operating systems, like so.

sudo mount --bind /dev /mnt/dev &&
sudo mount --bind /dev/pts /mnt/dev/pts &&
sudo mount --bind /proc /mnt/proc &&
sudo mount --bind /sys /mnt/sys

Now jump into that using chroot.

sudo chroot /mnt

Install, check, and update grub.

grub-install /dev/sdX
grub-install --recheck /dev/sdX
update-grub

You only need to add the drive letter (usually a) to replace X (do not use the partition number), for example:

grub-install /dev/sda
grub-install --recheck /dev/sda

Now grub is back, all that is left is to exit the chrooted system and unmount everything.

exit &&
sudo umount /mnt/sys &&
sudo umount /mnt/proc &&
sudo umount /mnt/dev/pts &&
sudo umount /mnt/dev &&
sudo umount /mnt

Shut down and turn your computer back on, and you will be met with the default Grub2 screen.


You are right, I have mispelled the third line.

My file was wrong, I misplaced origin/destination so I was mounting an empty folder over a full folder, and I was thinking it wasn't working while it was mounting it.

Thanks for your time


Use gksudo instead of sudo , because your are in graphic interface, so you can type the password.
Here you can see something about SysRq: Link


How to calcualate memory usage of Desktop enviornment

These tools show the memory usage of all running processes (for example when you are running Ubuntu with Unity, but no particular application program running).

free

I am also using

free -m  # Display the amount of memory in megabytes.

and I think the column 'used' is useful (no pun intended).

The output of free is explained in the manual

man free

  DESCRIPTION
         free displays the total amount of free and used physical and swap memory in the system, as well
         as the buffers and caches used by the kernel. The information is gathered by parsing /proc/mem‐
         info. The displayed columns are:

  total

  Total installed memory (MemTotal and SwapTotal in /proc/meminfo)

  used

  Used memory (calculated as total - free - buffers - cache)

  free

  Unused memory (MemFree and SwapFree in /proc/meminfo)

  shared

  Memory used (mostly) by tmpfs (Shmem in /proc/meminfo, available on kernels 2.6.32, displayed as zero if not available)

  buffers

  Memory used by kernel buffers (Buffers in /proc/meminfo)

  cache

  Memory used by the page cache and slabs (Cached and Slab in /proc/meminfo)

  buff/cache

  Sum of buffers and cache

  available

  Estimation of how much memory is available for starting new applications, without  swapping.  Unlike  the  data  provided  by  the  cache or free fields, this field takes into account page cache and also that not all reclaimable memory slabs will be reclaimed  due to  items  being  in use (MemAvailable in /proc/meminfo, available on kernels 3.14, emulated on kernels 2.6.27+, otherwise the same as free)

top

top will show the same (or almost the same) result (tested in 16.04 LTS), (but in older versions the output of top was more difficult to match to the output of free).

htop, more user friendly

You will get a similar result as 'used' with htop installed with

sudo apt install htop


Size of a request header field exceeds server limit due to many If-None-Match values

You've found the problem. Some user agents and some requests just get too big for web server defaults. It seems like a silly problem to run into but it keeps happening to me in nginx. Usually when there are silly cookie names and uploads going on... Anyway...

The solution is to just bump the request limit. You can do this globally or just for your site with the LimitRequestFieldSize directive:

LimitRequestFieldSize 32768

That's a 32KB (up from the default of 8KB) limit.


If you look at /usr/sbin/update-java-alternatives, you'll see it iterates /usr/lib/jvm/.*.jinfo to find the installed versions, so you could do the same for detecting the installed versions.

As for not modifying PATH every time, you can circumvent PATH completely by telling bash which binary it should use for java with the builtin hash command (run help hash).

Here's something you can build on:

java_use() {
    local file version versions=()
    for file in /usr/lib/jvm/.*.jinfo; do
        [[ -e $file ]] || continue
        version=${file##*/.} version=${version%.jinfo}
        versions+=("$version")
    done
    if (( ${#versions[@]} == 0 )); then
        printf >&2 'No java installed\n'
        return 1
    fi
    select version in "${versions[@]}"; do
        if [[ -n $version ]]; then
            export JAVA_HOME="/usr/lib/jvm/$version"
            hash -p "$JAVA_HOME/bin/java" java
            break
        fi
    done
    type java
}


SuperTuxKart 0.9.3-2 has no online multiplayer?

Online Multiplayer appear in SuperTuxKart 1.0

Ubuntu 19.04 Disco Dingo = SuperTuxKart 0.9.3

Ubuntu 19.10 Eoan Ermine = SuperTuxKart 1.0

For now you can install the snap version https://snapcraft.io/supertuxkart or the PPA for Disco Dingo https://launchpad.net/~stk/+archive/ubuntu/dev?field.series_filter=disco

Alternatively you can download it in your /home without installing. https://sourceforge.net/projects/supertuxkart/ Check the "README" file to see all dependent packages that you need to install. Open a terminal in the game directory and run ./run_game.sh to execute the game.


sudo airmon-ng start wlan0 doesnt find interface?

When you run an OS in VirtualBox, almost everything is sandboxed/virtualized. In other words, VirtualBox doesn't use your actual, physical hardware interfaces, but rather sets up its own network interface that is connected to your internet. Therefore, you can't run airmon-ng in VirtualBox. You instead need to run it as a Live CD or have a separate partition for this.


How to replace text from a match (but not every match)?

You can combine your substitute pattern with a range match.
sed -i '/<Directory \/var\/www\/>/,/<\/Directory>/{s/AllowOverride None/AllowOverride All/g}' file.txt


How do I perform a function similar to Windows' Easy Transfer?

In theory, using avahi you shoud get IP auto setup.

The relevant packages are:

avahi-autoipd
avahi-daemon
samba

After all of that is installed, you should be able to share a folder in the server computer and find it in the network browser in the client computer.


How to assign different IP on different computers using single network interface file

You wouldn't do it via the shared /etc/network/interfaces file.

To accomplish this, use dnsmasq's DHCP server. From man dnsmasq:

  The dnsmasq DHCP server supports static address assignments and multiple networks. It automatically sends a sensible default set of DHCP options, and can be configured to send any desired
   set of DHCP options, including vendor-encapsulated options. It includes a secure, read-only, TFTP server to allow net/PXE boot of DHCP hosts and also supports BOOTP. The  PXE  support  is
   full featured, and includes a proxy mode which supplies PXE information to clients whilst DHCP address allocation is done by another server.

   The  dnsmasq  DHCPv6  server provides the same set of features as the DHCPv4 server, and in addition, it includes router advertisements and a neat feature which allows nameing for clients
   which use DHCPv4 and stateless autoconfiguration only for IPv6 configuration. There is support for doing address allocation (both DHCPv6 and RA) from subnets which are  dynamically  dele‐
   gated via DHCPv6 prefix delegation.

By careful reading of man dnsmasq, you will see how you can assign specific IP addresses to specific 48-bit MAC addresses (the HWaddr field of ifconfig output).


ssh tunnel collapsing for EXACTLY two hours constantly?

Use autossh. It will periodically check the tunnel and once it breaks, it reconnects automatically:

autossh -M 2000 -R 49666:localhost:22 (my name@ my home ip) -N


gnome-tweak-tool turned fonts into rectangles

Using the same tool change all fonts again to Ubuntu or any other standard font that can deal with Ubuntu. Some fonts are not standard, and doesn't cover full set of chars, so when system tries to use a char, for example in bold mode, and that mode does not exist in font, it is shown with a rectangle.


Real Time Message Notification App for AskUbuntu and/or StackExchange

Solution:

After doing some research on stackapps.com (thanks again to saiarcot895 for the tip), I finally found what I was looking for, namely an easy way to get notified about new answers, posts and/or comments for the topics that I am interested in and are listed on askubuntu.com and all the other places from StackExchange network.

The application is called StackTracker (a Cross-platform desktop notification app) and it can be used natively in Windows and Mac OS X. If you want to use it with Ubuntu/Linux, you need to install Wine and start this app using Wine. The official page will provide you with a download link for a Linux version of StackTracker but there is no Linux package in there only a fake link. I may be wrong but I was not able to find any package built for Linux in there.

StackTracker can be found and downloaded on this page, and it won't require users to actualy login or enter a password or things like that. The application displays a task tray notification when someone has posted an answer or a comment to a question you are tracking on any of the StackExchange sites. Clicking the notification will open the corresponding question in your browser.

Already tested it in Windows and also in Linux (via Wine), and it works fine. It uses very few resources if any.


Disable vibration when pressing key on Ubuntu Touch

You can run

echo 0 | sudo tee /sys/class/timed_output/vibrator/amp

in the terminal / in the adb-shell.
This will disable the vibration until the next boot. To re-enable it, you can use

echo 70 | sudo tee /sys/class/timed_output/vibrator/amp

If you want to disable vibration automatically on boot you can put the following text in a new .conf-file (e.g. vibration_disable.conf) in /etc/init/:

start on runlevel [2345]
stop on starting rc RUNLEVEL=[016]
script
      echo 0 > /sys/class/timed_output/vibrator/amp
end script

I am not totally sure if this the best/proper way of doing this, but it should work.


Ubuntu 20.04 android studio slow startup?

sudo apt install appmenu-gtk2-module and restart fixes it for me, it now starts up instantly. I'm using the snap version.


To mirror displays in Ubuntu

Open system preferences Click screen displays (under hardware) and then tick the check box mirror displays  Then click apply


KDE Theme broken after 13.10 → 14.04 upgrade

I found a solution in the Arch Linux Forums:

  It turned out it is indeed a configuration error. To anyone having this issue: delete ~/.config/Trolltech.conf

That fixed it.


Ubuntu 18.04 missing 'Global Dark Theme' Option in GNOME Tweak Tool

You probably look for the Adwaita-dark theme

gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita-dark'

you will also find a Firefox Extension to make it dark too
https://addons.mozilla.org/en-US/firefox/addon/adwaita-dark/


What happens after the supported 9 months?

In short, you'll stop getting fixes for security problems.

When a security flaw is discovered in a piece of software during its security support lifetime, the vendor (Ubuntu) will endeavour to release an update to the software which fixes the security flaw.

After the security support lifetime has elapsed, the vendor will no longer provide updates which fix security flaws, even if new security flaws are discovered.

From your point of view, after the support lifetime elapses, you will not notice anything happening at first, except that software on your system will cease to receive updates, and this may leave your system vulnerable to security flaws even if they have been publicly reported.

Thus, it is important to upgrade to a newer version of Ubuntu which is supported, so that you can continue to receive security updates.

You can upgrade Ubuntu at any time to the next version, or from one LTS version to the next LTS version, whether security support has ended or not, though it's a good idea to do so before that happens so as not to leave your system vulnerable.

If you choose to install the LTS version (the most current one of which is 14.04), this will receive support for 5 years, instead of the usual 9 months.  This is a better option if upgrading at least every 9 months is too frequent for you.


How can I change all files prefixes in one command?

Use the Perl program rename which is installed by default:

rename 's/\.JPEG$/.jpeg/' *.JPEG

The first argument is a Perl regular expression matching filenames ending with .JPEG and replaces it with .jpeg.

The second argument selects the files that should be matched, in your case every file in the current directory ending on .JPEG. You could specify a different location of course:

rename 's/\.JPEG$/.jpeg/' ~/Pictures/*.JPEG

Other answers I've seen:

rename s/.JPEG$/.jpeg/ * - this will also rename files like StupidJPEG to Stupi.jpeg because the dot is matches any character. .JPEG$ is a regular expression
rename 's/\.JPEG$/\.jpeg/' * - works, but it's less efficient because it passes all files in the current directory to rename.
rename -n 's/.JPEG$/.jpeg/' *.JPEG - the -n option would show the files being renamed, without actually renaming them ("dry run"). Because *.JPEG matches files postfixed with .JPEG only, the dot-matches-all issue is non-existent here.


Unhandled event loop exception "Unknown Mozilla path" with Eclipse 3.7.1

The current Tizen IDE is based on Eclipse 3.7.1, and Eclipse SWT faq page page lists
the required Xulrunner versions for Eclipse:

  Eclipse 3.7.x/4.1.x: Mozilla 1.4 GTK2 - 1.7.x GTK2,
  XULRunner 1.8.x - 1.9.x and 3.6.x (but not 2.x), WebKitGTK+ 1.2.x and newer

There are two solutions to this problem:

Manually install XULRunner and install it
Configure Eclipse to use Webkit instead of XULRunner

Manual installation of XULRunner
A compatible version of - XULRunner 3.6.x - can be downloaded from Mozilla's ftp server at http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/3.6.28/runtimes/

Extract the xulrunner folder into your home directory, e.g. /home/username/opt/xulrunner.

Configure Eclipse to look for XULRunner in that folder by adding the following line to the tizen-sdk/ide/eclipse.ini file:

-Dorg.eclipse.swt.browser.XULRunnerPath=/home/raju/opt/xulrunner

Restart Eclipse and everything should work as expected.

Use Webkit instead of XULRunner
Install the package libwebkitgtk-1.0-0 and configured Eclipse /
TizenIDE to use Webkit instead of Xulrunner by adding this line to the
eclipse.ini:

-Dorg.eclipse.swt.browser.DefaultType=webkit

Restart Eclipse and you are ready to code.


Theme conflict on dual-boot of Ubuntu 10.10 & Fedora 14

You can fix this by changing where gconf stores its configuration data for each distro.

The config file is in /etc/gconf/2/path in each distro.  So you're going to want to edit this file once in your fedora partition, and once in your ubuntu partition.  The config option you want is in this line:

# The default storage location, ~/.gconf
# This should be the only readwrite source
xml:readwrite:$(HOME)/.gconf

You can change it to something like xml:readwrite:$(HOME)/.gconf_ubuntu for ubuntu, or add _fc for fedora, or whatever you'd like.  This way, ubuntu stores its settings in a separate place from where fedora does, so they won't clobber each other.  Apps that don't use gconf (firefox, etc.) will still share configuration.

You can also change some of the other "include"s in the User Preferences section and rename them depending on the distro you're using.

We use this for shared NFS homes at work and it seems to work great.


I just checked my installation of 13.04, and Mono is not installed.

To install Mono, this will install Mono Run-time, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo apt-get install mono-runtime

If mono Develop is what you're after, then

sudo apt-get install monodevelop

Mono focuses on compilers and run-time libraries and does not directly provide an IDE. MonoDevelop is a cross platform IDE mostly aimed at Mono/.NET developers. For more info see MonoDevelop, and Mono


Chrome not accepting US international with dead keys keyboard 14.04

Here a late solution (that worked at least for me)

Open terminal in your home directory. Open the file .xinputrc (you should have one) and comment the line:

run_im xim

Reboot your computer, and now you (hopefully) the problem is fixed.


overheating and battery drain MacBook pro

No wonder you are having power issues with your computer. There are a few things you can do to get your computer behave as it should when running Ubuntu, I will describe them next but first there is some theory you should know:

Apple manufactures their products in a tightly integrated way to achieve the great performance one often can appreciate on them; as such it is absolutely normal that when running their HW with their SW it behave (almost) as an homogenous unit. But when you install anything else to the same HW - or conversely their SW on another HW - it is logical to expect rough edges and funny behaviour.
GNU+Linux has made a lot of improvements in the lasts years regarding power consumption and most of it thanks not to HW manufacturers but to the amazing hackers that contribute their grey-matter to the kernel and the different open-source related projects as Ubuntu. It is easy for other platforms to achieve great power consumption performance when manufacturers build their products specifically tailored for those systems following their specs.
The biggest problem nowadays regarding laptops becoming hot is the GPU hybrid model as its management still's not fully implemented in all GPUs combinations under GNU+Linux.

With that in mind there is a couple of things you can do to achieve a near perfect power consumption performance under Ubuntu - as well under most other distributions:

Switch off your DIS (discrete) GPU if you're not using it
Use TLP - and ThermalD when your HW allows it
Use PowerTop to learn what parts of your HW should be set to stand-by and make the changes permanent by loading them on every boot by using /etc/rc.local and /etc/pm/sleep.d

As a result of applying these simple steps I could squeeze an extra and half hour when using battery on my crappy laptop (HP Pavilion dv7-4287cl) not to mention it keeps cold almost all the time: it isn't just when using the DIS GPU or 'forcing' the IGD GPU when watching 1080p videos full-screen, running Google Earth and so on.

Note: I acknowledge that setting your system to behave as you expect regarding power consumption isn't as easy as 1,2,3 GO! in Linux and I myself have been researching the subject for quite some time now, I will be updating this answer with a step-by-step guide when the blog post is ready. In the meantime you already have the tools to start tweaking and optimizing your system.


I just wanna disable my secure boot policy on win 8 to install ubuntu,how do i do that?

You need to disable secure boot and enable legacy boot.

Shut down your computer and reboot. Hold the F10 key as it restarts and you should go into the setup menus. Select the 'security menu' then 'secure boot configuration', then after clicking a 'accept' screen you should be able to change your settings.


How to connected 2 external monitors via Lenovo thinkpad dock to laptop with Ubuntu 20.04.1. LTS?

I had a similiar problem, with or without dock my external monitor was not working with my thinkpad t14s with ubuntu 20.04 kernel 5.4.
You can check your kernel version using
uname –sr

After updating my Linux kernel to 5.8 ( current latest version ) the problem was gone.


After waking up from sleep Ubuntu freezes about 20-30 seconds

Had the same problem on a Thinkpad T440p with Ubuntu 20.04.2 TLS (64-bit).
Uninstalling fprnitd fixed it (the fingerprint login didn't work very well for me anyway):
sudo apt remove fprintd


Cannot login after install windows on ubuntu

It's difficult to say exactly wath is the problem.

I think the best is, to start in recovery mode (Grub - Ubuntu recovery), and deinstall the gtx driver from Ubuntu.

In recovery mode you can access ubuntu shell.

I hope this will help you. Its very difficult to make a remote diagnosis.


Cannot find Samba in Ubuntu 16.04 LTS Dash

I had the same problem.
Having installed Ubuntu Mate 16.04

gksu system-config-samba

ended up with message:

SystemError: could not open configuration file `/etc/libuser.conf': Datei oder Verzeichnis nicht gefunden

Funny ;-) solution: simply create the file:

sudo touch /etc/libuser.conf

restarted the server:

sudo service smbd restart

it worked! I can start the configuration tool from the ubuntu mate GUI menu now.


On 18.04, package "virtualbox-guest-utils" does not exist

virtualbox-guest-utils exists on bionic in the multiverse repo. Simply ensure you have this repository enabled.

om:~$ apt policy virtualbox-guest-utils
virtualbox-guest-utils:
  Installed: (none)
  Candidate: 5.2.10-dfsg-6ubuntu18.04.1
  Version table:
     5.2.10-dfsg-6ubuntu18.04.1 500
        500 ssh://[my-server]/apt-mirror/mirror/us.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages
     5.2.10-dfsg-6 500
        500 ssh://[my-server]/apt-mirror/mirror/us.archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages


What advantages do RAID installations provide?

RAID is simply put a way to make two or more disks act as one - with some benefits:

RAID 0 is making the disks act as one physical disk. this means that the controller can split the files over both disks when writing and reading, which can improve the performance quite a bit. This also means that if one of your disks fail, the data on both of them are likely lost.

RAID 1 is mirroring; you need two identical disks, and you only get the space of one (two 1TB disks in RAID 1 only gives a 1 TB disk). The benefit here is that this enables the system to read from two different disks at the same time, even though write times might suffer a bit. Another benefit might be that if one disk fails, the data is mirrored on the other disk, but it is not completely without risks (see wikipedia)

Higher raid levels are possible, but you should read about them on wikipedia.


Multiple problems with C++ IDEs. Netbeans not working. Codeblocks Indenting not working

The eclipse-cdt package contains Eclipse features and plugins that are useful for C and C++ development. To install eclipse-cdt in all currently supported versions of Ubuntu open the terminal and type:

sudo apt install eclipse-cdt

fos4cdt is an Eclipse plugin to format C/C++ source files on any save action. When you press Ctrl+S or click the Save button, the plugin formats saved files automatically. You can enable/disable auto formatting by a preference page and using shortcut keys.

fos4cdt can be installed in Eclipse from the Eclipse Marketplace. To open an Eclipse Marketplace window in Eclipse select Help -> Eclipse Marketplace -> search for fos4cdt -> click Browse for more solutions link to open http://marketplace.eclipse.org in a new tab in Eclipse -> click the house icon underneath the Eclipse icon to go to the fos4cdt download page.

before code formatting

after code formatting

I tested the fos4cdt Eclipse plugin against UniversalIndentGUI from the Ubuntu repositories. fos4cdt does a better job of pretty formatting code than UniversalIndentGUI. UniversalIndentGUI indents code logically, but except for fixing the indentations it does not do any other pretty formatting.


Ubuntu 13.10 does not boot after successful installation: 'all boot options are tried'

Its a problem in your ubuntu cd installation.
Try to download and burns again then install your ubuntu.


Ethernet port and WiFi adapter not detected, Ubuntu 16.04

Can you see on taskbar the wifi icon? If yes, click on it & ensure 'Enable Networking' & Enable Wi-Fi is checked. Try this first. Hope it'll helps.

Start Adding your Ethernet first & set all to automatic settings to see how it works.

Click Add button to adding new network

Select Ethernet & click Create

Checked the box as in picture

Key in device address(open terminal, type ifconfig & see HWaddr) set to Automatic & checked Default

Leave the rest & click Save.
See how it works!


Try installing git-daemon-sysvinit before git-all:

sudo apt-get install git-daemon-sysvinit

git-daemon-sysvinit is an alternative for git-daemon-run, and it works better on Ubuntu 15.04 and up. (See https://bugs.launchpad.net/ubuntu/+source/runit/+bug/1448164)


This answer is based on an edit by the user to their own question.  They should still answer when they can.

Run an e2fsck -v /dev/device (replace /dev/device with the actual device path), and it can probably fix the issue.


How to preserve mysql 5.7 install, avoiding future upgrade to mysql 8

Easiest and most resilient method would be to install mysql from source in /opt/ and use that version instead of the native one. You can copy the databases (without mysql running) in '/var/lib/mysql/ over to /opt/ and be totally independent of Ubuntu.


sound keeps switching from line out to headphones randomly

After searching for a fix for two months i encountered a solution. You have to use hdajackretask to set your "Green Headphone out" to override and not present. Then you click on install boot override, reboot and the problem it's gone. Hope you find that solution usefull.


how to install amd raedon graphic card in ubuntu 14.04

Warning: this may break your computer. Make sure you have important things backed up, and a ubuntu usb on hand.

So what you're asking is how to install the drivers. You're at the right settings. Just select one of the two (fglrx) and let it run through its little loading thing. If it works, it might perform better for you. If not, it might break everything, and fail to load properly when you turn your computer on. In that case, boot from USB, install & select to keep your files, and everything should be alright. If not, you made a backup. Right?


Ubuntu 12.04 LTS only works when when I replace splash with acpi=off

Don't rule out a hardware issue, either mobo, ram, or HDD.  I had a fairly similar experience and it turned out to be a failing HDD.  What fixed it was Spinrite, a HDD utility at:

http://www.grc.com/sr/spinrite.htm.

Its a bit pricey, but I've saved numerous systems with it.


How to leave Windows 10 and get back to Ubuntu?

The issue was, that when Windows was loaded (or maybe updated) it switched around the boot order in the UEFI settings.
For a one-time solution, I was able to go follow this guide
How to enter UEFI (BIOS) on Windows 10 PCs | Windows Central
to get to UEFI:
in windows 10
Settings > Update & Security > Recovery > Advanced Startup > Restart now
on blue screens:
Troubleshoot > Advanced options > UEFI Firmware Settings > Restart
This got me to a UEFI menu where I could find out the boot order was switched to:

Windows boot manager
ubuntu

Swapping them around, saving and restarting got me back to where I could select Ubuntu.
For a more permanent solution this answer goes into more detail:
Windows 10 changes UEFI boot order every time - Ask Ubuntu


Youtube-DL: Is there an output wildcard for which site the video is being downloaded from?

You can probably use the extractor name as a proxy for site, especially if it's limited to Youtube and Vimeo.

  extractor (string): Name of the extractor

Thus

youtube-dl -o '%(extractor)s'

with a youtube URL will output to a file named youtube.mkv by default. Add other identifiers from the list as you see fit.

Here's a complete list of extractors, and as you see, major sites have their own specific extractor which will give you information about which site it was downloaded for. The Vimeo extractor is named vimeo.


It's a longshot, but maybe the screen is in sleep mode and doesn't turn back on after a restart. This is a note I wrote to myself for when I do formats: "remove the screen locker light-locker on laptop and replace it with xscreensaver; xfce4 power manager doesn't restore screen power so disable 'Display power manager' in its settings"*. So in your power manager, disable its display management so it doesn't go to sleep, or blank, or switch off.

*It's a known bug: https://wiki.ubuntu.com/TrustyTahr/ReleaseNotes/Xubuntu

PS Haven't the reputation to comment.


Laptop freezes with power when trying to suspend or hibernate (Ubuntu 18.04)

This was a hardware issue. After replacing the motherboard (under warranty) the issue is gone. Hopefully this might help someone with similar issues - sometimes the OS and bundled software is not at fault.


The graphic performance is very low for dell n5010

Identify the graphics hardware of your DELL Inspiron N5010 model, open a terminal and execute:

lspci -k | grep -EA2 'VGA|3D'

When the output shows only the integrated intel graphics, suitable drivers are already installed.

When the output shows AMD graphics additionally you will have to use the open source radeon drivers, which are already installed as well. Unfortunately the proprietary AMD Catalyst drivers (fglrx) currently do not work in Ubuntu 15.10 with kernel 4.2, see Wily Werewolf release notes. You can check and follow the fixing process here : The fglrx driver is not compatible with gcc 5.

In case you performed an upgrade from Ubuntu 15.04 with AM drivers installed, remove them.

sudo apt-get purge fglrx
sudo reboot

If you performed a fresh (clean) installation of Ubuntu 15.10 - this removal step is not necessary.

As far as I know DELL Inspiron N5010 ships either with only intel or with  dedicated AMD graphics.
Whenever there are special models on some markets that have an NVIDIA graphics card, you can install the proprietary NVIDIA graphics drivers as an alternative to open source nouveau drivers.


Did you update Git GUI or did an upgrade with sudo apt-get upgrade?
Cleaning and reinstalling git-gui might work. So try running the following commands in a terminal:

$ sudo apt-get remove --purge git-gui
$ sudo apt-get update
$ sudo apt-get install git-gui


Realtek RTL8723BE/RTL8188EE 802.11b/g/n Wireless LAN Drivers

You can find the latest official drivers for this card and the install instructions at this GitHub repo.


Grub does not see Windows 7 after being fixed

If Grub doesn't recognize Ubuntu after being repaired, but Ubuntu boots, open a terminal in Ubuntu and run the following command (as @Braiam also suggested):

sudo update-grub

It will refresh the Grub menu and add any other detected operating systems to the Grub menu and enable you to choose to boot from them on startup.


How to remove files downloaded from CS:GO Online browser game?

Delete the files from the cache should take care of it.


Plymouth taking a lot of time during boot

You can remove plymouth during your boot up process and display progress messages by using:

sudo -H gedit /etc/default/grub

Find the line containing:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

and remove quiet splash between the double quotes. If you have additional parameters leave them as is.

Save the file and run:

sudo update-grub

Then reboot and watch the messages that appear for any clues on what is causing delays.

After boot completes run:

systemd-analze blame

once more and report back with the results.


netplan nameserver settings not used in nslookup for specific interface

The /etc/resolv.conf contains a nameserver entry for 8.8.8.8

Where does this come from?  Is /etc/resolv.conf a static file, instead of a symlink to ../run/systemd/resolve/stub-resolv.conf, as it should be?

Your netplan config does not mention 8.8.8.8, and this is not a default in Ubuntu.  But systemd-resolved will pick up statically-configured DNS servers and inject them into its config.

It may be that changing /etc/resolv.conf to the symlink it's expected to be, and then running sudo systemctl restart systemd-resolved, may be enough to solve your problem.


Dual DVI Monitors not Extending, Lubuntu

Check the BIOS settings and make sure any other graphics is turned off except for the 980. Also make sure you are using the Nvidia driver.
I am using two monitors on Ubuntu 14.04. There is a display setting that shows the monitor positions and if it shows the extended display you should be seeing that on your screens.
I turned off the sticky edges and turned off the Mirror displays in the screen display settings. Also set the launcher in the left display.


Is there any log kept of the files I delete?

No, besides sending files to Trash before actually deleting there is no registration of what was deleted.


It depends on your network setup but a safe (mostly) bet is:

Network 10.0.2.0-10.0.2.255
Router 10.0.2.1
Server (existing) 10.0.2.10
Server (new1) 10.0.2.11
Server (new2) 10.0.2.12
Server (new3) 10.0.2.13


Ubuntu Server 12.04 on IBM x3300 M4 - Grub is not installing

load default setting and restore setting on BIOS, install ubuntu. after finish, boot using IBM Server Guide CD/DVD and set to RAID default.


Can not activate "Add a vpn connection" button in Ubuntu

I had the same problem. You have to click on Edit Connections > Add > Choose your VPN protocol. Than you should be able to configure a connection.


how to display number of lines in running shell file

echo "This file has: " wc -l mendietaRPgm4.sh  "lines of code"

This is echo command with 5 strings given as arguments ( and 5 because of the double quotes ). What you want is to use $(...) command substitution - whatever command is inside will run and its output will replace $(...).

echo "This file has: " $( wc -l mendietaRPgm4.sh ) "lines of code"

This is closer, but not ideal, because wc -l file.txt will output filename. For example

$ wc -l /etc/passwd
47 /etc/passwd

Now, if you redirect the file into stdin of wc command, it won't output the filename ( since stdin technically has no filename ).

echo "This file has: " $( wc -l < mendietaRPgm4.sh ) "lines of code"

This now is proper. For brownie points, I would recommend reading bash manual to find out what variables you can use to refer to the script itself. Because currently, your script aims to hard-code the script name within itself, and that's not flexible nor practical. Once the script is renamed, the command will produce errors. But that's an extra exercise for the readers.


Ubuntu 16.04 installing Epson driver fails on LSB >= 3.2

solution is easy, at first

sudo apt-get install printer-driver-escpr

after that search on your computer Printers after having connected the printer click on Add and after click on the model of your printer and follow installation


The OAuth consumer key/secret appear to be coming from the /usr/share/gwibber/data/twitter file.

These values override the keys from microblog/util/const.py, which would presumably be the upstream consumer key.


I experienced similar issues when installing Ubuntu 20.04 on my MSI GE66.
I was able to solve a few of the problems.
WIFI issue [solved]: https://askubuntu.com/a/1324339/1029809
Bluetooth issue [unsolved]: Bluetooth rapidly toggling on and off on MSI GE66 laptop running Ubuntu 20.10, using 100% of CPU
Multiple displays: You need to install the NVIDIA drivers to support external displays. You can do that by running: sudo ubuntu-drivers autoinstall. If that doesn't work for you, then you'll need to specify the drivers you want to install: sudo apt install nvidia-driver-xxx.


In my little experience is better to use those settings(at least work for me)

type disk = qcow2
cache  = none
i/o mode = native

Maybe try


On Ubuntu, the standard cgi-bin directory is /usr/lib/cgi-bin.


How to get write permission for folder and subfolders

check the rights of the files you want to access in react-native-flow-3

ls -l /Projects/javascript-questions-flow3/react-native-flow-3

who owns the files?

May be you need to add jonas to the group root too.

usermod -a -G root jonas

And why dont you change react-native-flow-3 from root to jonas?

chown jonas.jonas react-native-flow-3

May be you should got through this tutorial
https://www.digitalocean.com/community/tutorials/an-introduction-to-linux-permissions


How to stop using Anaconda's Version of OpenSSL

The openssl package installs an executable file called openssl as /usr/bin/openssl (see dpkg -L openssl).

You have openssl installed as /home/vedantroy/anaconda3/bin/openssl.

The directory /home/vedantroy/anaconda3/bin occurs in $PATH before /usr/bin appears.

Your $SHELL picks the first openssl it sees.

You have several choices:

Rearrange $PATH. However, if there are any other system binaries Anaconda wants to override, this will screw that up.
I assume that you own the directory /home/vedantroy/anaconda3/bin, so chmod -x /home/vedantroy/anaconda3/bin/openssl;rehash will let you use /usr/bin/openssl.
Add alias openssl="/usr/bin/openssl" to your ~/.bashrc. WIll only work for shells.


How do I enable image auto-updating in LXD?

You can enable auto-update on a per-image basis by editing the config with

lxc image edit <img>

and setting auto_update: true as a top-level item in the config


Try pressing a key at the aubergine screen, then hitting F6 and then Escape to edit boot options.  Remove "quiet" (and "splash" in the case of the desktop CD) and see if you get some more information that way.

Which architecture are you using?  If amd64, try either i386 or amd64+mac instead.


Can I adjust the minimum brightness for my laptop's LCD?

Check /etc/acpi/events/ and you should find some files named something like asus-keyboard-backlight-down and -up, along with several other events.

Don't edit those, but take a look at the shell scripts in /etc/acpi/. Mine, /etc/acpi/events/asus-keyboard-backlight.sh looks like this: (The comments are part of the script, NOT mine)

#!/bin/sh

# this directory is a symlink on my machine:
KEYS_DIR=/sys/class/leds/asus\:\:kbd_backlight

test -d $KEYS_DIR || exit 0

MIN=0
MAX=$(cat $KEYS_DIR/max_brightness)
VAL=$(cat $KEYS_DIR/brightness)

if [ "$1" = down ]; then
        VAL=$((VAL-1))
else
        VAL=$((VAL+1))
fi

if [ "$VAL" -lt $MIN ]; then
    VAL=$MIN
elif [ "$VAL" -gt $MAX ]; then
    VAL=$MAX
fi

echo $VAL > $KEYS_DIR/brightness

Obviously, given that script, the minimum brightness is already 0. It's also pretty obvious how to change the increments.

Perhaps your script is different, or perhaps you will be called upon to write a new script entirely.

I don't know what will happen if you mess with the max_brightness setting, and make it higher than the actual maximum. Probably something bad.

For more information on ACPI events like that, see here: https://help.ubuntu.com/community/LaptopSpecialKeys


I have two versions of LibreOffice installed: how to remove the older one?

Try this command:

sudo apt-get remove --purge libreoffice4.2*

What this does is matching of the libreoffice packages with the version 4.2 and removes them.
After removing it is advised to reboot.

Source: http://www.askmetutorials.com/2014/03/install-uninstall-libreoffice-422-on.html

If the "older" version that you want to remove is different than 4.2 or if you want to have a more recent version than the one you have now, you may consider using Synaptic Package Manager to remove all the versions that you installed (searching 'libreoffice') and then

 sudo add-apt-repository ppa:libreoffice/ppa
 sudo apt-get update
 sudo apt-get install libreoffice


Just get it from Java.

Download the latest version from Java.com
Extract it:

sh jre-6u30-linux-x64.bin

Find the fonts. In my case they're just sitting in jre1.6.0_30/lib/fonts
Install them. You can just double click each font and click install font. Or you could copy them into your local .fonts directory like so:

mkdir -p ~/.fonts
cp jre1.6.0_30/lib/fonts/*.ttf ~/.fonts/


How can I stop banshee from downloading podcasts as 'read only'

In a case like this, the best bet is to report a bug in banshee's bug tracker. If the bug is fixed, you'll get the update in the next release.


Ubuntu 14.04 won't connect to eduroam ethernet

It seems today it was actually problem with the network because other computers also experienced similar error. I'm gonna mark question as solved but will write again if this condition continues. Cheers!


Viber sounds distorted when i get a new message

I have found the answer here: LINK

You have to modify the following line in /etc/pulse/default.pa
load-module module-udev-detect
with :
load-module module-udev-detect tsched=0

This is exactly what solved my problem.


How can I get tab completion with juju in zsh?

If you don't already have custom completion scripts, make a directory (e.g.,
~/.zsh/completion) and add a line like fpath=(~/.zsh/completion $fpath) to
the top of your .zshrc.

You can then visit http://bazaar.launchpad.net/~benji/+junk/zsh-juju-completion/view/head:/_juju
and click "Download File" and save it as _juju in the directory you made.

Alternatively, if you have bzr installed, you can fetch the file like so:

bzr cat http://bazaar.launchpad.net/~benji/+junk/zsh-juju-completion/_juju > ~/.zsh/completion/_juju

The completion file is generated by the script located at

https://code.launchpad.net/~benji/+junk/zsh-juju-completion.

I'd like to add completion of service, unit, and charm names eventually.  Patches welcome!


There is the error that occurs whenever i try to download dependencies?

The error says, that it cannot unpack the package libc6-dev-i386, because one file already exists from a different package and apt-get will not overwrite existing files.

  trying to overwrite '/usr/include/sys/uio.h', which is also in package libc6-dev-amd64 2.19-0ubuntu6.13

You can try deleting one of the offending packages:

sudo dpkg --force-overwrite --purge libc6-dev-i386

or

sudo dpkg --force-overwrite --purge libc6-dev-amd64

If both packages are needed by other software packages that you want to keep, you could try installing the new package and force overwriting files as described in this answer:

sudo apt-get -o Dpkg::Options::="--force-overwrite" install libc6-dev-i386

Note: this may lead to problems with the first installed package.


If do-release-upgrade fails, you might need to edit the release-updates file. Open that file with a text editor (e.g. nano)
nano /etc/update-manager/release-upgrades
Edit the last line to say:

Prompt=normal

Then run do-release-upgrade (without the -d flag)

When the upgrade is complete, edit that line again to say
Prompt=lts


Is there a "bartender"-like app for Ubuntu?

Ubuntu pioneered "indicators" instead of "system tray icons" as they were before in order to solve this problem. There are now a limited number of indicators that are based on function, and each indicator can represent multiple applications.

Examples: the sound indicator controls your system volume and also your music player; the messaging indicator interfaces with instant messaging, email and microblogging.

More information at: https://wiki.ubuntu.com/DesktopExperienceTeam/ApplicationIndicators

However, this is really for developers. I'm not aware of any mechanism that allows users to collapse multiple system tray icons without getting a developer to alter the program. Perhaps someone else has an answer for that.


You're seeing the effects of the ForwardX11Trusted option being turned off in ~/.ssh/config. When this option is set to no, remote X clients have fewer permissions on the local X server; this removes some ways in which the administrator of the remote machine can harm yours, but not all of them, so it is not an effective security measure. In addition, this option prevents new X clients from connecting if more than 20 minutes have elapsed since the connection was established.

Ubuntu has this option default to off, but the upstream default has it on. The client machine you're using must have been upgraded or had its configuration changed. Turn on ForwardX11Trusted in your ~/.ssh/config by adding the lines

Host *
ForwardX11Trusted yes

Recent versions of ssh allow the delay to be configured through the ForwardX11Timeout option, so you can leave ForwardX11Trusted off (for whatever benefit it might provide) and set a very high timeout.


How do I get Ubuntu Time at other locations?

You can use tzselect command, it will prompt you about zones to choose to show the time in it.

   tzselect  is  called  without any parameters from the shell. It shows a
   list of about one dozen geographic areas one can roughly  recognize  as
   continents.  After  choosing  a  geographic  area  by number, a list of
   countries and cities in this area will be shown.

   You can press the Enter key to reprint the list. To choose a  timezone,
   just  press  the number left to it.  If your input is invalid, the list
   will be reprinted.

   You may press Ctrl-C to interrupt the script at any time.

But note this from man tzselect:

   Note that tzselect will not actually change the timezone for  you.  Use
   'dpkg-reconfigure tzdata' to achieve this.

So in order to change your timezone you should use the command:

sudo dpkg-reconfigure tzdata


mac os in Virtualbox does bot recognize Iphone

MacOS has changed the policy of USB in virtual machine passthrough.  And the iPhone 6 already does not have technical support from Apple, but it can still be connected to VirtualBox.
Starting from the iPhone 7, Apple support blocks the ability to connect the device to  VirtualBox. I use USB over ethernet to connect and test apps on the iPhone. I hope this problem will be solved with a free option at the nearest time.


What is the largest possible size of a root partition?

Depends on the filesystem used for /.

Provided your 'initramfs' can use that filesystem (modules available at boot time), it all depends on which you chose.

Ext3: max 16 TiB
Ext4: max 1 EiB
XFS: max 16 EiB
*fs: you get the point


My command will not run, even though it is recognised as an executable

Your binary is not in the $PATH variable/environment and therefor not known to the shell.

You need either to call it by using

./tester

or add it to the path

set PATH=$PATH:/path/to/tester

To make the the change to the path permanent put this line into your ~/.bashrc

export PATH=$PATH:/path/to/tester


In 14.04 the gnome-session package was split so that there is also an ubuntu-session package. In a standard Ubuntu 14.04 install, the gnome-session part won't be installed by default, so if you only installed gnome-shell you won't get the /usr/share/xsessions/gnome.desktop xsession file which is what LightDM reads to add the session. So the fix is:

sudo apt-get install gnome-session

In previous versions both the Unity and gnome-shell xsession files were in the same package and installed by default so you only needed to install gnome-shell.


Create a Screen session with a bash script using crontab

Start screen in detached mode, and make it run your command inside it:

screen -d -m -S bukkit bash -c 'cd $HOME/server && java -jar bukkit.jar'

You might want to create a dedicated script bukkit.sh:

#!/bin/bash -e
cd ~/server
java -jar bukkit.jar

So that if the script becomes more complex you don't have to write a long line for screen, and so the screen command can stay the same, simply:

screen -d -m -S bukkit path/to/bukkit.sh


How would I export information produced from script onto a text file

./someScript.sh > someFile.txt

Now enter address (e.g. google.com) and hit enter

Or more correct solution - edit script.
For example:

#! /bin/bash

echo "Enter web address : "
read address
echo "Entered web address : $address"
nslookup "$address" > someLogFile.txt

UPD fr you:

The '>' sign here means redirection to file , so if you will type echo 666 > file.txt there will be created file.txt with 666 text inside.


What software do I need to exchange Bitcoins?

I have successfully used bitcoind on a pure headless server (no desktop / X packages installed) to automatically send and receive BTC, controlled by a PHP script. I assume that most bitcoin online services are hosted on Linux servers, so yes – there is a command-line solution that works.

Back then, bitcoind was definitely the way to go. You say "they all crash", but that is not very specific. Make sure you download the 0.10.0 source code tagged on GitHub and follow the build instructions (Link).

If it still crashes, it's either a bug in their bitcoind code (pretty unlikely?) or something went wrong during compilation. In that case, you should add more details about the crash in order to get help.


Recent releases of Ubuntu have hibernation disabled by default, so it doesn't go into hibernation the way you have it set to.  Change critical-battery-action to suspend or shutdown instead.

Also you don't want to run the battery down below 20% or so if you can help it as it will shorten the life of the battery ( except maybe once every 6 months so the battery capacity can be recalibrated ).