Kubuntu 14.04 hangs at startup after installing fglrx

AMD recently removed support for some graphics cards from there driver. Find out whether you are affected.

First remove the installed driver:

  sudo apt-get remove fglrx fglrx-updates

Alternatively you can use the *.run file you downloaded from AMD website to remove the driver:

  sudo bash *.run --uninstall

Clear fglrx apt cache:

sudo rm -r /var/cache/apt/*fglrx*

If you need to switch to the Ubuntu's default open source driver, execute:

  sudo apt-get install xf86-video-ati

Or install the Ubuntu verified proprietary driver:

  sudo apt-get install fglrx-updates


libreoffice doesn't support copy from calc and paste in writer

Which version of LibreOffice are you using? This works fine for me (although under a different derivative).

In Writer, try CTRL+SHIFT+V for "Paste special", and use one of the options that dialog gives you.


Dual Boot: Does data get deleted because the drive is partitioned?

You should allocate a separate partition for Ubuntu if you are planning to dual-boot with windows. If you choose so, make sure that you have moved all data from these partition(s) to some other partition because installing Ubuntu will format this partition and you will lose data if you put anything here. In addition, installing Ubuntu alongside windows like described above will not harm your data that is still in windows. There are a lot of information on Ubuntu-Windows dual boot. To start with look at the official documentation.


Unable to install Qt XUBUTNU 12.04 fresh install

For problem 1
Step1: copy the file to the Desktop or home folder(This is because if the File is on an external drive you have to mount that with execution properties which is not done on Ubuntu by default)
Step2: right click on the file and chose properties ,and check the allow the file to execute button.close

step3:Double click on the program
Done!!!


Nautilus 3.6 - look for filenames in current directory before general search

Nautilus 3.6+ has removed or changed many good features it had in older versions; One is the typical search you mentioned. You have two options, one is to change your file browser from nautilus to "nemo" or something similar; another is to use non-official patched nautilus, named "SolusOS".


When i had resized my ROOT volume and copied my Home files to my HOME volume, the 'rm' not erased my encrypted files. I just boot my system with a live CD, mounted my /root volume and use 'rm -f' to erase all files inside the home folder in /root.Thus, the hidden folder .encrptfs was deleted.


In lieu of any better information, I thought I would post that it looks like GNOME search uses the locate command to carry out its searches.

After a search for system, I saw a locate process searching for *system*:

locate --ignore-case --ignore-spaces --basename --transliterate *system*

This could explain why it can only find exact substring matches, if it literally just does a locate search for *[search string]*.

Ironically, through testing I've discovered that without the --transliterate argument, searches with dashes and periods work! I don't understand iconv enough to know why, though.


Finding all other workstations on the network

open your terminal and type this

sudo apt-get install nmap

then type as

sudo nmap -sP 192.168.0.1-254

so it will search all the devices from the range of 192.168.0.1 – 192.168.0.254 .

Hope that helps .


How would grub2 be affected when deleting the main OS?

Yes, since grub's config file is usually stored in the /boot folder of the OS that installed it, deleting that OS would cause grub to fall into rescue mode. It can easily be repaired though.

The best method to avoid problems, is to boot an OS that you are keeping. Reinstall grub from that OS. Then, delete the OS you are removing and update grub.


Fresh Ubuntu 12.04 LTS on Windows 7 machine takes long time to start

I hadn't realized that I had installed the Wubi version of Ubuntu. After migrating it to a proper installation in its own partition the problems with the slow startup and flickering display have gone away. So, problem solved.

Regarding the graphics card, I had forgotten when I made my original post that the GeForce card had died and I had removed it completely. So the computer is using the old onboard Intel graphics, which may have been part of the problem in the first place.

I still have to figure out if it is safe to uninstall Wubi without affecting my computer's ability to boot, but that is a different issue to be solved at another time.


System lockup in 11.10 afer installing nvidia-current, horrible/sluggish performance when using nvidia 173 drivers

I cannot comment, but this is just a comment:

I had similar problems with nVidia Corporation G98M [Quadro NVS 160M]:
  100% CPU when logging in, etc

Everything was fine when I was using an upgraded 10.04 LTS. First I thought this was a problem due to upgrade but a fresh install did not help.

Now I worked around via blacklisting nouveau and intel_agp. Then stopping (light)gdm and installing nvidia drivers from the website directly (yes, I also installed normal gnome desktop).

Now its a bit ugly because I need to start ubuntu everytime via 'startx' from command line after stopping gdm again, but its not that bad as hibernate works :)

Not sure how I can make it working directly after logging in via gdm.

Update: This issue seems to be solved via

depmod -a && update-initramfs -u


I got this type of error one time because I had taken the KDE Window handler out. I put it back in and everything worked fine.

I am not sure if that is the problem here i just mention it as a place to start looking.


You can follow this: http://www.ubuntu.com/download/desktop/install-ubuntu-desktop

At the fourth step, select "Erase Disk and Install Ubuntu", assuming you wish to wipe the entire 1TB disk and install Ubuntu to it. Use the drop-down menu to select which drive you wish to install Ubuntu to. At that point, you can go ahead and press "Install Now" and continue following the steps for installation through the guide I linked.

Additionally, if you'd like to wipe the SSD, you can do so after you install Ubuntu. Use the Ctrl-Alt-T sequence to open up a terminal and type:

sudo apt-get install gparted

Once it is finished, open the newly installed GParted application. Select the device you wish to format using the menu in the top-right hand corner of the application. When you are done formatting the device, select the "Accept" button on the menu bar to save your changes.


Permissions issue when trying to save file to /var/www

If you are using it for development just change the owner of /var/www folder to your username.

sudo chown username:username -R /var/www

make sure to change the "username" word from the above command to yours.


Is it possible to increase the size of the mouse pointer?

Alternatively you can also try GUI method.
Open Settings->Universal Access->Cursor Size

And choose your preferred size.


How to make a file which when exectued will install multiple packages in Ubuntu?

The simplest way is to create a shell script

#!/bin/sh
pip install numpy
pip install pandas

followed by chmod 0755 scriptname. The "proper" way to  do it may be to use a meta-package. See this for details.


Booting into Ubuntu after booting into Windows

Boot into Windows - disable hibernation and Fast Boot.
Open command prompt as administrator and execute:

powercfg /h off

In case you installed Windows 8 or 10 in EFI mode:
Open Windows Control Panel -> Energy Settings.
Enable show hidden settings - uncheck Fast Boot.
Shutdown the machine completely, do NOT reboot.
Boot into BIOS - select Ubuntu to be the default OS.


Windows doesn't show up in grub2 can't access BIOS or boot with CD

It seems you have become a victim of one of the the most severe bugs in Ubuntu:

The "Replace «some OS»" option actually purges the whole disk. So you just reformatted your whole HDD instead of the LM partition. There has been an open bug report on Launchpad for about a year,but there is now fix yet.

https://bugs.launchpad.net/bugs/1265192

Have fun recovering all the data you need: https://help.ubuntu.com/community/DataRecovery


Remove /EFI/Ubuntu & NVRAM after dual boot cleanup

Just reset your BIOS,  that is where your boot settings are stored. once it is reset, when you reboot run Boot-repair disk (https://help.ubuntu.com/community/Boot-Repair)   Follow instructions on LINK I gave you.


Could I use port 8080 - 8100 (if they aren't in use)? Are open ports fair game?

You are free to use whatever port you like.
Most people prefer to use ports below 1000 for the majority of their services. This is because all ports below 1000 can be opened only by root, so malicious code will not be able to use your config files and open those ports for their purposes.


Wget schedule sending mail if response time > 5 secs

The script you want is something like this:

#!/bin/bash
# by desgua to test server down
#
# This script is supposed to be named ".ping.time.sh" and
# to be put at ~/
# to test what happens when server is down:
# change www.mysite.com for www.serverdown.com
#
# As asked, I supposed you have a script to send mail and named
# ~/.script.to.send.mail.sh
#
sleep 300          # as asked, to run at every 5 minutes
pingtime=$(ping -w 5 www.mysite.com | grep ttl)

echo $pingtime

if [ $pingtime = ] ; then
   echo 'down' ; ~/.script.to.send.mail.sh ; else
   echo 'up' ; ~/.ping.time.sh
fi

ps. At your script to send the email, put something to run again the script I made after the mail has been sent


Packet Tracer 6.x on kubuntu 15.10 : unfind libkdeinit5_PacketTracer6.so

If someone has the same problem, I have solved it:

First, don't execute Packet Tracer with the icon or with the command "packettracer" because it'll give you false information or nothing at all.

So to debug your packet tracer go to the installation directory (default: /opt/pt) and in the bin folder execute the command PacketTracer6 and you get the missing dependencies:

sillicius@DIY1:/opt/pt/bin$ ./PacketTracer6
./PacketTracer6: error while loading shared libraries: libcrypto.so.1.0.0: cannot open shared object file: No such file or directory

Solution:

Install libsll1.0.0:i386 (64bits versions doesn't work with PT) and link it:

$ sudo apt-get install libcrypto.so.1.0.0:i386
$ sudo ln -s /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /usr/lib/libcrypto.so.1.0.0

Next dependencies not found:

/opt/pt/bin$ ./PacketTracer6
./PacketTracer6: error while loading shared libraries: libQtWebKit.so.4: cannot open shared object file: No such file or directory

Solution:

$ sudo apt-get install libqtwebkit4:i386

.

/opt/pt/bin$ ./PacketTracer6
./PacketTracer6: error while loading shared libraries: libQtScriptTools.so.4: cannot open shared object file: No such file or directory

Solution:

$ sudo apt-get install libqt4-scripttools:i386

After this, PT worked correctly for me.


ASUS Xonar Essence STX II on Xubuntu 15.04?

You can set most important settings by installing alsamixer and then run the console version of it.

It allows you to change headphone impedence and dac filter rolloff

For the tonal settings I'm too looking for some solution.


Cannot login to ssh using back in time gnome

From man backintime:

To  prepare  your user account for ssh-mode you have to add the user
to group 'fuse' by typing 'sudo adduser <USER> fuse' in terminal.
To apply changes you have to logout and login again.

Next you have to create a password-less login to the remote host
(for further information look at http://www.debian-administration.org/articles/152).
Type  in terminal 'ssh-keygen -t rsa' hit enter for default path
and enter a passphrase for the private key.

Finally type 'ssh-copy-id -i ~/.ssh/id_rsa.pub <REMOTE_USER>@<HOST>'
and enter your password on remote host.


Having trouble to find the node in ubuntu 14.04 after installing

As seen here

Run command:

which node

and in my case it displayed /usr/sbin/node.
If it says command not found, skip to 3. Remove it by

sudo rm /usr/sbin/node

Run command:

which nodejs

In my case it displayed /usr/bin/nodejs
Make a link

sudo ln -s /usr/bin/nodejs /usr/bin/node

OR

sudo ln -s /usr/bin/nodejs /usr/sbin/node


Remove Lubuntu partition and keep Ubuntu partition

First Delete all the Extended (the Teal one), and ALL inside it. Then make a Primary Partition Formatted as Linux-Swap, of equal size to your RAM. Then expand the 38Gb Partition to all remain Free Space. This need to be done via LiveCD.


While in theory the Ubuntu SDK should be cross-platform, the main focus has been to develop and polish it for Ubuntu first, so no work has been done to package it for other platforms.

However, this is a desirable goal, and we could use all the help we can get!


Lid Close Action

To set up the Laptop Lid Close Action you have to install Advanced Setting (or the Gnome Tweak Tool).  It is in the USC (Ubuntu Software Center) under either tweak or Advanced Settings. If installed press the super button and type in tweak or advanced and choose the Advanced Settings.  When it opens choose the shell tab;

Press the arrows and choose you desired on both on AC and on battery;

Default buttons behavior

Install dconf-tools:

sudo apt-get install dconf-tools

Press alt+f2 and open dconf-editor (or in a terminal type dconf-editor)

Navigate to org.gnome.settings-daemon.plugins.power and set your default button-power action there:

On some systems you will also need to mark the item suppress-logout-restart-shutdown.


Use the following command in a terminal:

sudo apt-get install libalut-dev


How can I find all video files on my system?

Alternative: search on file:
sudo find . -type f -exec file -N -i -- {} + | grep video

or if you only want the filenames ...
sudo find . -type f -exec file -N -i -- {} + | sed -n 's!: video/[^:]*$!!p'

-N, --no-pad: Don't pad filenames
-i, --mime: Causes the file command to output mime type strings rather than the more traditional human readable ones. Thus it may say 'text/plain; charset=us-ascii' rather than 'ASCII text'. In order for this option to work, file changes the way it handles files recognized by the command itself (such as many of the text file types, directories etc), and makes use of an alternative 'magic' file. (See the FILES section, below).

The FILES section points to:

Files
/usr/share/misc/magic.mgc Default compiled list of magic.
/usr/share/misc/magic Directory containing default magic files.

file is slowwwwwwwwwwwwwwwww though (it will open all the files find finds) but has the advantage you do not need to add all those extentions.

Using locate:
locate *.mkv *.webm *.flv *.vob *.ogg *.ogv *.drc *gifv *.mng *.avi$ *.mov *.qt *.wmv *.yuv *.rm *.rmvb *.asf *.amv *.mp4$ *.m4v *.mp *.m?v *.svi *.3gp *.flv *.f4v


I had similar issue after pulseaudio update.
Try remove pulse configs:

$ pulseaudio -k
$ rm -r ~/.config/pulse/

After restart the system.


When you mount the broken system's storage, have a look at /var/log/dmesg in there to see if there's any obvious indication what's happening at boot time.


Multiple monitors freeze and have artifacts when logging in

You said that you have the

EVGA GeForce 660ti

graphics card.

The EVGA graphics card are not supported by Linux, they don't provide drivers for it...

See this question.


Why would you want to use xshell in Ubuntu? The standard ssh client that comes with Ubuntu has all the port forwarding capabilities you probably need.


RSS reader that integrates with Unity's messaging menu?

Feed Indicator

OmgUbuntu have several web-blogs raving about this particular RSS indicator.

Looks promising.


Use gparted to fix your partition.

sudo apt-get install gparted && sudo gparted

Information about gparted usage you can find  here.


Gnome 3 has a very modern look and scales nicely on older hardware:

You can install Gnome 3 by clicking here  or by entering the following in a terminal:

sudo apt-get install gnome-shell

Once Gnome 3 is installed, simply log out, click the gear icon next to your name on the login screen and select "Gnome".


Ubuntu Touch: How to add other peoples calendars in the calendar core app?

The calendar app currently only supports syncing one calendar (the default calendar) per account. In the future you will be able to specify multiple calendars per account. As a workaround, you could try the google calendar webapp (as suggested). Alternatively you could create another account for the calendar you want to sync if you know the credentials.


Nano save to stdout (or an inline editor for terminal)

You can use VI. Here is a quick and dirty command list. http://www.cs.colostate.edu/helpdocs/vi.html


Parallel use of Intel and Nvidia (eGPU) driver / Not Hybrid!

Ubuntu provides the Alternatives system which you can use to configure Nvidia or Intel (Mesa libGL) in this case.

See my answer to No 3D support on Lenovo W520 with nVidia Optimus. You should run the mentioned update-alternatives and ldconfig commands before X is started.


Unable to install MariaDB on 16.04 - unmet dependency

Please check that Apache and php packages exist or not in your machine.

Please follow this steps to completely remove MySQL

Now open the terminal Ctrl + T

sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-5.5 mysql-client-core-5.5
sudo rm -rf /etc/mysql /var/lib/mysql
sudo apt-get autoremove
sudo apt-get autoclean

Install apache

sudo apt-get install apache2

Install php

sudo apt-get install libapache2-mod-php mysql-server mysql-client
sudo mysql_install_db
sudo mysql_secure_installation

Now open mysql in terminal

mysql -u root -p

Please note the version of php. ref reason why php 7

Their is one way to install php 5 by adding ppa If you want version 5 php.

sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php5.6

Other Ref : php version issue

Thanks
Ajay


The touchpad driver is in the Linux kernel. You probably upgraded the kernel and there is some regression there. Try to boot with a previous kernel using grub menu and test, if touchpad works.

If this is the case you can upgrade your kernel to 3.16, which is default in 14.04.2 by running

sudo apt-get install linux-generic-lts-utopic

It may help, if regression is not that fundamental and appeared accidentally in some kernel release.

If it still does not work, then it makes sense to report a bug at launchpad by running

ubuntu-bug linux

Or if you previously installed some specific touchpad driver and upgraded the kernel, the driver may not build.

You can find this by running

dkms status

There were some alps touchpad drivers in dkms format, that could be found in the net.


Responsiveness issue for live search drop down in opencart 2.0.1.1

To make Smart search live search results drop down responsive I have used

@media queries

These queries helped me to get the issue resolved


How to add accounts to friends-app in Ubuntu Touch?

I had the same question and raised it on the #ubuntu-touch IRC channel a couple of minutes ago.

You will have to use the terminal. If you already have setup ssh access you can use it. In this case you can skip the first part.

When connected via USB:

adb root
adb shell
ubuntu_chroot shell
su - phablet

The password for the user phablet is phablet

To create the online accounts type

uoa-create twitter <your twitter handle>
uao-create facebook <your facebook id>

the activation pages will be shown on your phone.


Python evdev exercise: listing accessible devices

Python has mandatory indentation.

After a line with a "for" you must indent (4 spaces or a tab). So add them before the "print". Those spaces are there in the 1st image ;)


Why automatic installed mysql 5.5 when i install mysql workbench 6.0.9 from deb file using ubuntu software center

Insatll mysql-workbench-community-6.0.9-1ubu1310-amd64.deb file without installing mysql5.5 by running the below command on terminal,

sudo dpkg --force-all -i  mysql-workbench-community-6.0.9-1ubu1310-amd64.deb

The above command will force install the mysql-workbench.deb file without installing it's dependencies.

 Warning: These options are mostly intended to be used by experts
          only.  Using  them without fully understanding their effects may
          break your whole system.


Extend partition on freed space: resize OR move&resize OR create new partition?

The safest is surely option 3. But both 1 and 2 are doable.

But first thing first, let's address a bigger problem:

  By "advised" I mean safe for my Ubuntu system and data (I want to have my usual Ubuntu exactly as before after rebooting, but with more space available for my files).

You DO have a backup of everything you don't want to loose, right?
Because anything can happen that kills your hard disk, a dab bump to the computer while the HDD is spinning or a lightning that strikes too close and your hard disk is gone...

Given a backup, I would personally choose option 2, because it will give you a cleaner system (IMHO) than the other two.
It will take some time (maybe hours) to complete, and at the end you will need to update your /etc/fstab with the new UUIDs, but the result is what you want, a larger partition for your data.


Ubuntu 13.10 x64, hybrid graphics card, can not resume after suspend

I think that it might be breaking unity, I would recommend you to install Ubuntu Gnome 13.10 and install the drivers the same way:

sudo apt-get install nvidia-319 nvidia-settings-319 nvidia-prime

Hope they don't break your GUI and that you can suspend your computer, it is not a direct solution for your problem but it is an alternative if no one can solve your problem.

Hope it helps.

sudo apt-get -f update
sudo apt-get -f upgrade
sudo apt-get -f dist-upgrade


I have two Ubuntu boot entries, and when I try to remove one, it automatically comes back

So, I actually resolved the problem. For some reason, the first ubuntu boot option was the one that I was able to delete. This was the one located at "/EFI/ubuntu/grubx64.efi". Not sure why, since the cases don't line up, but at least it works now.


You have to tell your system to pull down the latest list of software from each archive it knows about, including the PPA you just added by running sudo apt-get update before you can install any package from a newly added PPA. Open the terminal and run:

sudo add-apt-repository ppa:ubuntu-sdk-team/ppa
sudo apt-get update
sudo apt-get install ubuntu-touch-meta qtcreator qtcreator-plugin-ubuntu-common

ppa:ubuntu-sdk-team/ppa also supports Ubuntu 14.04, 16.04 and 16.10.

To start Ubuntu SDK, just type Ubuntu SDK in the Dash and click on the icon that has the title Ubuntu SDK under it.

If you have Ubuntu 13.04 or Ubuntu 13.10, it is easier to install Ubuntu SDK. Just open the Ubuntu Software Center, search for Ubuntu SDK and install the ubuntu-sdk package. This will also install a long list of dependencies required to install ubuntu-sdk. Thanks for the comments from Pregene Cho and everyone else who helped.


You are missing the network interface, so add it to plugs

Reference: snapcraft.io: network-interface


Problem burning DVD with some data already on it

If they are not DVD +RW(Rewritable) then you wont be able to write anything.
Could you please confirm if that is not the case?


Need a remote desktop to a headless server without logging in first

Just install the necessary requirements only

sudo apt-get install xterm

Assuming you have some kind of X terminal emulator on windows (e.g. Cygwin X), you can connect with ssh

# make sure DISPLAY is exported and set to the correct value)
ssh -X linuxhost xterm


Try to press f9 Immediately on boot...It would take you to the EFI Bios boot screen, See if "OS Boot Manager" is an option there, and if it boots.
There is also the option of Manually selecting an EFI file Use it to browse the EFI System Partition to locate the EFI files with the .EFI extension and try to boot from it.


There are two different suspent modes:

suspend-to-ram - usually just called suspend
suspend-to-disk - usually just called hibernate

Suspend-to-disk is usually relatively slow such that on some machines it is just faster to do a real boot.

Suspend-to-ram leaves the RAM powered. Depending on your hardware this may consume very little energy. On most hardware the suspend/wake-up is very fast (1 - 2 seconds) and it does not consume a lot of your battery. For example on my Thinkpad it is no problem to leave it > 10 h in suspend-to-ram.

The only disadvantage of suspend-to-disk I can think of, is that is more difficult to setup with encrypted swap partitions.

Sure, for kernel-upgrades you have to reboot a long running system - but you have to do that in any case. And technologies like ksplice are changing that for a lot of security related patches.

Regarding memory leaks - if you have a memory leak, it is most likely in some bad behaving application and then you can just restart that one application.

I supend-to-ram all the time because it is so convenient to directly restart working where you left - I just reboot for security related kernel upgrades or distribution upgrades. Thus, an 'uptime' of over 100 days on my laptop is nothing special.


Running on low-graphics mode on upgrade to 19.10

SOLVED!!

I used these commands:

sudo apt-get install gdm3
sudo dpkg-reconfigure gdm3
systemctl stop lightdm
systemctl start gdm3


You can buy a live USB here.

Another option is to download the .iso file on a friend's PC. You would then be able to burn that .iso file to a dvd, which would make it a live/installation DVD. There would also be the option to make a live USB instead using a program such as unetbootin (Mac, Linux or Windows), Rufus (Windows) or Startup Disk Creator (Ubuntu).

If you don't have access to another PC, it looks like buying the live USB from the Canonical store is your best bet. There are several places to buy live DVD/CD packages such as thelinuxshop.co.uk, but you can't necessarily guarantee that it's not been maliciously modified.


Check the System Settings Mouse and Touch-pad and be sure two finger scrolling is selected.


What's a good cctv app to start out on? Zoneminder or Motion?

I have had good success with Motion and the logitech webcam pro 9000.

One note of caution, in the motion package that is in the repositories for 9.10 I had to add the following lines to the init.d script.

mkdir -p /var/run/motion
chown motion:motion /var/run/motion

after the DEFAULTS entry.

Other than that, works pretty well. It outputs whatever the camera is seeing to a web port so you can monitor it from either your network or via ssh tunnel. The config file is pretty simple too. It outputs to both still images and creates flv files which are better for reviewing several hours of motion capture quickly.


How sed can be used to replace multiple patterns within a string for different patterns

Use regular expressions. Convert one item inside the curly brackets into a regular expression such as:

[0-9]\.[0-9]1

What this expression means is "a number, a period, a number, a one". If the format is consistent through-and-through, this will only replace instances of "0.01" when put through sed.

There are other tools that would meet these needs as well, such as awk and tr, but you would still use regular expressions for them as well. To replace numbers such as this in bulk, you could replace that "1" with another [0-9] or a [1-3] to specify numbers in the range of 1-3.

For more info on Regular Expressions see Rexegg. They greatly expand the usefulness of virtually all text manipulation utilities.


Cant get HD resolution working on second monitor, nvidia GT640 card, Ubuntu 14.04

The answer here fixed it: http://ubuntuforums.org/showthread.php?t=1812872&page=2

specifically,

gksudo gedit /etc/X11/xorg.conf

change
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0

to

HorizSync 31.0 - 80.0
VertRefresh 56.0 - 75.0


How to change the default parent directory for a new users home folder?

To change the location where a newly created user will have his /home directory reside.
You'll have edit /etc/default/useradd and change the HOME=/home to HOME=/directory/you/want/it/to/be

You'll need finger to verify that this worked:

$ sudo apt-get install finger

then follow up with:

$ gedit /etc/default/useradd

useradd defaults file:

GROUP=100
HOME=/home [configure as desired]
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel


Hide desktop icons for certain mounted volumes

Remove the x-gvfs-show mount option:

/dev/disk/by-uuid/some-uuid /mnt/Stuff auto nosuid,nodev,nofail,x-gvfs-show 0 0

so it becomes:

/dev/disk/by-uuid/some-uuid /mnt/Stuff auto nosuid,nodev,nofail 0 0


How do I fix Ubuntu 15.04 when I cannot seem to boot it?

I solved this problem by going to my live USB and erasing my hard disk drive (HDD) and installing Ubuntu 15.04 again on the HDD.

I initially tried the non-destructive method of installation, namely one where only the system-related files (like those in /usr/bin) are replaced, not the user files like those in /home/fusion809/, but this failed. Several programs were also uninstalled, although I was asked during installation whether I wanted these programs to be reinstalled, I selected that I wanted them to be reinstalled. Later in the installation of Ubuntu from within my live session (I can confirm my internet connection was fine on this live session), however, I was informed that an error had occurred that prevented the installation of these additional programs from the live session. After rebooting from the live session I was able to login successfully into my main installation, so a partial success was achieved, but my internet connection could no longer be established.

So I eventually opted to erase my HDD and install Ubuntu 15.04 from scratch on the HDD, after I had backed up the files I absolutely needed.

This issue reoccurred when I reinstalled Kubuntu on this new installation. It is likely a bug.


Technically speaking, what is different about Ubuntu compared to other Linux distributions?

The biggest difference between different Linux distributions is the package management system used. Ubuntu is very similar to Debian and uses the Debian package management system (.debs, apt-get etc.). However, there is a much bigger difference between Ubuntu and Fedora and Red Hat which use the Red Hat package management system (.rpms, yum etc.). ArchLinux uses the Pacman package manager. Other distributions, such as Gentoo, require everything to be built from source.

Distributions with a package management system often have a different set of packages available in their repositories.

The most visible differences are the default application selection and the default themes and settings. These seem to be the decisions that cause the most controversy but they are the easiest to change; all distributions are extremely customisable.

Also, the different distributions have limited binary compatibility, which means that the source code for packages has to be compiled separately for each distribution to create native binaries.

You can read about binary compatability her: https://wiki.ubuntu.com/MarkShuttleworth


I have the same issue trying to install pup.

Steps you have to follow:

export GOROOT=/usr/bin/go (path found running whereis go)
Go to your GOPATH:

cd /home/thufir/go
There you will find a bin folder and inside the pup binary
Copy binary pup to /usr/bin/

sudo cp pup /usr/bin
Check if pup is correctly installed

pup --version

I hope it works.


Dell XPS 13 Hangs up if attach an external Monitor

The “xorg-server” version  2:1.11.4-0ubuntu10.4 should fix it, but the new version 2:1.11.4-0ubuntu10.6 don't have this fix.
https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/921236


How do I close a program from the terminal

Now every file is handled by another program say gedit and folders the same, so to kill [ the program handling that file or folder ] we can use two methods:

The program name with:

pkill <name_of_program>

use of program PID (process id)

find the PID with pgrep <name_of_program>, then
kill it with kill <PID>

Information:

man pkill
man kill

Note: When closed this way any unsaved changes will be lost.


mysql error: Can't create a new thread (errno 11)

can you post the  [mysqld] section from your my.cnf. It resides in /etc/mysql if you installed from ubuntu packages or in /etc with the community install from mysql.com. If you do not have such a file this could already be the problem, because you are running an comile time defaults.

Also please issue a

SHOW GLOBAL VARIABLES LIKE '%thread%';

SHOW GLOBAL STATUS LIKE '%Thread%';

and post the output.


How to keep the default sink in PulseAudio when adding a new one?

for pulseaudo as im usermode

cp /etc/pulse/default.pa $HOME/.config/pulse/default.pa

It could be you have to create the folder first in your home. I prefer to make changes if possible in my home.

Search for string #set-default-sink remove the comment and write your the default sink you wish behind.

for pulseaudio in systemmode you make the change directly in /etc/pulse/default.pa


How to uninstall Comodo Antivirus in Ubuntu 12.04 64-bit?

I was having the similar trouble...
The command that this guy was using was wrong...

I removed comodo antivirus using the following command:

sudo apt-get --purge remove cav-linux

it worked


Uninstalling Java (only) after installing Restricted Extras

Go to the terminal by Ctrl+Alt+t and wirte

java -version

it will tell you which java and version you are using then if you have open jdk then write

sudo apt-get purge openjdk

it will remove openJDK from your computer, else leave your java -version output..

for removing  all the Java related packages click here


Minecraft downloaded from official site needs Oracle JRE to run properly. Running it with OpenJDK is a bit hassle you probably want to avoid. Install the snap version of Minecraft instead. Pres ctrl+alt+t to open Terminal. In there, type-

  sudo snap install mc-installer

Press Enter. It'll ask for your password, enter it and again press Enter (password will remain completely invisible during typing, this is normal). Give it some times to finish downloading & installing Minecraft. After installation, search for Minecraft in your program menu and run it.


First you need to remove the line that you added to the sources.list.  PPAs are added differently.  From a terminal add the PPA by doing: sudo add-apt-repository ppa:gnome3-team/gnome3 and sudo add-apt-repository ppa:ricotz/testing
 .  Then run sudo apt-get update and sudo apt-get upgrade.


Vmlinuz file is the name of Linux kernel executable , by other word its a compressed Linux kernel and it is bootable .

Vmlinuz is located in /boot directory , it may be the actual kernel executable or a link to the real one , you can use ls -l /boot to know if its a link or not .

The life map of this file it gets uncompressed, loaded into memory, and executed at boot , then you see your operating system .

By the way its also included in all Ubuntu release , its a basic part of operating system   .


You can do that with a minor modification

(pipe the find output into while loop doing a  read)

Time=+30
PATH_TO_DUMP=/home/tarun/Desktop/Backup
#Find any Backup File defined by the time constraint

find $PATH_TO_DUMP -type f -mtime $Time | while read file
do

  #To verify if $file is empty or has some value
  if [ ! -n "$file" ]; then
    echo "No Earlier Backups were found to compress" >> $PATH_TO_LOG
  else
    echo "Earlier Backups $file will be compressed" >> $PATH_TO_LOG
    gzip "$file"
  fi

done


How to remove unwanted default bookmarks in Nautilus?

The is no setting for this in Nautilus preferences or gesettings. Instead, the default bookarks are hard-coded be built from ~/.config/user-dirs.dirs.

It's not enough to just edit~/.config/user-dirs.dirs, however, since the directory list is rebuilt on login from /etc/xdg/user-dirs.defaults.

The solution is to comment out the directories that you do not want to show in Nautilus from both user-dir files. After logging out and back in, the unwanted bookmarks go away.

Testing showed that you need to edit both files. Only editing one or the other was not enough.

The easiest way to edit the file in /etc is to use sudo with a textual mode editor, such as sudo nano /etc/xdg/user-dirs.defaults.


laptop almost freezes when try to dim screen (nvidia optimus)

Turn off optimus and run discrete graphics only. That seems to work for me using my lenovo W520.


Bottom half of vertical monitor is blank after updating video drivers

As you have quite new GPU hardware use the stable NVIDIA drivers from the long-lived branch.

Install the latest stable NVIDIA drivers supporting 840M from the Proprietary GPU drivers PPA:

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-352 nvidia-prime
sudo reboot

To switch between intel and nvidia graphics - open NVIDIA X Server Settings -> Prime Profiles.

In case you have had any NVIDIA drivers installed before and to avoid possible conflicts, it is a very good idea to first uninstall every NVIDIA related software you have installed before.

Open a terminal and execute:

sudo apt-get purge nvidia*
sudo reboot

Note: When you have had installed bumblebee before, this software must be removed as well.


Resize my Home ext4 partition with unallocated space

Your free space follows sda5, not sda9, so it can not be expanded into it.  You would need to move sda5 to the right so that the free space precedes it and follows sda5 instead.


Can I run a 64-bit OS on my Pentium 4 computer?

Your processor appears to be this Pentium 4 according to Intel's ARK.

If the ARK is to be believed (and this is your processor), your CPU will not support 64-bit Ubuntu. You will be required to install 32-bit Ubuntu.


Imac with Ubuntu (Lubuntu 20.04) - Controlling fan speed

OK, I advanced a bit on my side, replying here in case it is one day helpful for someone else.

I found a way to control all 3 fans of my imac (cpu, HD, Optical Drive): macfanctld (see http://manpages.ubuntu.com/manpages/bionic/man1/macfanctld.1.html)
I recompiled it with the change proposed here https://github.com/MikaelStrom/macfanctld/pull/11 because it was otherwise not controling the CPU fan.

So I can now control my 3 fans, set a min speed, a floor and a ceiling, which is a success!

But even with a high initial speed, I still get a burst some times after booting when the Tp0P sensor reaches 84 degrees. The CPU fan then increase its speed until the temp reduces, but there is a long delay for it to be effective, so usually 10 really loud minutes. I don't think I can change this value anywhere, which is sad because I think it really would not go much higher than this.

So I guess I will rather work on the cause:
It is the Power Supply Unit (PSU) that is overheating, not the GPU as I previously stated. I am thinking about making holes in the case to reduce the heat passively, or to somehow install a new fan directly on the PSU. Doing a deep cleaning of the case and the PSU already won a few degrees.


In your /etc/fstab file, the /dev/mapper/cryptswap1 entry is there, which is why Ubuntu tries to mount it on boot. If you don't use encrypted partitions, that line shouldn't be there. For some reason the line created by the Ubuntu installer got commented out too. So just change (in /etc/fstab):

# swap was on /dev/sda5 during installation
#UUID=fe10641d-a928-479e-ab3a-b0706b97b601 none            swap    sw              0       0
/dev/mapper/cryptswap1 none swap sw 0 0

to

# swap was on /dev/sda5 during installation
UUID=fe10641d-a928-479e-ab3a-b0706b97b601 none            swap    sw              0       0

IMPORTANT: Before you restart, make sure you check that fe10641d-a928-479e-ab3a-b0706b97b601 is actually /dev/sda5 by running:

ls -l /dev/disk/by-uuid/fe10641d-a928-479e-ab3a-b0706b97b601

It should say something like:

lrwxrwxrwx 1 root root 10 2011-08-16 08:28 /dev/disk/by-uuid/fe10641d-a928-479e-ab3a-b0706b97b601 -> ../../sda5

The sda5 part at the end is the important part. Once you are sure the UUID matches the partition number, run sudo fdisk -l /dev/sda and make sure that /dev/sda5 is a swap partition.

Then just restart and that's it :) Hope this helps.


/var/ and /var/www/ are wrong.

sudo chmod 755 /var/
sudo chmod 755 /var/www/

(sudo required). To fix directories and files inside /var/www/:

sudo find /var/www/ -type d -exec chmod 755 {} \;
sudo find /var/www/ -type f -exec chmod 644 {} \;

(sudo probably not required but there might be "root" owned files in those directories) Directories need the executable set, so 755, you might want to change it to 750, 775, 770 based on preferences; it lets group and others have more/less permissions). files do not, so 644, you might want to change it to 640, 664, 660 based on preferences; same reason).

That should be it.

In case you also want to reset the user and group setting (not needed if I look at the history):

sudo chown -R www-data:www-data /var/www/


By default WSL comes without a Desktop Envirnoment or a window system.

There is way though you can run GUI apps by installing an X Server.
There is an article in microsoft techcommunity site covering that here.
The author provides steps by installing
VcXsrv Windows X Server
and exporting the "DISPLAY" variable
export DISPLAY="`grep nameserver /etc/resolv.conf | sed 's/nameserver //'`:0"

( You will need to add that command to /etc/bash.bashrc to make it permanent )


Can Encrypted external drive encrypted on/by ubuntu work with Windows?

There is a project called LibreCrypt[1] that works in windows and can open LUKS based encrypted volumes created by cryptsetup.

There is nice cryptsetup frond end called zuluCrypt[2] you can use to create LUKS volumes in ubuntu.Scroll down the page to see binary package for ubuntu.

ps:
cryptsetup by default creates LUKS based encrypted volumes,

[1] https://github.com/t-d-k/LibreCrypt

[2] http://mhogomchungu.github.io/zuluCrypt/


How to search the contents in a directory from terminal while you're in the middle of writing a command?

This is not particularly intuitive as the auto-completion is not working, but you could achieve what you want using file masks:

totem /home/user/Music/Red\ Hot\ Chili\ Peppers/*/Dani\ Ca*

Another option is use find and then make it pass the filenames it has found to totem:

find . -name "Dani Calif*" -exec totem '{}' +

Though this isn't exactly "search while you're writing a command"


Running two scripts on profile login (bash & sudo bash)

I think your best bit would be to wrap the entire script, using shc (Bash script compiler).  That way you could use plain text, like echo password | sudo -S script.sh in your script.  I suppose someone could decompile, but we're pretty far out there, and then if that's the concern, don't store your sudo password.

Link to SHC.
shc github


sudo apt-get update : Could not connect to localhost:9999 (127.0.0.1). - connect (111: Connection refused)

The error

Could not connect to localhost:9999 (127.0.0.1). - connect (111: Connection refused)

suggests that your system is configured to use a local HTTP proxy for apt connections (and that no such proxy is running).

You can temporarily override this setting on the command line by passing an empty value Acquire::Http::Proxy= on the command line e.g.

sudo apt-get -oAcquire::Http::Proxy= update

If that works and you believe that the proxy configuration is inappropriate, then you can make the setting persistent by locating and either commenting out or removing any lines related to proxy configurations in your apt configuration files - /etc/apt/apt.conf and associated files in the /etc/apt/apt.conf.d/ directory - as well as an entry for HTTP you may find entries for HTTPS and/or socks protocols.


It's Better to check your Ubuntu ISO copy, usually the problem lands to be from a corrupted ISO. Try burning another ISO image.


ec2 ubuntu access requesting password after ssh update

I found the following possible solution: To regain control, you'd have to mount the volume of the affected instance to a different instance, revert the changes made to the sshd file and mount back as /dev/sda1 to the orginal.
It would/could have worked yet I accidentally formatted the volume while following another tutorial... whoops!
Hope this helps others at least.


Place all sed commands into one shell script file

I assume you actually want to see the line with DOGGGG since you are editing it (otherwise, why bother?)

Use { } to group commands in a block...

sed -n '{
       1d
       $d
       /^$/d
       s/dog/DOGGGG/g
       /DOGGGG/p
       /JamesBrady/p
       /derghnregnrig/p
}' students.txt

result:

  DOGGGG DOGGGG DOGGGG Jamesb
  JamesBrady
  derghnregnrig

You don't need all that for your example...

sed -n '{
       1d
       $d
       s/dog/DOGGGG/g;p
}' students.txt

but I guess your real file really has empty lines and stuff in the middle you don't want to print.


how to apply changes when I don't have the unity plugin enables in ccsm

install the gnome environment and use ccsm with it. that might work.


How to upgrade Ubuntu 12.04 to latest version

You are running 12.04 LTS, the last LTS version is: 16.04 and you can't go from 12.04 to 16.04.

You should first upgrade to 14.04 and then go for 16.04. However I suggest you to do a fresh install, many things has been changed since 12.04 so upgrade a broken system is going to bring you more problems.

You can use sudo do-release-upgrade to upgrade your Ubuntu.

Also read this:

How do I upgrade to a newer version of Ubuntu?


How can I fix Malformed line (54) when gedit wont load?

Open a terminal.
Insert the command sudo nano /etc/apt/sources.list, will ask for your password.
Press Ctrl+_¹ and insert the number of the line: 54. Press Enter.

Anything which doesn't fit this format is incorrect.

# Comment, marked by a line starting with '#'
deb http://site.example.com/debian distribution component1 component2 component3
deb-src http://site.example.com/debian distribution component1 component2 component3

The URL, distribution and components will be different. It does not necessarily have to have 3 components.
Correct the line, and once corrected, press Ctrl+o (saves the file) and then Ctrl+x (exits nano).
Run sudo apt update to check the problem has been solved.

¹You may have to press Ctrl+Shift+- to get the _. I can't be sure because I use a spanish keyboard.


configure: error: unrecognized option: -–with-mail=/usr/bin/sendmail while installing nagios 3.5.0

Sorry, my bad! One of the "-" characters before the "with-mail" wasn't a "-". Copy paste from PDF to console not worked well this time. Sorry and thanks for your reading.


Manual disk partitions - moving to Kubuntu from Fedora

Choosing the filesystem forces formatting. Don't select a filesystem.


Ubuntu 13.04 does not recognize wireless adapter (14e4:4365)

With a temporary wired ethernet connection, please open a terminal and do:

sudo apt-get install bcmwl-kernel-source

Detach the ethernet. After a reboot, your wireless should be working.


What are the differences in the PCSX2 plugins?

First of all GSdx comes in 5 versions,SSE2,SSSE3, SSE4.1, AVX and AVX2.Only IF your processor supports these instruction sets use highest version you can since it will be faster for you in this order from slowest to fastest: SSE2, SSSE3, SSE4.1, AVX and AVX2. The new AVX and AVX2 instructions give a minor speed up only with the software renderers of GSdx and not the hardware ones. Note: AMD users do NOT mistake SSE3 with SSSE3 (1 extra S) and SSE4A with SSE4.1, they are totally different and are NOT supported. In this case use the SSE2 flavor.


With some helps from my professor, I think it worked now:

When I checked the usr/local/lib it didn't show ldtoolbox or other library so I decided to check out all the repository and started to install from this directory.

$ cd /usr/local/lib

Follow the same step on this guide but when install from this directory, everything must begin with sudo

After finished all of this process, I used the fr-es language pair:

Move to the directory has the language pair:
cd apertium-fr-es/

Write some test
echo 'Mon ami' | apertium -d . fr-es-tagger
It would show: ^Mon<det><pos><m><sg>$ ^ami<n><m><sg>$^.<sent>$
Or echo 'Je vais allez chez toi' | apertium -d . fr-es
It would show : Voy vais en tú


How to get arp tables from switch to server mysql database using snmp

There are a number of software solutions that can poll network devices via SNMP and store their MAC address tables in a SQL database. Generally, their functionality includes a great deal more than what you are asking for in your question.

Before installing the software on a server, it is important to note that you should have administrative access to the network devices, or at the very least, permission to query the devices in question. Either you, or your IT support folks, will need to configure the switches with permit SNMP string as well as permit SNMP queries from the server IP/subnet that it resides on. How these device are configured is vendor dependant and beyond the apparent scope of your question.

One example of such a tool available for Ubuntu is Netdisco.

Per their website, Netdisco is a software package that maintains "Configuration information and connection data for network devices [that is] ... retrieved via SNMP. Data is stored using a SQL database for scalability and speed. Layer-2 topology protocols such as CDP and LLDP provide automatic discovery of the network topology."

While there is a package available for install from the Ubuntu repositories (see netdiso-common, netdisco-backend, and netdisco-frontend) it is somewhat outdated. A more recent version can be installed from source on their site.

Another example would be IPPlan which focuses on IP Address Management(IPAM), DNS and circuit management. IPPLAN polls via the ucd-snmp package and NMAP and can map IP addresses to MAC addresses in a variety of SQL databases.

Also, you may want to take a look at Switchmap.

While it does not store its data in SQL, it creates CSV files which can then be poured into a SQL database, if desired.

There are a number of other solutions out there (both commercial and free). I only mention these as I have had direct experience installing, configuring, and managing these software packages.


Can't go back to older nvidia driver on Ubuntu 20.04

Ok I managed to solve this after running sudo apt purge libnvidia*


Why is live-build failing to find this package?

You've only enabled the main and contrib areas, but the console-common package is provided by the Universe repository. Try --archive-areas "main universe contrib" instead.

$ apt-cache policy console-common
console-common:
  Installed: (none)
  Candidate: 0.7.85
  Version table:
     0.7.85 0
        500 http://nl.archive.ubuntu.com/ubuntu/ oneiric/universe amd64 Packages


No Grub2 boot manager window after installing Ubuntu 14.10 over Linux Mint 17

Check in your /boot/grub/grub/cfg file for the settings of "timeout". If your settings is "timeout=0", then the menu will not display.

There is also:

GRUB_HIDDEN_TIMEOUT
    Wait this many seconds for a key to be pressed before displaying
    the menu.  If no key is pressed during that time, boot
    immediately.  Unset by default.

GRUB_HIDDEN_TIMEOUT_QUIET
    In conjunction with GRUB_HIDDEN_TIMEOUT', set this totrue' to
    suppress the verbose countdown while waiting for a key to be
    pressed before displaying the menu.  Unset by default.

To edit this (grub.cfg) file you need Grub Customizer:

sudo add-apt-archive ppa:danielrichter2007/grub-customizer

sudo apt-get update

sudo apt-get install grub-customizer


How can i create and auto install of other open source software such as openvpn and snort using kickstart?

Multiple Computer installation using Kickstart

This instruction follows the help.ubuntu instructions:

Generate a Kickstart file

sudo update
sudo apt install system-config-kickstart

Then run

system-config-kickstart&

Config installer

The kickstarter should open. Enter your configuration, user/root, partitions,
etc.On the %post section you can add your apt install commands.

Save your config file.

(note the sudo infront of the apt command is an error! use apt without sudo)

Now make a kernel modification as described on the manual page

  To make the installer use a Kickstart file downloaded from a web or FTP server, add ks=http://url/to/ks.cfg or ks=ftp://url/to/ks.cfg
  respectively to the kernel boot parameters. This requires the
  installer to be able to set up the network via DHCP on the first
  connected interface without asking any questions; you may also need to
  add ksdevice=eth1 or similar if the installer fails to determine the
  correct interface automatically.

  Similarly, to make the installer use a Kickstart file on an NFS
  server, add ks=nfs:server:/path/to/ks.cfg to the kernel boot
  parameters. The method supported by Anaconda of adding a plain "ks"
  boot parameter to work out the location of the Kickstart file from a
  DHCP response is not yet supported by the Ubuntu installer.

  To place a Kickstart file on a CD, you would need to remaster the ISO
  image to include your Kickstart file, and add ks=cdrom:/path/to/ks.cfg
  to the kernel boot parameters. See the manual page for mkisofs for
  details. Alternatively, put the Kickstart file on a floppy, and add
  ks=floppy:/path/to/ks.cfg to the kernel boot parameters.

Don't forget to add the canonical, universe ppas before installing !


What's the difference between the server version and the desktop version?

Copied as-is from Ubuntu docs:

The first difference is in the CD contents. The "Server" CD avoids including what Ubuntu considers desktop packages (packages like X, Gnome or KDE), but does include server related packages (Apache2, Bind9 and so on). Using a Desktop CD with a minimal installation and installing, for example, apache2 from the network, one can obtain the exact same result that can be obtained by inserting the Server CD and installing apache2 from the CD-ROM.
The Ubuntu Server Edition installation process is slightly different from the Desktop Edition. Since by default Ubuntu Server doesn't have a GUI, the process is menu driven, very similar to the Alternate CD installation process.
Before 12.04, Ubuntu server installs a server-optimized kernel by default. Since 12.04, there is no difference in kernel between Ubuntu Desktop and Ubuntu Server since linux-image-server is merged into linux-image-generic.
For Ubuntu LTS releases before 12.04, the Ubuntu Desktop Edition only receives 3 years of support. This was increased to 5 years in Ubuntu LTS 12.04 In contrast, all Ubuntu LTS Server Edition releases are supported for 5 years.


You can try to avoid using Snap/FlatPak for listed applications.
For Inkspace you can get 1.0 from official PPA:
sudo add-apt-repository ppa:inkscape.dev/stable
sudo apt-get update
sudo apt-get install inkscape

and then install the TeXText plugin here.
For Xournal you can also get it from official PPA:
sudo add-apt-repository ppa:andreasbutti/xournalpp-master
sudo apt update
sudo apt install xournalpp

and then use it as it was planned.


PC still booting on GNU GRUB even after boot-repair

Your UEFI update created /EFI/grub not updating /EFI/ubuntu.
You can move /EFI/grub/grub.cfg to /EFI/ubuntu/grub.cfg and boot grub UEFI entry. Ubuntu UEFI grub boot expects to use & find grub.cfg in /EFI/ubuntu.
The ubuntu entry has an old GUID, so will not work.

Are you at this:
grub>

If so manually boot with:

set root=(hd2,gpt2)
configfile /boot/grub/grub.cfg

Note that in report install was in sdc (hd2), but if you unplug flash drive it will be hd1, and when originally installed it was sda or in grub hd0, so you may have to experiment on which actually works. then see if the reinstall of grub works.

sudo apt-get install grub-efi-amd64
sudo update-grub

See also:
Grub loads instead of Ubuntu whenever my HP streambook reboots


Using PuTTy to control server while port 22 is blocked

I think it could be as simple as forwarding your router port 443 to your computer port 22.... Then you configure PuTTy to connect to your IP / your server name over port 443.... unless I am missing something else.


Ubuntu Server auto start irssi in proxy mode

The first hit on google provides all information needed:

Add this line to /etc/rc.local (using administrator privileges):

sudo -H -u USER screen -d -m -S irssi-proxy irssi

Replace USER with your username. Explanation of the command:

sudo ; runs command as user
-H ; sets the home directory to the users
-u ; sets the command to act as USER
screen ; the command sudo is executing
-d -m ; starts screen detached. This solves a lot of issues later.
-S ; starts the screen session with the irssi-proxy ID.
irssi ; the command we're launching

You will have to install screen to make this work (screen is a very nice little tool to run command line applications in the background).

If you want to get your irssi in the foreground later you can do that by running screen -r irssi-proxy in a terminal.

Alternatively you can use crontab to have it run as boot (saves you from changing system files in /etc):

Run crontab -e as your User. Add this line:

@reboot screen -d -m -S irssi-proxy irssi

It will basically have the same affect as the entry in rc.local.


Kdevelop and Kate kio problem - won't save sftp:// files (nor fish://)

Updating to the latest version 20.04 seems to have done the trick, I've submitted the bug to the bugs.kde.org and according to the KDE guys, they've recently done several bug fixes which have gone to the 20.04 version, but are not yet present in the backports.

Small note, I've upgraded to 20.04 using

sudo do-release-upgrade -d

which upgrades to the development version, since the normal version was not available to upgrade yet at the time of the writing of this answer


Installed Kubuntu in external SSD and now I can't load Windows without it

So the answer was similar to that proposed by Romeo Ninov. I installed EasyBCD, went to the tab BCD Deployment and clicked Write MBR. All of this while not having connected my external SSD to my computer. Now it is properly working.

Here is a picture showing what I did:


You can have someone boot the broken machine from a live CD. Assuming there are no hardware issues it should boot fine. Then have the user either connect the broken machine to ethernet, or guide him/her through the process of connecting to Wifi. If the broken machine is behind a firewall, connect to the router (can even do this from the live CD OS) and install openssh:

sudo apt install openssh-server

Then route port 22 to the broken machine (keeping it simple here). Create an account for the remote user to use for login.

The remote rescue machine logs into the broken machine live OS over ssh. The remote machine can mount the file system of the broken machine to check the logs and perhaps disable nonessential services and maybe configure it to boot into a console rather than auto-launching the desktop (so the remote user can boot, fix something, launch the desktop, repeat). Finally with the help of the remote user, remove the CD to try a reboot.

In a dire situation, you could install VirtualBox on the live OS and boot the broken OS that way (boot as a raw partition).


tar: "Cann't stat: No such file or directory"

Alternatively you can execute your as follows:

(cd /var/www/news ; tar -jcf /datos/backup/news/news.tar.bz2 news)

This should create the archive /datos/backup/news/news.tar.bz2 with the content news. This requires, that the folder /var/www/news/news exists. If you intended to compress the folter /var/www/news only, use instead:

sudo tar jcf -C /var/www /datos/backup/news/news.tar.bz2 news

or

(cd /var/www ; tar -jcf /datos/backup/news/news.tar.bz2 news)


I downloaded a .sh.tar.gz package from the internet, how can install it?

it's not sudo apt-install

it's sudo dpkg -i something.deb or sudo apt-get install something


What is output when you try to access any hadoop web gui hostname:50070 etc

Also have you read this

https://stackoverflow.com/questions/11738070/hadoop-cannot-use-jps-command


Problems when booting Ubuntu 12.04 on separate hard drive

Explanation:

the error message you got means you tried to install Ubuntu inside Windows (via the Wubi installer).
The problem is that Wubi is not compatible with GPT (preinstalled Windows8 and some Win7 are on GPT disks).

Solution:

Install Ubuntu the standard way, on its own partitions, see https://help.ubuntu.com/community/GraphicalInstall


Can't enable wireless on Lenovo Thinkpad Edge 520

heh, you should disable acer_vmi module, it's quite common,
this thread should fix this:

Wireless doesn't work on a  Lenovo V570

in short, add the following line in /etc/modprobe.d/blacklist.conf

blacklist acer-wmi


Script to connect to hidden wireless network with static IP?

Check out this page on the Arch wiki about using WPA supplicant:
https://wiki.archlinux.org/index.php/WPA_supplicant#Classic_method:_wpa_supplicant.conf

Once you've set the password in wpa_supplicant.conf, you should be able to connect using the 2 commands below. Just save those in a script. Other settings are saved.

ifconfig wlan0 up
iwconfig wlan0 essid <hiddenname>

Edit your IP address and gateway in /etc/network/interfaces


Ubuntu 18.04 Microphone crackling / popping sound

I found this solution Video , and it worked for me.

Open Terminal and run:

sudo nano /etc/pulse/default.pa

Add these lines at the end of the file:

### Enable Echo/Noise-Cancelation
load-module module-echo-cancel aec_method=webrtc aec_args="analog_gain_control=0 digital_gain_control=1" source_name=echoCancel_source sink_name=echoCancel_sink
set-default-source echoCancel_source
set-default-sink echoCancel_sink

exit from text editor with ctrl+x and save file.

run

 pulseaudio -k
 pulseaudio --start

restart the system.

Done!


Help Removing Battery notification sound [16.04]

Related to this, but not quite the same. Posting as it might be helpful. Using Ubuntu 18.04.2.

I had issues with a battery utilization alert/sound that would play repeatedly as my battery would switch back and forth between fully charged and current being drawn from it. This was particularly noticeable when loading webpages that contained video players, a process that involves more computations than the system's base state.

Anyway, the solution for me was to rename a oga file in a similar directory as this one. I moved the following files and it appears to have resolved my issue (difficult to say as there are other factors in play that I do not have control over [the software playing the sound] and other factors whose values I no longer have an outward indicator for [the battery's charge level]). Files were at the locations:

/usr/share/sounds/freedesktop/stereo/power-plug.oga
/usr/share/sounds/freedesktop/stereo/power-unplug.oga


How can I disable Caps Lock on text-mode (tty) terminals?

I had success using the instructions posted on this blog in a virtual console:

echo -e "$(dumpkeys | grep ^keymaps)\nkeycode 58 = Escape" | sudo loadkeys

I'm not sure how to apply this automatically after every reboot, though.

While researching your question, I also ran across this alternative solution:


The package is called php5-mysql in Ubuntu, not php-mysql.


Ubuntu 18.04 freezes after login and with shutdown/restart

You need to install your graphics drivers.

On your login page, press Ctrl + Alt + F2

Enter your credentials and use the below commands (if you're using Nvidia graphics card)

sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-driver-390


Well you are supposed to do  one more thing before that.

chmod +x yourfilename.bin
and then
./filename.bin

If  you have only one .bin file in that, then you need not worry about its name. You can run it after chmod +x command with ./*.bin.

I mean

chmod +x *.bin
./*.bin


Pip specifies an Error on Ubuntu 16.04. And, venv packages appear when environment is deactivated

I found the answer to the issue. It occurs because the Virtualenv is installed with sudo and the pip/.cache file is owned by the user. There some packages will require access to sudo. Below is the info on the issue and reference. I have added a idiots guide below the explanation to this error.

When globally installed packages are on the python path, and they conflict with the installation requirements, they are ignored, and not uninstalled.
When globally installed packages are on the python path, and they satisfy the installation requirements, pip does nothing, and reports that requirement is satisfied (similar to how global packages can satisfy requirements when installing packages in a --system-site-packages virtualenv).
pip will not perform a --user install in a --no-site-packages virtualenv (i.e. the default kind of virtualenv), due to the user site not being on the python path. The installation would be pointless.
In a --system-site-packages virtualenv, pip will not install a package that conflicts with a package in the virtualenv site-packages. The --user installation would lack sys.path precedence and be pointless.

More info can be read here https://pip.pypa.io/en/stable/user_guide/#user-installs.

My Fix

Removed all project packages in ~/user/.cache . Which where installed 'wrongly' pip uninstall -r <path_to_project_requirements.txt> (N.B. prefix with sudo when required).
Removed virtualenv sudo pip uninstall virtualenv
Install virtualenv using: pip --user install virtualenv. Which will stop the ownership issues. And, save you from having to install   it globally with sudo -- you could also use the virtualenv wrapper which would probably save you some of this pain, but i'm not...
Create your project directory: mkdir <project>  and go into it cd project.
virtualenv venv create your local environment folder to install your packages into . venv/bin/activate
continue installation of your project requirements.


Can't install Realtek RTL8188EUS drivers for TP-LINK TL-WN722N v3

I have the official tplink page, but I haven't tried it.
The driver source can be downloaded on
driver folder.

A pdf installation instruction can be found on this link.

please let me know


Installing Windows 7 alongside Ubuntu 14.04

I can't see your picture but one thing is you can't re-size the partition you are on.  To do that I suggest creating a thumb drive with your live distro on it and boot off of that.  Then use the thumb drives gparted to repartition your internal drive.  If the computer doesn't boot your thumb drive go to bios and change boot order to run USB first.


Strategy Need to Migrate larger SATA drive to smaller SSD?

Am up and running. Having a large originating hard drive made the process slow, but in general not too painful. SSD appears very worth it already.

gParted Live USB - I ended up burning a gParted Live USB for this and shrunk my hard drive to match the size of the new SSD. I decided to delete the swap partition to simplify the process.
Clonezilla - I initially tried to use Clonezilla to go device to device, but it appears the only way to do this is to go partition to partition.
Boot-repair -Ubuntu would not boot properly after doing this, so I had to go back and add the boot flag to my SSD. That still left me in an unbootable state. I then booted to a 32-bit Live USB and installed and tried to run boot-repair (http://www.howtogeek.com/114884/how-to-repair-grub2-when-ubuntu-wont-boot/). but alas it turns out that since my systems is 64-bit I needed to do this from a 64-bit Live USB. Quickly created a 64-bit Live USB and then ran boot-repair successfully :-)
Aligned SSD - http://lifehacker.com/5837769/make-sure-your-partitions-are-correctly-aligned-for-optimal-solid-state-drive-performance
Tweaked SSD - http://www.howtogeek.com/62761/how-to-tweak-your-ssd-in-ubuntu-for-better-performance/


How to create a cron job to monitor the status of a port ?

In the simplest case, you could run a command like this:

lsof -i :22 | grep LISTEN

So, to have that run every 5 minutes and send an email if the port is not listening, add this to your crontab:

*/5 * * * * lsof -i :22 | grep LISTEN || echo "Not listening" | mail you@email.com

This, of course, assumes that you have already set up your machine for the mail command.


Enable 3D HW acceleration on VMWare Workstation 10 on Ubuntu 14.04

Edit the file ~/.vmware/preferences and look for a line that starts with mks.gl.allowBlacklistedDrivers, if it is not present - you can add it into the file.

This should be changed to mks.gl.allowBlacklistedDrivers = "TRUE"
(note the double quotes around TRUE)


you may try:
    $sudo apt-get autoremove
    $sudo apt-get update
    $sudo easy_install pip==20.3.4

then, while usig pip for  installing pakages, use:
$sudo pip2 install <package>

However, using:
$sudo pip install <package>

may still give you the same error message. It is more likely related to no support for some pip versions, anymore.
This solution was tested on:
Distributor
ID: Ubuntu
Description:    Ubuntu 16.04.7 LTS
Release:    16.04
Codename:   xenial

It was run on 32bit Chromenotebook


Dual Boot Ubuntu 12 and Windows 7 pro on two separate 3T hdd on uefi + bios mode

You should follow these steps

Backup your data
Install Windows
 On 1st disk, create two partitions (1.5T,1.5T), On 2nd disk same as 1st disk
 Install ubuntu with / on 2nd partition, and /home on first partition on 2nd disk.

Ubuntu will install GRUB as primary bootloader, and it should add Windows in it. Backup your data, i'm not responsible for any data loss.


apt-get install: is there a command to work on a batch of packages?

Store all the packages which are ready for autoremoval in a text file and then run apt-mark manual command on those packages to mark it as manually installed.

for i in $(cat ~/Desktop/package.txt); do sudo apt-mark manual $i ; done

~/Desktop/package.txt - Contains the package names which are going to set as manually installed.


How I can prevent my WiFI enable itself?

Go to "Edit Connections" and select your WiFi connection. Then in edit, in the general tab, uncheck the first option of - Automatically connect to this network when it is available.


That your processor only supports 32-bit, but you are trying to install the 64-bit version of Ubuntu. So download the 32-bit version instead and try again.

follow this, and create a live usb of Ubuntu 32-bit and just click try instead of install. Please give me the exact error when it's not working this time.


Windows 7 and Ubuntu 11.04 Dual boot, grub menu not showing!

If you installed ubuntu without Wubi,
Run the following command in Ubuntu Terminal:

sudo update-grub

This command will update your GRUB menu.If "Windows" seems in the output, you should set the timeout of GRUB menu.

Run this command:

gksu gedit /etc/default/grub

Change the value of GRUB_TIMEOUT in the file to 5 or whatever you want in order to show GRUB when booting.

then run this command again:

sudo update-grub

Or instead of this operations, press the Shift to open GRUB menu each time when booting.


The Solution would seem to be, to install pyton-dev or a similar package:
https://stackoverflow.com/questions/21530577/fatal-error-python-h-no-such-file-or-directory


The accepted answer that suggests to use wget on the page you mention does not use webdav and cannot do what ypu ask. Other answers mentionning davfs2 or dadaver are more correct answer, but still not complete, I think.

The key is to use webdav as a filesystem (ie a folder in the arborescence of your system). Then syncing 2 folders is as simple as rsync -aHx /some/folder/. /another/folder/.  The somewhat tricky part is to get the webdav resource mounted as a filesystem. Nautilus does not really cooperate with webdav by the way.

On a 16.04 system, launch a terminal app and type the following commands

sudo apt install davfs2

Be sure to answer yes when asked if unprivileged users should be allowed to mount WebDAV resources?

If davfs is already installed and you don't remember what you answered, just

 sudo dpkg-reconfigure -plow davfs2

Then add all users that can use davfs to the davfs2 group. For example, to add yourself to the davfs2 group

sudo addgroup $USER davfs2

logout and login again. This is important as group membership is determined at login time.

Next, create a folder in your home (or somewhere else). To be sure not to use the folder without davfs, make sure the permissions are set to 0. When webdav is used, the permissions will be overridden.

mkdir -m 0 $HOME/remote

Next you need to add a line in the /etc/fstab file

echo "http://your.dav.server/path/to/resource $HOME/remote davfs noauto,user 0 0" |
  sudo tee -a /etc/fstab >/dev/null

You are now done with setup. Any time you need to use webdav, just type

mount ~/remote

remote content will then appear in the folder ~/remote. You can use nautilus, unison, or command line tools to sync the davs folder with local folder.

Don't forget to use umount ~/remotewhen you are done. davfs2 uses some cache. It must be flushed properly.


Frontend to view Android's videos in Ubuntu

I had the same unstable USB connection problem with my S4. I found that it doesn’t like the 3.0 ports. If you have a 2.0 USB port, use that one instead and I think you’ll do better uploading your videos. I use the VLC media player to view my android videos and it works great for me. Hope this helps :)


UPDATE: I've installed "xserver-xorg-core" and solve my problem (all of theme). It seems that when I upgraded from 14.05 to 14.10 and to 15.05 this and other packages (xorg) were not updated and remained as "xserver-xorg-core-lts-...". With this upgrade "xserver-xorg-input-synaptics" was installed which is the one that controls the mouse.

ORIGINAL: I have the same problem and searching the internet I found this solution. In the command line write:

$ sudo modprobe -r psmouse

$ sudo modprobe psmouse proto=imps

After this you would see something like this in xinput list:
"ImPS/2 Synaptics TouchPad..."

However, I have 2 problems now: I couldn't manage to do it permanently and two-finger-scrolling doesn't to work.

There's some more information in this links:
Synaptics Touchpad Scrolling not working and Synaptic touchpad on laptop not working


That might not be a complete solution but may be it could help you since it would give you much better than 800x600. I have an IMac Retina. I run Ubuntu 14.04 inside Vmware Fusion. After enabling full retina display support in Fusion, I can set Ubuntu to support 2560x1600. In full screen mode, it is not as nice as the native retina with OSX but, it's still quiet nice. If I set it up to use about 1/4 of the screen, it really uses the  real "pixel" resolution. in full screen, it just makes everything bigger.  It's not perfect but it's quiet nice. From all my googling on the subject, it appears that it is the Linux drivers that are not meant to support such a large resolution/that many pixel. They are working on though.


Exclude files on external hard drive from Unity Dash and recently used files

Yes, there is:

Open System Settings > "Security & Privacy" > "Files & Applications" (tab). Add the directory (or the complete drive) to the list to exclude from search. In most cases, you will need to clear the history (completely) and possibly log out / in to take effect.

From then on the files will not appear in search, nor in recently used items.


deja-dup backups through a virtualbox Ubuntu 12.04 with Windows 7 host?

One way would be to share the USB disk in the Windows OS (if you're Ubuntu VM has access to the hosts network) and perform your backups there. I'm not sure how deja-dup handles being interrupted though.


Install libgluezilla & create .desktop in Kubuntu 14.04

Run apt-cache search libgluezilla to find the correct package.

You should see something like:
libmono-webbrowser4.0-cil - Mono Web Browser library (for CLI 4.0)

Install the package listed.

For the second part, see Are there any GUI apps that can create .desktop files?


touchegg trackpad gestures stopped working after upgrading to 17.04

Problem solved!

I followed the "preparation steps" on this website from Install older version synaptics driver that is compatible with xSwipe. until That's it for preparation.: https://github.com/iberianpig/xSwipe#install-older-version-synaptics-driver-that-is-compatible-with-xswipe.

So basically, the solution was to install an old driver for the trackpad.


No sandbox user '_apt' on the system, can not drop privileges

Add the _apt user back to /etc/passwd and /etc/shadow:

$ sudo grep _apt /etc/passwd /etc/shadow
/etc/passwd:_apt:x:168:65534::/nonexistent:/bin/false
/etc/shadow:_apt:*:17121:0:99999:7:::

YMMV: The _apt UID on my system is 168, and yours may not be 168 on your system - the value should be unique, and greater than 100.


As an administrator how to restrict users from Installing certain packages?

First you should know as the others are sudoers then you can't restrict their access, but there is a tricky simple way to do what you want.

First of all you should specify all packages that you would to restrict.

Open the sudoer config file:

sudo visudo

for example I'm gonna here prevent the user named user from installing youtube-dl. Add this line to the file.

user ALL = ! /usr/bin/apt-get install youtube-dl

Now the user named user couldn't install the package youtube-dl.

$ sudo apt-get install youtube-dl
[sudo] password for user:
Sorry, user user is not allowed to execute '/usr/bin/apt-get install youtube-dl' as root on userPC.

Redo the same operation for other users and other packages.

At the end you should also prevent those users from editing the sudoer config file itself so as above you have to add the line for each user

user ALL = ! /usr/bin/apt-get install youtube-dl \
           ! /usr/sbin/visudo

So now for user

$ sudo visudo
[sudo] password for user:
Sorry, user user is not allowed to execute '/usr/sbin/visudo' as root on userPC.


Completely Remove LXDE/Lubuntu Desktop Environment

Removing the metapackage will only remove some stuff, but not all.  You have to individually remove all the programs LXDE came with.  I followed the up-voted comment above about using apt-get.  But afterward, I still had pcmanfm, openbox stuff, lxterminal etc.

The best instructions I found are at:  http://www.psychocats.net/ubuntu/puregnome

sudo apt-get remove abiword abiword-common abiword-plugin-grammar abiword-plugin-mathview ace-of-penguins audacious audacious-plugins audacious-plugins-data blueman catfish chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg elementary-icon-theme fonts-lyx galculator gdebi gdebi-core gecko-mediaplayer giblib1 gnome-desktop-data gnome-icon-theme-full gnome-mplayer gnome-system-tools gnome-time-admin gnumeric gnumeric-common gnumeric-doc gpicview gtk2-engines-pixbuf guvcview hardinfo indicator-application-gtk2 leafpad libaacs0 libabiword-2.9 libass4 libaudclient2 libaudcore1 libavcodec53 libavformat53 libavutil51 libbinio1ldbl libbluray1 libbs2b0 libcddb2 libcolamd2.7.1 libcompfaceg1 libcue1 libdca0 libdirectfb-1.2-9 libenca0 libept1.4.12 libexo-1-0 libexo-common libexo-helpers libfaad2 libfluidsynth1 libfm-data libfm-gtk-bin libfm-gtk-data libfm-gtk3 libfm3 libgdome2-0 libgdome2-cpp-smart0c2a libglade2-0 libgmlib0 libgmtk0 libgmtk0-data libgoffice-0.8-8 libgoffice-0.8-8-common libgsf-1-114 libgsf-1-common libgsm1 libgtkmathview0c2a libgtkspell0 libguess1 libid3tag0 libimlib2 libindicate-gtk3 libjpeg-progs libjpeg-turbo-progs liblink-grammar4 libloudmouth1-0 libmenu-cache1 libmms0 libmodplug1 libmowgli2 libmp3lame0 libmpg123-0 libmusicbrainz3-6 libnet-dbus-perl libobrender27 libobt0 libonig2 liboobs-1-5 libopts25 libots0 libpisock9 libpostproc52 librarian0 libresid-builder0c2a libschroedinger-1.0-0 libsdl1.2debian libsidplay2 libswscale2 libtidy-0.99-0 libtie-ixhash-perl libts-0.0-0 libuniconf4.6 libva1 libvdpau1 libvpx1 libvte-common libvte9 libwebcam0 libwv-1.2-4 libwvstreams4.6-base libwvstreams4.6-extras libxfce4ui-1-0 libxfce4util-bin libxfce4util-common libxfce4util6 libxfconf-0-2 libxml-parser-perl libxml-twig-perl libxml-xpath-perl libxvidcore4 lightdm-gtk-greeter link-grammar-dictionaries-en lm-sensors lp-solve lubuntu-artwork lubuntu-artwork-12-10 lubuntu-core lubuntu-default-settings lubuntu-desktop lubuntu-icon-theme lubuntu-lxpanel-icons lubuntu-software-center lxappearance lxappearance-obconf lxinput lxkeymap lxlauncher lxmenu-data lxpanel lxpanel-indicator-applet-plugin lxrandr lxsession lxsession-data lxsession-edit lxshortcut lxtask lxterminal mplayer2 mtpaint ntp obconf openbox openbox-themes pcmanfm pidgin pidgin-data pidgin-libnotify pidgin-microblog plymouth-theme-lubuntu-logo plymouth-theme-lubuntu-text python-pysqlite2 python-support python-xklavier rarian-compat scrot sylpheed sylpheed-doc sylpheed-i18n sylpheed-plugins synaptic system-tools-backends transmission tsconf uvcdynctrl uvcdynctrl-data wvdial xfburn xfce-keyboard-shortcuts xfce4-notifyd xfce4-power-manager xfce4-power-manager-data xfconf xfonts-100dpi xpad xscreensaver xscreensaver-data && sudo apt-get install ubuntu-desktop && sudo /usr/lib/lightdm/lightdm-set-defaults -g unity-greeter

Follow the commands for removing Lubuntu.


the average latency is 500 ms when I ping my PC in a LAN

the solution was to edit default-wifi-powersave-on.conf

/etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

and change wifi.powersave = 3 to wifi.powersave = 0
Source: https://ubuntuforums.org/showthread.php?t=2333291


Ubuntu server install on existing partition

Sorry about the short answer, but you can delete the existing partition you want to install on and use the free space to make a new partition. This is a bad idea though, because you may delete a partition with important data.
(Keep in mind I have no idea how vanilla Server works, I've only used the Pi version)


Try:

sudo apt-get clean

Then you can reinstall gimp:

sudo apt-get install gimp

This should clear out the cache.


Can I use manual socks proxy for only specific sites?

If you are using Firefox or Google Chrome or Chromium browser, you could use FoxyProxy (free as of 26-Oct-2015) to use a manually configured proxy for specific URLs.

To configure which sites you want to access using the proxy, click on the FoxyProxy Standard icon besides the address bar, click on "Add New Proxy" and then configure your host, port no, username and password and configure the URLs in the "URL Patters".

Refer the quickstart page for FoxyProxy for more.

P.S.: This has been tested to work on Firefox 29(which has the enhanced UI)!


How to create an folder path alias on ubuntu EC2 instance?

What you're trying

You may be thinking of the term alias as defined and used in Mac OS.

For ubuntu the command alias does something totally different. The command you have used is for creating new commands so you don't have to remember a longer command, or a longer command you type so much it is quicker to type the alias. For example, if I don't want to keep typing this command to launch a program:

java -jar /usr/local/bin/bfg-1.13.0.jar

You could create an alias called bfg in my Unix profile (or ~/.bashrc as you have) like this:

alias bfg='java -jar /usr/local/bin/bfg-1.13.0.jar'

From now on I can use bfg every time I want to run the java program.

What you really need

In Ubuntu what you're looking for is a symbolic link. A symbolic link is created with the ln command on Ubuntu (and all other Unix varieties). See the following example.

In the below example you can see a folder that already exists called pms in my home folder.

Thus its absolute path is /home/ubuntu/pms.

ubuntu@server:~$ ls -l
total 4
drwxrwxr-x 2 ubuntu ubuntu 4096 Mar 25 11:05 pms

Now I change to a mother directory where I want the link, what you are thinking of as an alias, and create the symbolic link with ln -s

ubuntu@server:~$ cd /tmp/
ubuntu@server:/tmp$ ln -s /home/ubuntu/pms myfolder

Now I'm able to change directory to this alias as you understand it.

ubuntu@server:/tmp$ cd myfolder/
ubuntu@server:/tmp/myfolder$ pwd
/tmp/myfolder

To be clear, an alias is a completely different thing in Unix & Linux land. The symbolic link I have made can be seen by listing the /tmp directory where I created it.

ubuntu@server:/tmp/myfolder$ cd /tmp
ubuntu@server:/tmp$ ls -l
total 16
lrwxrwxrwx 1 ubuntu ubuntu   16 Mar 25 11:06 myfolder -> /home/ubuntu/pms

The contents of the /tmp/myfolder are one and the same as /home/ubuntu/pms.


how to know the location of ubuntu installed in vmware in windows 10?

The files of your vmware guest are not directly accessible from your host.

You have to set up file sharing or use a shared folder.

See: Sharing Files Between Guest and Host Operating Systems


A problem with a strange flickering/undulating effect and a related question about drivers on Ubuntu

AMD has declared the Radeon HD 2000, 3000 and 4000 series as having "legacy" support. The legacy drivers can be downloaded here:
http://support.amd.com/us/gpudownload/linux/legacy/Pages/legacy-radeon_linux.aspx

However, the support from AMD is basically nonexistent.

The legacy drivers have their share of problems, but they work well for the most part.

The best way to install the legacy drivers is using this PPA:
https://launchpad.net/~makson96/+archive/fglrx

You don't need to downgrade your X server or anything like that, the PPA handles everything.

Steps:

Open a terminal (i.e. ctrl+alt+t) and type the commands:

sudo add-apt-repository ppa:makson96/fglrx
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install fglrx

Then just follow the instructions (input your password, press enter, etc.)

After this, restart your computer and the new drivers should be working.


How do I use the latest Sass and Compass?

Got the same error as @prkos, this is a know bug: https://bugs.launchpad.net/ubuntu/+source/ruby-compass/+bug/1100018

Please try: sudo gem install compass.


In terminal find is one of the most powerful searchtools out there but not very user friendly like most powertools.

As an alternative Fsearch could be interesting for you. To install it:

first add the ppa in terminal

sudo add-apt-repository ppa:christian-boxdoerfer/fsearch-daily

then update your repositorys

sudo apt-get update

and install Fsearch

sudo apt-get install fsearch-trunk

to remove Fsearch you can type in a terminal

sudo apt-get remove fsearch-trunk

sudo add-apt-repository --remove ppa:christian-boxdoerfer/fsearch-daily

sudo apt-get update

hope that helps.


Ubuntu 18.04 LTS Display flashes and turns upside down - How to fix?

Your laptop has an gyroscope chip in it and it thinks the level is changing. In 18.04 turn off auto rotation with the little icon next to the system menu in the upper right corner.


I'm going through this process and have exactly the same hardware as you. The only difference is that I am booting from a live USB and not DVD. When the GRUB menu shows you need to press E and modify the command line by adding nomodeset, then it will start with graphic interface. Once installed, you then need to change your GRUB config to make this permanent.


Installing windows 8 on Ubuntu 12.10 with windows 8 already installed

You want to install it without a USB or a DVD. You need to make an empty partition (you can use gparted to do that) with the windows 8 DVD contents and boot from it. I think this step is much harder than using a DVD or a USB drive but anyways that's how to do it without them.

You do need to format the current win 8 partition. You can do that also using gparted or I think you can do that directly when you're installing windows 8; It should ask you whether you want to format the old windows 8 and then reinstall it.

That's pretty much it! ask me about anything you don't understand. (like for example: what I mean by "booting from the partition" or how to do it).


At terminal copy and paste the following to install Grub Customizer :

Step I:

sudo add-apt-repository ppa:danielrichter2007/grub-customizer

Step II:

sudo apt-get update

Step III:

sudo apt-get install grub-customizer

Step IV:

grub-customizer

Unchecked items which you don't need save and restart your system.


Cannot switch to virtual consoles with Ctrl Alt Fx

If you use a laptop, Fn-lock is one possibility. Try Ctrl+Alt+Fn+F3.

If that works and you want to turn off Fn-lock, look for the lock icon in the upper row of the keyboard and press Fn+that key. If you can't find one, try Fn+Esc.


I am on Lubuntu 14.04.
Install the package gnome-disk-utility.
However, to run it in a terminal, type gnome-disks.

In my localized German version of the menu, it appears under
Accessories > Drives.


Mpd wont update my library, using external drive?

Taken from the Wiki documentation page for mpd player.

You need to ensure you follow these steps when setting up your file locations


Is Plasma 5.7 coming Ubuntu 16.04 at all?

Probably you're on your own until it arrives to ppa:kubuntu-ppa/backports. I'm not sure if it will.

Source: http://omgubuntu.co.uk/2016/07/plasma-5-7 mentioned it will be available in backports but they don't know when.


How I can print the content of an array in columns ands rows

The bash shell only really supports 1d arrays - if you are content with an array of lines that's simple enough using the mapfile (aka readarray) builtin:
$ mapfile -t array < freememory.txt

$ printf '%s\n' "${array[@]}"
PID      PPID CMD                         %MEM %CPU
  859     1 /usr/lib/snapd/snapd         1.3  0.0
  890     1 /usr/bin/python3 /usr/share  0.9  0.0
  845     1 /usr/bin/python3 /usr/bin/n  0.8  0.0
  851     1 /usr/sbin/NetworkManager --  0.8  0.0
  300     1 /lib/systemd/systemd-journa  0.7  0.0
 1501     1 /usr/lib/packagekit/package  0.6  0.0
  996     1 /usr/bin/whoopsie -f         0.6  0.0
 3530     1 /usr/sbin/cups-browsed       0.5  0.0
  855     1 /usr/sbin/ModemManager --fi  0.4  0.0

Note the double quotes around "${array[@]}" to prevent word splitting. You can skip the file and read into the array directly from the ps pipeline if you prefer, using process substitution:
mapfile -t array < <(ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem | head)


How to recover from 'sudo rm -rf' command?

If you need to recover your documents you can try using photorec or testdisk.

However, if you want to recover the operating system and make it functional again, a clean reinstall is by far the easiest and fastest option.


Why does Microsoft Lumia Mobile Phone not detect on lubuntu ?

Great, so you’re a Linuxer and got a Windows Phone. Congratulations. :)

Anyway … before we get to the point, here’s some background on USB: When you create a USB connection, the hardware will first “negotiate” the relationship between the device (your phone) and the host (your laptop).

USB defines various classes for devices. The Linux kernel ships modules to support many of them. Android devices for example usually have the ability to announce themselves as mass storage devices and can be mounted in the same way as a USB drive.

However, the module supporting the USB class has to be loaded (which is done automatically in *Ubuntu), and the device is expect to behave according to the specification – which many devices don’t.

Now, to answer your question: You would start debugging by looking what happens after you attach the device to the host machine. To do so, open a console and enter

sudo tail -f /var/log/kern.log

Then plug in your phone. You should see something like the following output:

Jul 28 22:45:17 tp kernel: [810865.949958] usb 1-1: new high-speed USB device number 22 using xhci_hcd
Jul 28 22:45:17 tp kernel: [810866.079025] usb 1-1: New USB device found, idVendor=04e8, idProduct=6860
Jul 28 22:45:17 tp kernel: [810866.079028] usb 1-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4
Jul 28 22:45:17 tp kernel: [810866.079030] usb 1-1: Product: Android
Jul 28 22:45:17 tp kernel: [810866.079031] usb 1-1: Manufacturer: Samsung
Jul 28 22:45:17 tp kernel: [810866.079032] usb 1-1: SerialNumber: XXXXXXXXXXXXXXXX

Now check the details of the USB device with lsusb.

lsusb -vd vendor:product | grep -i class

The vendor and product placeholders must be filled with the four-digit hex codes from the above /var/log/kern.log output.

This command will give your a list of USB “subinterfaces” that your phone exposes to your laptop, for example:

# sudo lsusb -vd 04e8:6860 | grep -i class
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
      bInterfaceClass         6 Imaging
      bInterfaceSubClass      1 Still Image Capture
      bInterfaceClass         6 Imaging
      bInterfaceSubClass      1 Still Image Capture
      bFunctionClass          2 Communications
      bFunctionSubClass       2 Abstract (modem)
      bInterfaceClass         2 Communications
      bInterfaceSubClass      2 Abstract (modem)
      bInterfaceClass        10 CDC Data
      bInterfaceSubClass      0 Unused
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0

This is a lot of gibberish (and even more if you read the entire output instead of greping for the USB classes), but it shows that the device implements class 06 – which usually means that the phone will be able to transfer images through the PTP/MTP protocol. *

Other devices will show a 08 class, in which case you should see a device node like /dev/sdxX which you can mount. (Check the node’s details with file -s /dev/sdxX before mounting.)

Long story short, while you will most likely not get mass storage support with a Windows device, you have a good chance that your phone will support MTP, especially as MTP is a brain child of Microsoft.

There are a couple of applications for Ubuntu that understand MTP so might want to install one of them and try accessing your phone’s storage. I personally like the Konqueror file manager very much and have made a flawless experience with its MTP integration.

* To be honest, I’m not 100% sure that this is factually correct, so feel free to correct me, anyone.


WinGeno

This a programme originally developed for Windows that can be installed on Linux.

  WinGeno is a free computer program to create diagrams of family
  constellations in form of genograms. The representation of particulars
  family members depends on the established symbols. WinGeno does not
  represent social nor emotional relationships.

  Supported systems: Windows 2000 and higher, Mac OS and Linux.
  Supported languages: English and German.

To run on Linux it requires Mono:

  WinGeno needs Mono 4.6 or higher as prerequisite. To prepare your
  Linux distribution you need to adhere to the installation description
  as mentioned here.


Run root script or command as root in startup application in Ubuntu 14.04

The sudo command expects you to enter your password via a command prompt. Use gksudo instead, and you will be shown a GUI prompt to type your password in.

So the command to add to your startup applications would be:

gksu service network-manager restart

You might also want to delay that command from running right away, to give your desktop a chance to load:

sleep 15s; gksu service network-manager restart


Computer only starts recovery mode Ubuntu 14.04 LTS

I have an Asus F553M.  It hung on boot and it hung on shut down.  Only recovery mode gave access.
The live DVD worked fine.
The fault was initially diagnosed to be caused by a Logitech unifying nano transmitter for the cordless mouse plugged into the USB2 port.
Once unplugged everything worked as it should.  Subsequently other nano transmitters were tried but the system functioned normally.

Thereafter, when the Logitech unifying transmitter was re-inserted the system continued to function normally.

In addition, since the laptop came with an unwanted Windows 8.1 pre-installed, I deleted all the partitions using gparted from the Linux install DVD, created a new ext4 partition and installed the Linux system.
Re-partitioning removed the GPT boot and re-instituted the MBR.  If GPT is preferred, you can redo this via "sudo gdisk /dev/sda" and make a selection from the choices offered.  To use "gdisk" the gdisk facility has to be installed from synaptic.  Please ensure that your MBR is backed up.  See http://www.rodsbooks.com/gdisk/wipegpt.html

"Secure Boot" had been disabled.


Change Default Program Install Path from SSD to Secondary HDD

Not sure about Ubuntu's programs, but with Steam you can specify another partition. When you go to install a game choose the drop down and choose create a new library on /boot then this will open where you can install to. Goto /media/YOURUSER/Your drive..folder. Then you can create a folder here and install games to it.


Your /etc/network/interfaces looks fine.

Change your /etc/netplan/01-netcfg.yaml to the following code (and only this)... using sudo -H gedit /etc/netplan/01-netcfg.yaml...

network:
  version: 2
  renderer: NetworkManager

Then, in terminal...

sudo netplan --debug generate # generate config files

sudo netplan apply # apply configuration

reboot # reboot the computer

Then use the standard Network Manager GUI to establish a wired/wireless connection.


Have a good read through the community documentation at:

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

As it states most webcams will just 'work' on ubuntu based on a USB standard.

Most camera's USB device id's are located at http://www.ideasonboard.org/uvc/

I would install Cheese Webcam Booth though the software centre and see if it detects your camera when connected also


How can I get rid off this Error Message which cause block any update to OS

You can resolve it by running this command:

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

Then:

sudo apt-get update


How to automatically segment video using ffmpeg without re-encoding?

You can use the segment muxer:
ffmpeg -i input.mp4 -map 0 -c copy -f segment -segment_time 1800 -reset_timestamps 1 output_%03d.mp4

In this example output files will be named output_000.mp4, output_001.mp4, etc.

Segments may not be exactly 30 minutes long because it must cut on keyframes only.


If you're using the graphics PPA verify you forced their version of packages.  I had a similar problem after 17.10 upgrade.  Run vulkaninfo to verify your loader is 'good'.

PPA:
https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa

Your /usr/share/vulkan/icd.d/nvidia_icd.json should look something like this:

{
    "file_format_version" : "1.0.0",
    "ICD": {
        "library_path": "libGLX_nvidia.so.0",
        "api_version" : "1.0.49"
    }
}

You likely have one that looks like this given your output:

{
    "file_format_version" : "1.0.0",
    "ICD": {
        "library_path": "libGL.so.1",
        "api_version" : "1.0.49"
    }
}


Asus FX503VD Ubuntu 18.04 touchpad now working

I have a Asus Notebook too (X510UR). The GRUB statement is not correct to this hardware.

Please update the GRUB statement GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=!" to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=noaer" and reboot.

I think that will be enough. Good luck.