Renaming (.filename) file to original names

The first two letters are history. No chance to get them back. But you can rename the files to strip the leading . with the procedure below

Be sure to have the bash in a terminal

bash

Go into your folder with the wrong filenames

shopt -s dotglob
rename -n 's/^\./Di/' *

If all looks fine

rename 's/^\./Di/' *

Finish with

shopt -u dotglob

Explanation

rename -n "s/^\./Di/" *

-n

No action: print names of files to be renamed, but don't rename.
/^\./

^ assert position at start of the string
\. matches the character . literally

shopt -s dotglob & shopt -u dotglob

shopt

shopt [-pqsu] [-o] [optname …]

Toggle the values of settings controlling optional shell behavior.
-s

Enable (set) each optname.
-u

Disable (unset) each optname.
dotglob

If set, Bash includes filenames beginning with a . in the results of filename expansion.

Example

$ ls -oag
total 88
drwxrwxr-x   2  4096 Jul 17 17:16 .
drwxr-xr-x 226 86016 Jul 17 17:13 ..
-rw-rw-r--   1     0 Jul 17 17:16 .foo

$ rename "s/^\./Di/" *

$ ls -oag
total 88
drwxrwxr-x   2  4096 Jul 17 17:16 .
drwxr-xr-x 226 86016 Jul 17 17:13 ..
-rw-rw-r--   1     0 Jul 17 17:16 Difoo

I'm not sure, what you mean with this

  Is there any way to change the "." back to the first letters of each
  filename

Do you mean something like this?

.zzyGir -> zzzzGir

If yes, then use this commands in a bash:

shopt -s dotglob
rename -n 's/^\.(..)(.*)/$1$1$2/' *

Check the results and rename with

rename 's/^\.(..)(.*)/$1$1$2/' *

And finally again

shopt -s dotglob


I'd like to install Ubuntu but I only have a USB stick of 512MB and do not want to use Mini CD ISO

Install Ubuntu Using a Small USB stick
The Ubuntu ISO can be installed using the grub bootloader from a USB stick. Here is a Step by Step.

Download the Ubuntu ISO to the Downloads folder of Windows. (There are easier methods to install Ubuntu if you already have Ubuntu).

Download the mkusb ISO boot template: https://phillw.net/isos/linux-tools/uefi-n-bios/dd_grub-boot-template-for-uefi-n-bios.img.xz

Extract the image to a minimum 250MB USB using Rufus, Etcher, mkusb, Disks, dd, etc.

Edit the first menu entry of usbboot/boot/grub/grub.cfg as follows
menuentry "ubuntu.iso" {
  search --set=root --fs-uuid 20EEA649EEA61756
  set isofile="/Users/c.cameron/Downloads/ubuntu-20.10-desktop-amd64.iso"
  loopback loop $isofile
  linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile toram --
  initrd (loop)/casper/initrd
}

Where 20EEA649EEA61756 is the Windows partition UUID.

Reboot the computer to "ubuntu.iso" and install Ubuntu using "Something Else" as normal.


iam not able to install java and android studio

For Java:

Open Terminal.

Type in sudo apt-get install openjdk-7-jdk openjdk-7-jre

For Android Studio:

Open Terminal.

Type sudo add-apt-repository ppa: paolorotolo / android-studio

Type sudo apt-get update

Type sudo apt-get install android-studio

Open the repository you installed it in and right click, then select "Run in Terminal".

You may need to connect the jdk to Android Studio, depending on which version, and if you get an error then try installing OracleJDK instead.


How do I change the line spacing in Terminal?

There is one terminal emulator that has this feature.

urxvt

from man urxvt:

-lsp number
Compile frills: Lines (pixel height) to insert between each row of the display.
Useful to work around font rendering problems; resource lineSpace.

urxvt is avalable in thease packages:

rxvt-unicode

rxvt-unicode-256color

rxvt-unicode-lite


Running a mono program without typing in 'mono foo.exe'

Does this link help? Running Mono

From the Mono Project on using binfmt:

Registering .exe as non-native binaries (Linux only)

Because this is a Linux-specific feature, we do not recommend that developers deploy this solution, as it would limit the portability of their scripts.

In addition, this mechanism does not work as intended by the Application Deployment Guidelines.

You can also make a systemwide change, and use binfmt to register the exe files as non-native binaries. Then, when trying to launch an exe file, the kernel will run the mono interpreter to handle the command. Binfmt can also be used to launch Windows executables using WINE, or Java .class files using a JVM. To register exe with the kernel:

Become root and turn on the binfmt module in your kernel with this command:

sudo apt-get install binfmt-support
modprobe binfmt_misc

In addition, you may want to add the modprobe command to your /etc/rc.local boot script, so that it will be executed on boot.

Add the line below to your /etc/fstab file:

binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc none

Then, have your system run the following command on boot:

echo ':CLR:M::MZ::/usr/bin/mono:' > /proc/sys/fs/binfmt_misc/register

Be sure to mark your .exe files as executable in the filesystem as well:

chmod +x myprogram.exe

Note that this doesn't change your kernel, just the modules that it loads when you boot your system. In other words, you can still upgrade your kernel without worrying about losing these changes. Similarly, you can upgrade your Mono runtime without affecting any of the invocation methods listed in this section.


My new printer Canon MG5520:

  Canon offers linux drivers for MG series of all-in-ones. Go to this page and follow the instructions. There are both source code and packaged versions of the software. Also you will probably need to download both IJ drivers and scanner drivers.

After downloading the packages from Canon as previously answer, I untar'ed, unzipped files, and executed sudo ./install.sh, I ran into "rpm install errors", until I did the following:

cd into extracted directory, then cd packages directory
converted .rpm packages to .deb packages using alien sudo alien *filter*64.rpm
modified install script - my edit command sudo vi ./install.sh as follows:

a. When packages is converted, package version is incremented so change:
  Line 24 in my file: C_version="4.00-2" <----Just change number after '-'
  to whatever is new number in converted filename.

b. Line 26 in my file: Changed C_default_system="rpm" to C_default_system="deb"

Note: You man need to install alien package using apt-get


Cinnamon hangs immediately after startup: no interaction with panel and popup notifications

This is more of a "workaround" then a "solution"...

As your user profile has some problem somewhere, it's just better to leave it behind!

Do the following:

sudo adduser newuser
Add the user to the right groups (Below are the standard groups for an admin user.  To get the user groups for the old user type: groups olduser)

sudo adduser user2 adm
sudo adduser user2 cdrom
sudo adduser user2 sudo
sudo adduser user2 dip
sudo adduser user2 plugdev
sudo adduser user2 lpadmin
sudo adduser user2 sambashare

Now, log in as "newuser" and:

open the file manager
browse to the /home/olduser directory
copy (not move!) all the files from Downloads to /home/newuser/Downloads
check you did a good job.
Go back to step 3 and repeat for Documents, Videos, ...

The only thing now still remaining it to delete the old user and its files:

sudo deluser olduser --remove-home


Desktop settings (background and applets) dissapear in Kubuntu 20.1

UPDATE: Well I couldn't find help anywhere, I tried some solutions that I found for this problem but they did not worked for me, maybe because were for older versions. So I reinstalled Kubuntu and repeated everything I did checking on every step (updating the system, installing drivers, installing software, changing some devices setup, etc) and found the cause that also works for Kubuntu 20.04, which I also tested and got the same problem. So I will post it here in case someone else has the same issue.
The problem was caused by a global theme. After downloading and installing the theme  "sweet KDE" my desktop turned black and every setting on the desktop stop being saved. I also installed and applied other 4 themes to check if they triggered the issue, and they didn't.
The "sweet KDE" theme also caused another issue in KUBUNTU 20.04 (NOT in 20.10): after installing the theme I could not restart, poweroff, or close session because the "KDE greeting"(I don't remember the full name of the app) froze leaving a blur screen with no options, so the only way to poweroff or restart was using the terminal.
THE SOLUTION: uninstall the theme. That's it. After uninstalling the theme all the problems went away and everything is working as it should again :)
The only annoying thing is that although I uninstalled the theme I still see it in the list of installed themes.
I hope this helps anyone that crosses with this kind of issue.


Docky 2.1.2 crashes when I try to remove a existing dock

First, I'd recommend you to launch docky through the terminal.
Type:

killall docky && docky

Then, try to recreate the problem. See what's appears on the terminal window.

If you want to reset the docky settings, probably typing

$ sudo apt-get purge docky
$ rm -r ~/.gconf/apps/docky*
$ sudo apt-get install docky

will do the trick.


7z "is not supported archive" while updating an archive

Quick solution:

 sudo apt-get install p7zip-full

If you have it already, take a look to the operation not permitted part of error message. It seems that you don't have sufficient permissions in that directory to write temp files. 7zip needs it. Please give write access to that directory!


Shell script with screen launching multiple commands

If you add '&' to the end of the first command it will allow the second command to run. So change the first command to:

screen -S PluginTest java -Xms1024M -Xmx1024M -XX:MaxPermSize=128M -jar /home/kalenpw/TestWorld/spigot-1.10.jar &

The '&' causes the command to be run in the background. If you add one to the end of the second command as well you will be returned to a prompt after running your script, and both of your commands will be running in the background. You will be able to see them by running the 'jobs' command.


21.04 Install does not find secondary display

Solution:
Disable Wayland
Commentary:
The Wayland config built by the install is bad.
Installing nvidia drivers and config program shows secondary card as 'disabled' (and can't enable)
Examining video config with Xrandr between booted and installed shows major differences


How to display window titles on not maximized windows?

I've a suggestion see my comment in this thread: https://askubuntu.com/a/798471/568202

  This is some kind of temporary fix I've found. Go to "System settings -> Appearance -> Behavior" and there in "Menus visibility" section check the option "Displayed on mouse hovering". The menus then will load only on mouse hover, and the titles will be shown.

I think it's related with the show/hide behavior of the menus and the titles (when you focus on menu the title disappears). Basically the temporary fix is to activate the show on mouse hover option for menus. I hope it helps a bit to ease the situation until the strange behavior is dealed with by ubuntu/unity developers.


See a list of recently accessed files, sorted by date

The Activity Journal  should list your recent files in a nice way.


There are a number of file sharing resources.  However, the easiest is actually Samba.  Out side of using Samba you may have to install something special on Windows to access the shares.

Some common share resources are, NFS and FTP.

Sharing with Samba (easiest)

Microsoft file sharing is already activated by default on Windows machines.  It's easily configured on Ubuntu.  You might consider posting (in another question) a description of the error's problems you're having with Samba and have a simpler solution.

On Ubuntu you can actually activate the Windows file sharing just by browsing to the folder you want to share (from the default file browser, Nautilus), right clicking on it, then click Local Network Share and then answer the gui prompt for configuring access.  Local Network Share is also one of the tabs when clicking on properties of a folder.

FTP Sharing

To sharing via FTP install vsftp.

To consider ftp for both uploading and downloading you'll have to edit the /etc/vsftpd.conf file.

You would have to uncomment the write_enable=YES option if you want others to be able to upload files to the shared space.

You can manage users by creating accounts for the users you want to give access and uncommenting the local_enable=YES option.

There are other details for setting it up of which you can get by reviewing  ubuntu's documentation page, https://help.ubuntu.com/community/vsftpd.

NFS sharing

Review the Ubuntu NFS documentation at: https://help.ubuntu.com/community/SettingUpNFSHowTo.

For this you would create directories that you want to share and specify the access parameters.  For instance (from the documents page):

/export       192.168.1.0/24(rw,fsid=0,insecure,no_subtree_check,async)
/export/users 192.168.1.0/24(rw,nohide,insecure,no_subtree_check,async)

The directories that you specify for sharing are referred to as exports.

Windows will have to be specifically configured to access the NFS shares.  You might have to get details from one of the Windows forms for the details of setting up the Windows Client.  Micorsoft has provided this page: https://technet.microsoft.com/en-us/library/cc732891.aspx


To show all running virtual machines we can issue the following command on the host:

VBoxManage list runningvms

If we only want to display the state of a running machine (running vs paused) we can also read from a long output of this command, e.g. like follows

VBoxManage list --long runningvms | grep State

In case your guest OS is freezing on the crash you encounter but still running this command will however still show the machine as alive. Only if the VM completeley aborts we will not get a result.

Alternatively we may also try if we can ping the VM in case it is connected by network.


This can solve your problem:
1) Go to "/usr/share/ca-certificates/mozilla/AddTrust_External_Root.crt" and Add that as my certificate.After that:
Go to "Edit Connections" and select my wireless connection.Then  went to "General" tab and untick "All users may connect to this network"
OR
2) Select Protected EAP (PEAP) for authentication mode, and ignored choosing a certificate file.


Unable to properly set static IP in Ubuntu 16.04

You have not declared DNS nameservers. I suggest you amend to:

# interfaces(5) file used by ifup(8) and ifdown(8)
# The loopback network interface
auto lo
iface lo inet loopback

# Primary network interface
auto enp4s0
#iface enp4s0 inet dhcp
iface enp4s0 inet static
    address 192.168.1.49
    netmask 255.255.255.0
    gateway 192.168.1.1
    dns-nameservers 8.8.8.8 192.168.1.1

Restart the interface:

sudo ifdown enp4s0 && sudo ifup enp4s0

Ping:

ping -c4 www.ubuntu.com

If you get ping returns, you are all set.


How to exclude filenames with certain numbers when using rename

To rename all but files 6, 8, 16, 19 and 28 if there are 30 files in total:

$ rename -n 's/Magi The Labyrinth Of Magic Episode ([^68][^689]?|18|26|29) .+mp4/MTLOM (DUB) $1.mp4/g' *
rename(Magi The Labyrinth Of Magic Episode 10 English Dubbed.mp4, MTLOM (DUB) 10.mp4)
rename(Magi The Labyrinth Of Magic Episode 11 English Dubbed.mp4, MTLOM (DUB) 11.mp4)
rename(Magi The Labyrinth Of Magic Episode 12 English Dubbed.mp4, MTLOM (DUB) 12.mp4)
rename(Magi The Labyrinth Of Magic Episode 13 English Dubbed.mp4, MTLOM (DUB) 13.mp4)
rename(Magi The Labyrinth Of Magic Episode 14 English Dubbed.mp4, MTLOM (DUB) 14.mp4)
rename(Magi The Labyrinth Of Magic Episode 15 English Dubbed.mp4, MTLOM (DUB) 15.mp4)
rename(Magi The Labyrinth Of Magic Episode 17 English Dubbed.mp4, MTLOM (DUB) 17.mp4)
rename(Magi The Labyrinth Of Magic Episode 18 English Dubbed.mp4, MTLOM (DUB) 18.mp4)
rename(Magi The Labyrinth Of Magic Episode 1 English Dubbed.mp4, MTLOM (DUB) 1.mp4)
rename(Magi The Labyrinth Of Magic Episode 20 English Dubbed.mp4, MTLOM (DUB) 20.mp4)
rename(Magi The Labyrinth Of Magic Episode 21 English Dubbed.mp4, MTLOM (DUB) 21.mp4)
rename(Magi The Labyrinth Of Magic Episode 22 English Dubbed.mp4, MTLOM (DUB) 22.mp4)
rename(Magi The Labyrinth Of Magic Episode 23 English Dubbed.mp4, MTLOM (DUB) 23.mp4)
rename(Magi The Labyrinth Of Magic Episode 24 English Dubbed.mp4, MTLOM (DUB) 24.mp4)
rename(Magi The Labyrinth Of Magic Episode 25 English Dubbed.mp4, MTLOM (DUB) 25.mp4)
rename(Magi The Labyrinth Of Magic Episode 26 English Dubbed.mp4, MTLOM (DUB) 26.mp4)
rename(Magi The Labyrinth Of Magic Episode 27 English Dubbed.mp4, MTLOM (DUB) 27.mp4)
rename(Magi The Labyrinth Of Magic Episode 29 English Dubbed.mp4, MTLOM (DUB) 29.mp4)
rename(Magi The Labyrinth Of Magic Episode 2 English Dubbed.mp4, MTLOM (DUB) 2.mp4)
rename(Magi The Labyrinth Of Magic Episode 30 English Dubbed.mp4, MTLOM (DUB) 30.mp4)
rename(Magi The Labyrinth Of Magic Episode 3 English Dubbed.mp4, MTLOM (DUB) 3.mp4)
rename(Magi The Labyrinth Of Magic Episode 4 English Dubbed.mp4, MTLOM (DUB) 4.mp4)
rename(Magi The Labyrinth Of Magic Episode 5 English Dubbed.mp4, MTLOM (DUB) 5.mp4)
rename(Magi The Labyrinth Of Magic Episode 7 English Dubbed.mp4, MTLOM (DUB) 7.mp4)
rename(Magi The Labyrinth Of Magic Episode 9 English Dubbed.mp4, MTLOM (DUB) 9.mp4)

Using () to save the pattern and $1 to reference it. I am not sure what you want to happen with the 0* in your replacement - I just took it out. Adjust as desired.

I took out the unnecessary escapes

Note on regex

-[^68][^689]?|18|26|29 match any char but 6 or 8 followed optionally by any char but 6, 8, or 9, or, match 18, or, match 26, or, match 29. Not very elegant...


How can i install .deb files from terminal , i tried different ways in askubuntu

You are trying to execute the command in the wrong directory. You have two ways to correct it and get going:

Using the GUI:

Open files(the file browser in ubuntu) and go to your Downloads directory(this should be visible when you open the file browser) and then double click on the team viewer .deb file.
This will open the software center and take some time to load everything and then you should see the install button on the top right hand side.
Click on "Install" and this will install team viewer for you.

Using the command-line:

Open a terminal (press Alt+F2 and type gnome terminal and open the application) and then type the following one line at a time:

cd ~/Downloads
sudo dpkg -i  teamviewer_linux_x64.deb

and then enter your password when prompted and press Return.


How can I recover the password of an encrypted Home folder?

It is very unlikely that you can easily recover the encryption code and access your data. Unless you're a security expert, or have access to some brilliant minds from the NSA, you must recover your password to be able to access your data. That's in a gist the trouble with securely stored data: if you lose your key, no one can access it anymore. Not easily, anyways...

You may of course attempt brute-force methods to try to decrypt your device, given that you must have an idea about its characteristics (length, symbols or numbers used, etc.), and perhaps you already know it partially. Unfortunately I wouldn't have any precise recommendations to give here. Try to check out http://security.stackexchange.com for possible solutions.


Can not change Mysql Server 8 root password Kubuntu 19.10

File '/home/da/dainit' not found (OS errno 13 - Permission denied

That should be pretty easy: that file is not owned by your mysql user. Mysql has its own user and requires files you want to access to be owned by that user.

sudo chown mysql:adm /home/da/dainit

would fix it.  (mysql:adm are defaults; if you changed those change to what you need)


Can't get cdrecord to work on new 13.04 installation

As @braiam mentioned this would appear to be a known issue with wodim. As a workaround you can use wodim -prcap instead.

$ wodim -prcap
wodim: Operation not permitted. Warning: Cannot raise RLIMIT_MEMLOCK limits.
Device was not specified. Trying to find an appropriate drive...
Detected CD-R drive: /dev/sr0
Using /dev/cdrom of unknown capabilities
Device type    : Removable CD-ROM
Version        : 5
Response Format: 2
Capabilities   :
Vendor_info    : 'Optiarc '
Identification : 'DVD RW AD-7930H '
Revision       : '1.D1'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.

Drive capabilities, per MMC-3 page 2A:

  Does read CD-R media
  Does write CD-R media
  Does read CD-RW media
  Does write CD-RW media
  Does read DVD-ROM media
  Does read DVD-R media
  Does write DVD-R media
  Does read DVD-RAM media
  Does write DVD-RAM media
  Does support test writing

  Does read Mode 2 Form 1 blocks
  Does read Mode 2 Form 2 blocks
...


Increase the /home partition without losing the data

You will need Ubuntu or Gparted live CD for this. Boot from live CD and run gparted. If swap and home partitions are adjacent to each other then you can simply shrink your swap partition and extend the home and that will do. To do this first right click on the swap partition, if you see a swapof option then click it.

This will make ubuntu to stop using swap and enable the resize/move option for this partition. Now again right click on the swap partiton and click on resize/move.

A new dialog will appear where you can select the new size for your partition and select whether the free space appears to left or right of the swap partition. Enter the new values and click the Resize/Move button.

Now you can resize your home partition in a similar manner to use the freed space. Just make sure the partition is unmounted, then right click on the partition in gparted and select Resize/Move. From the dialog that appears extend your home partition to use the available space and click on the Resize/Move button. Now the new sizes of the partitions can be seen in the gparted main window. The changes are NOT APPLIED to the disk at the moment. Once again look at the partitions and their sizes. If you are satisfied then go to Edit menu and click on Apply All Operations. A confirmation dialog will appear asking if you are sure, if you are click yes and the changes will be applied to the disk.

If you / partition is between swap and home then you will need to shrink the swap, move / partition to left and then extend the home partition.

NOTE: Normally things go smoothly i.e without any problem but sometime they don't and therefore it is important that you backup your data before making any changes to your harddisk. Its better to be safe than sorry. Best of luck.


Change default file manager Ubuntu 18.04

Fully tested in Ubuntu 18.04 running the default Gnome desktop:

This works for me: https://itsfoss.com/install-nemo-file-manager-ubuntu/

In short, to use Nemo instead of Nautilus as your default file manager, including to manage desktop icons, do:

... [content intentionally deleted and moved to the link below]

UPDATE: My answer moved to here (How to set Nemo as the default file manager in Ubuntu 18.04?) since it pertains directly to using the nemo file manager instead of the default Nautilus, whereas the OP here is asking more about using Thunar.

If you need nemo, my link just above is perfect for you! Nemo is pretty similar to thunar in many ways too, so I highly recommend trying it out. Ubuntu's version of Nautilus, on the other hand, has removed many valuable features such as "Compact View", which I really miss. Therefore, I choose to use nemo.


you can install one software on windows 10 :unetbootin and you install ubuntu desktop on your computer (please don't copy the ubuntu desktop to your hard disk first),please open unetbootin and select ISO and select Diskimage and select the ubuntu desktop file and you may wait it install finish.Please boot your computer.And you will enter a menu called" Boot Menu ", please don't select windows boot manager,you may select another server(I don't know what server is it)and you will come in to ubuntu already because I also Lenovo want. Thank you.


Cannot mount NTFS partition in Ubuntu 13.04

Like Thefourtheye said, your Windows is in hibernation mode. If you intentionally selected this mode, a clean shutdown should do the trick.

What I would like to add is if you have Windows 8, by default, even when you shutdown the computer, Windows goes to hibernation. It's called "hybrid mode" of "fast startup": when you select shutdown in Windows 8, your users' sessions end but the system goes to hibernation.

If you have Windows 8, you will also need to disable "fast startup":

Open the Control Panel and click on Power Options;
Click on Choose what the power buttons do;
Click on Change settings that are currently unavailable;
Under Shutdown settings, check the Turn on fast startup box, and click Save changes button.

(You migth want to search "disable windows 8 fast startup" in your favorite search engine, as some tutorials available have screenshots.)

Now, a future shutdown of Windows 8 should do a clean shutdown. It will cleanly unmount the NTFS volumes, allowing them to be mounted later in Ubuntu.


Ubuntu 12.04 MySQL 5.5 MyODBC 5.1 or 3.1 query hangs

It is too bad nobody has responded to my question.
I will add some new clues:

1) The queries work well from Windows XP to old and new MySQL linux versions on 32 or 64 bit server.
2) Windows Vista or 7 fails to query on the new MySQL versions

My guess is that newer Windows are sabotaging the queries on newer versions of MySQL/linux servers.

Could somebody tell me a possible solution or configuration fix.

Thanks.


Packet Tracer 7.2 freezes while trying to save file

I encounter this problem too, but I don't know why this problem always happen. The solution is, save your work with different name, so filename suggestion wouldn't appear


Turn power OFF of USB Ports - Ubuntu 10.04 machine

I thought your question was interesting so I decided to look into it myself.  What I found was this answer, and it rather looks like it might apply to your question, while at the same time offering others such as myself an interesting capability I never knew I had!

https://stackoverflow.com/questions/4702216/controlling-a-usb-power-supply-on-off-with-linux


Proper way to execute a script on system startup?

Actually there is a way to execute user specific commands during boot up time. The commands or scripts that we want to execute should be added to the script /etc/rc.local

The script /etc/rc.local will be similar to a shell script. Make sure it's exit status is 0, add the following line to that script "exit 0".

This /etc/rc.local script is executed at the end of each multiuser runlevel.

From here

Also you can see examples in /etc/init.d/


Just bought a new laptop and need some help

The problem is that AMD drivers are kind of outdated, but you don't need to install them, just stick with the open source ones. To be sure everything is ok and not not wast time: Make a bootable usb with Ubuntu, boot from it and choose the option: try without installing, or something like that. This will open up a live session that will only load Ubuntu on the RAM and will not touch your HDD. Make sure all is working fine then you could install it.

Also as a rule of thumb: Some vendors work close with Canonical to certified their hardware and make sure Ubuntu works just fine on it. Here is a list. Your laptop is not there, but that doesn't mean there is something wrong.


Never had an issue with this.. I'd simply enable tethering via USB in my phones settings, and Ubuntu would connect easily.
Can you confirm that you've enabled USB tethering?
To tether via WiFi, enable WiFi tethering in the phones settings, then look for the ssid under wireless connections in Ubuntu, and connect as usual.
You can also try to tether via Bluetooth, but it'll be slow.


It appears that bt-audio is currently depreciated: https://github.com/khvzak/bluez-tools/blob/193ad6bb3db7ed2ba6b93c1ab4e1e592985e5b90/ChangeLog

You can download the older version here:
https://launchpad.net/ubuntu/raring/amd64/bluez-tools/0.1.38+git662e-3


Unable to get sound working. Ubuntu Server 14.04.3

This was fixed by manually loading snd_hda_intel, accessing volume settings by typing alsamixer at the console and then turning down the volumes from the red area. This seems to have stopped the sound from being all static.

These levels were then saved by issuing the command:

sudo alsactl store

The module was set to load at boot by adding:

snd_hda_intel

to the list in:

/etc/modules

To do that I used nano:

sudo nano /etc/modules

I could've swore I tried messing with the volume before, but oh well, its working now =D


Amd Raedon 7950 HD with 3 Displays verry slow

I had a 3 headed rig recently.  It ran with reasonable frame-rates, but as always with gaming - switch to a non-compositing (not unity3d) desktop for the best performance if you're running things in wine to ease up the load on your card.

My 5850 belted things out fine, despite having some temperature issues with binary drivers.

1) Use the binary driver
2) Back down to a lighter DE for gaming
3) Turn off visual effects you don't need (like wobblywindows et al)
4) Turn off Zeitgeist and disable all the lenses you can

That last part is probably overkill/a little much,but it may help.  Turn off anything that runs constantly.


Dual boot Windows 8.1 BSOD on startup after resizing partitions

I've solved this issue:

I created a bootable Windows 8.1 USB disk on my windows desktop and booted it.

In the repair menu I selected Advanced Repair Settings > Startup Repair (maybe not the exact words as I was using a Russian language version)


Trying to answer your merged questions:

Question 1: This mecanism isn't available as of today (we may introduce one in the future, with the 3 separated snaps as you infer, but this isn't available now).
Another option you can seek if, if snap 2 and 3 are tightly coupled, you can have one snap containing the jvm, and your 2 services. Then, some configuration to choose what to start (service 1, service 2 or the two of them).

Question 2: This isn't the case nowdays, however, I encourage you to file a bug to request such a feature as a bug on launchpad.


Try this to recover grub:

Open the live version of Ubuntu (either brun the LiveCD or install the image to a bootable USB device using Startup Disk Creator)
Open terminal and run sudo fdisk -l to see where Linux is installed on
Run sudo mount /dev/sdxY /mnt where x is altter and Y a number you have found in the previous step
Run sudo grub-install --root-directory=/mnt /dev/sdx to install grub
Run sudo update-grub to update grub
Reboot


how can I create shot down short cut on keyboard

There is already a shortcut for this. http://en.wikipedia.org/wiki/Magic_SysRq_key

I assume your case it's ctrl + alt + printscr + o. But look it up in the table provided there.


Is it possible to change the color of Ubuntu's visual style?

Just change your wallpaper. The Unity Desktop imitates the change and the entire dock takes a color of the same hue.


I get this error when trying to install, purge, etc

Because of downloaded jdk-8u***-linux-x64.tar.gz did not pass SHA256 checksum, installer can't do next process. Dependency problem.

Remove oracle-jdk8-installer cache.

sudo rm -rf /var/cache/oracle-jdk8-installer/jdk-*

Install again oracle-jdk8-installer

sudo apt-get install oracle-java8-installer oracle-java8-set-default

Check downloading progress. jdk-8u***-linux-x64.tar.gz file size may be more than 150 MB.


sound levels in alsamixer versus sound levels in the 'sound settings' menu

Percentages are always relative.

In alsamixer, 100% is the maximum value of the mixer control.

In PulseAudio, 100% is 0 dB.

(Please note that this still doesn't tell you anything about the absolute volume level.)


Ubuntu Touch on Galaxy nexus - Device not found on server

Back in January 2014, support for the Galaxy Nexus was dropped because the overhead of maintaining it for Ubuntu touch was too high. (Source)


Partition does not show up after editing fstab

Mountpoints for other partitions should be in /media

Make a new mountpoint for your NTFS partition:

mkdir /media/windows

or if not windows then whatever you prefer to call it

Now edit your fstab to correspond to that mountpoint:

UUID=5CB5FBB62D2AA5D5 /media/windows ntfs rw,auto,users,exec,nls=utf8,umask=003,gid=46,uid=1000    0   0

On reboot the partition will show up as a device in the left panel.

See fstab help for reference.


Mounted cifs share but no write permissions

In my case solution was to add noperm option on the fstab entry


There are a few choices to be made when selecting an MTA to install;
the first one is whether you want a send-only MTA or you need a
fully-fledged mail server.

This Unix.SE post
provides a comprehensive list of send-only MTAs available; all of them
are already packaged for Ubuntu 10.10. There are a few things you
might want to consider when choosing a send-only MTA:

whether it can queue e-mails for later delivery in case of a
failure: IIRC, only nullmailer can do this.
whether it will replace the system mail delivery agent (look for a
line Provides: mail-transport-agent in the output of apt-cache
show package).  If it does, then all mail originating from the
system (including reports from cron jobs, popularity statistics,
etc.) will be handled by the MTA you install: if you do not set up
correct mail aliases for root and other users, the email might
end up delivered at the wrong address (typically, some sysadmin at
your ISP).  Currently, packages nullmailer, esmtp-run (but not
esmtp) and ssmtp fall into this category.
All send-only MTAs will just forward your email to another server
(called "relay host" or "smarthost"; typically it's your ISP's SMTP
server) and then let it handle all the details of real Internet
mail delivery.  You need to figure out whether there are any
special requirements for connecting to the ISP server (e.g., some
kind of authentication or TLS) and choose an MTA that supports the
required features (for instance, ssmtp does not support any kind
of authentication or SSL/TLS).

Fully-fledged mail servers include exim,
postfix, and
sendmail.  The
post-installation installation script for Debian/Ubuntu will do a
great job of producing a working configuration for some common setup
(delivery of mail to the local system only; sending email through a
"smarthost" -- i.e., a mail server you funnel all your emails
through, typically your ISP's SMTP host; internet site with full
inbound and outbound connectivity).  IMHO, postfix is the easiest to
run and configure, but since it's so capable, its configuration manual
is way longer than any of the send-only MTAs.

In addition, the real risk with setting up a mail server is that, if
you make a mistake in the local configuration, you end up with mail
delivered to the wrong place (read: lost) or -worse- with an
open-relay system that can be used by spammers (and, trust me, they
can find an open relay before you realize your server is one).

My advice would be then to start with a send-only MTA and then
upgrade to a full mail server only if you see the need for it (which
is not the case if you just want to send emails to your GMail
address).


How to install Python 3.5.1 on Wily Werewolf 15.10?

Solution 1: Use Docker

I would suggest that you use Docker If you would like to test out a newer version of Python without overwriting your system Python (which it is very important that you don't, because Python 2.x and 3.x are different enough that 3.x will have breaking changes and will cause problems for packages that depend on Python 2.x)

Docker is a way to run lightweight Linux applications in a containerized way.  Think of them like a more lightweight Virtual Machine, or a chroot with a layered union filesystem plus the management & system resource separation provided by cgroups.

To install Docker, follow the Ubuntu Installation instructions here.
To run a different version of python inside a container:

Pick a version from the list here
Run: docker pull python:<your_version_here>
Run: docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp python:<your_version_here> python your-daemon-or-script.py

If you develop an application that you'd like to package up (optionally with dependencies) inside a container, you can create a Dockerfile with build & dependency setup instructions, then build an image to distribute on Docker Hub.  Doing so is a bit beyond the scope of your question, but the docker-library/python docs give a quick summary for how to get started.

Solution 2: Use packages from the "dead snakes" PPA

There is an archive of old & new versions of Python here.  To install an alternate version of Python:

Run: apt-get -y install software-properties-common
Run: sudo add-apt-repository ppa:fkrull/deadsnakes
Run: sudo apt-get update
Run: sudo apt-get -y install python<your_version_here> python<your_version_here>-dev
To run a Python script with one of these versions, use the alternate binary that was installed.

Run: python<your_version_here> your-daemon-or-script.py
For Example, with Python 3.5: /usr/bin/python3.5 your-daemon-or-script.py

If you need to install a specific minor version of the package, you can find the available versions with apt-cache madison.  For example, let's say we wanted to install a specific version of python3.4:

$ apt-cache madison python3.4
 python3.4 | 3.4.3-1ubuntu1~14.04.3 | http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
 python3.4 | 3.4.0-2ubuntu1.1 | http://archive.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
 python3.4 | 3.4.0-2ubuntu1 | http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
 python3.4 | 3.4.0-2ubuntu1 | http://archive.ubuntu.com/ubuntu/ trusty/main Sources
 python3.4 | 3.4.3-1ubuntu1~14.04.3 | http://archive.ubuntu.com/ubuntu/ trusty-updates/main Sources
 python3.4 | 3.4.0-2ubuntu1.1 | http://archive.ubuntu.com/ubuntu/ trusty-security/main Sources

# To install a specific version, suffix the package name with =<version_here>
# For example:
$ apt-get -y install python3.4=3.4.0-2ubuntu1


Dual boot with separate hard drives. HD1 has Ubuntu 14.04 HD2 has Windows7

Are you booting with BIOS or UEFI? If your PC is relatively new (post 2013) then chances are your are using UEFI. If you have UEFI correctly configured you can have both hard drives plugged in, and just go to the UEFI boot menu as your computer starts up to select between the two operation systems.

If you are using BIOS then just change or override the boot order in BIOS settings to the hard drive with the desired OS installed.


How to reinstall PulseAudio (Ubuntu 12.04)

From a forum thread, open a terminal and type:*

sudo apt-get purge pulseaudio
sudo apt-get clean && sudo apt-get autoremove

Reboot. Open a terminal again and type (ignore any errors with the rm command):

rm -r ~/.pulse ~/.asound* ~/.pulse-cookie ~/.config/pulse
sudo apt-get install pulseaudio
sudo alsa force-reload
pavucontrol

The last command should restart the PulseAudio server and launch a desktop application for its settings. Another thread notes that there might be conflicts with IPv6. If so, then edit /etc/avahi/avahi-daemon.conf and set use-ipv6 to no:

[server]
use-ipv4=yes
use-ipv6=no

Restart the avahi-daemon (e.g., reboot again).

Make sure that the audio devices are not muted.

*Note: Using apt instead of apt-get may work as well.

See also:

Missing System Settings after removing some packages
https://bbs.archlinux.org/viewtopic.php?id=127480
http://itsfoss.com/fix-sound-ubuntu-1304-quick-tip/
http://www.troubleshooters.com/linux/sound/sound_troubleshooting.htm


Can't assess grub on dual boot windows 8 and ubuntu 12.04 without shutting down windows and powering on again

This is the absolute normal behaviour you expect when dual-booting. Your computer will only be able to run a single operating system at the time.

Therefore whenever you change your operating system from Windows to Ubuntu or vice versa you will have to reboot. The first boot device then has to be the drive where you had put the boot-loader Grub. You may have to change the boot order in BIOS to always boot from the drive Grub sits on.

In case you need both operating systems running at the sane time there is no other choice than putting one of them into a virtual machine installed in the other OS.


File encryption program for all platforms

Truecrypt is (was?) probably the most well known cross platform, open source encryption tool, but unfortunately the project was mysteriously shut down by its anonymous developers just a few months ago, when the website was replaced with a message stating that it's "no longer safe."

However, the general consensus in the security community seems to be that Truecrypt is still safe to use; it's just that it will no longer be updated by the original authors.  Some Truecrypt enthusiasts are attempting to pick up on the project, and are providing downloads here.  Personally I think it's still a viable encryption tool, as an ongoing, crowd-funded effort to do comprehensive audit of Truecrypt's code has not turned up any major problems after Phase 1.  It is supported on all major platforms, including Windows, Mac, and Linux.  Android support is provided by 3rd party apps.  Of course it's up to you to decide whether it's secure enough for your needs, but I think it's worth a try.

(PS, Ed Snowden was a big fan of Truecrypt, if that means anything to you.)


Just downloaded Ubuntu 16.04. Where is the desktop?

I think you are confused about Ubuntu and other GNU/Linux distros.

Ubuntu is not a program, it's an operating system like Microsoft Windows and Mac OS X.

--> You need to burn a CD/DVD or USB drive with the ISO file that you downloaded.

Then, reboot the computer, boot from the disk (or USB) and try it or install it from there.

If you choose to install, you will most likely lose everything on your hard drive, make sure to try the system first before installing.


How to open PDF files directly in chromium-browser and run faster downloads from internet

First of all, Welcome to AskUbuntu. And I suggest you to make just one question at once in order to receive the proper support, preferably in English. If you write in Spanish the answers to your question may delay until somebody translate your question.

I can partially answer your question specifically in the first point, related to your issue with the PDF Files and Chromium Browser.

Chromium Browser does not have an embedded PDF reader as Google Chrome does. That's why you won't be able to do anything in order to read your online PDF's directly on the browser and you are forced to download them insted.

You can -anyway- try to install Google Chrome, and copy the respective Google Chrome plugins to your current Chromium Browser in order to make Chromium able to open PDF's directly by following the steps provided in this previous answer by @shaneonabike, please note that in the comments @DanielHershcovich mentions that it will be better if you make a symbolic link to the plugins instead of copying, but this will be useful if you plan to keep both Google Chrome and Chromium Browser. If you plan to uninstall Google Chrome, you may wish to run the steps as mentioned by @shaneonabike, reproduced here for your convenience:

  You have two solutions that I can see here (applied to Ubuntu 11.10)
  [This was inspired by comments above and other sources I found]

  Install Chrome and then copy over *.so files which technically gets you around the legality issues

  Here's how I did that...

  Close Chromium
  Download Chrome from Chrome distro
  Install it on your Ubuntu release
  cd /usr/lib/chromium-browser/
  sudo cp /opt/google/chrome/*.so .
  Start Chromium

  Note: The new plugins never showed up in my extension listing but suddenly just started working properly. By copy all *.so you are
  getting support for Flash, FFMPEG, and PDF support.

  If you want to copy each individual item here is a listing of them for
  you to hand pick.

  libffmpegsumo.so - ffmpeg
  libgcflashplayer.so - Flash
  libpdf.so - PDF

I must warn you that Google Chrome and its plugins are non-free software, but this workaround seems not to be harmful at all. (Tested by me).

As of your second question I can't provide you with any solution but I suggest you to open a new question about it in order to receive the proper support from other users.

Good luck!


If you put the following into an .xml file and run tickr <filename>.xml, then you'll have what you want:

<rss version="0.91">
<channel>
<title>askubuntu.com is rad!</title>
</channel>
</rss>

You could then have the behavior you want (i.e., running appname "my own text") by writing a script. For example, put the following into a file called my-tickr.sh:

#! /bin/bash`
echo "<rss version="0.91">" > .tmp.tickr
echo "<channel>" >> .tmp.tickr
echo "<title> $1 </title>" >>.tmp.tickr
echo "</channel>" >>.tmp.tickr
echo "</rss>" >>.tmp.tickr

tickr .tmp.tickr &

Then run chmod +x my-tickr.sh to make the script executable. Then running ./my-tickr.sh 'askubuntu is rad!' should behave as desired. Note the use of single quotes around 'askubuntu is rad!': this ensures that each character in your string is interpreted literally (Thanks to January for pointing this out).


Script not logging to file when run from cron, but works fine otherwise

via steeldriver

  Does the script have a shebang? if not, it will be executed in /bin/sh - which doesn't understand the &> redirection bashism

That does it.


You can find that out by going to the PPA page.

I'm using this PPA as an example.

Head to your PPA link, and then click "Technical details about this PPA".

What you're looking for is the "Signing key", in this case it's 1024R/D306B7D0, which is also a link to the Keyserver.ubuntu.com entry for the key.

You can then do whatever you need to do for that.


Change Virtual Box Host Key

From the Top Menu choose File > Preferences...
Select Input > Virtual Machine tab
Select Shortcut in the Host Key Combination line:

Press new key shortcut
click Ok to save changes


'SDL_OpenAudio failed: No available audio device' while starting Psychonauts

The Psychonauts port to Linux is only released in 32bit and requires that some sound libraries are installed.

Open a terminal, or if you wish look for the package in the Ubuntu Software Center, and install libpulse0:i386

sudo apt-get install libpulse0:i386

After you have done so the game will start normally and the sound will be working.


Imagine if you are shifting your home to a new one. What are the problems would you come across in the first week?  You would struggle to find out the right switch for your bathroom light. Things wouldn't be in the same place as before. Every morning you get up, it would take you a second to realize where you are.  But after a week, you get adjusted to it. You start loving your new home. Similar situation arises when you switch from windows to Ubuntu.

Here are some advantages and Disadvantages of switching from Windows to Linux :

Advantages :

Its free. unlike windows,  Ubuntu won't charge you for using it. You can customize how ever you want it.
Most of the drivers are shipped with the kernel. If not, you can easily find many guides on the web on installing them.
Open source alternatives:  For most of the proprietary software you use on windows, you can find free open-source alternatives for them. Like Photoshop --> GIMP, MS-Office --> Libre

If you are not happy with alternatives, don't worry, many proprietary software are available for Linux too. And you can even run your windows software on Linux with the help of emulators like WINE.
Ubuntu Community and Documentation : This is the best part. In Linux, you can find many fourms and Q&A sites. You won't feel alone. Anything you find difficult , you are always welcome to ask for help here.

Coming to the Documentation, I have no words. man is everything. You will find detailed information about each and every thing you use on Linux.
Cooler themes , and more opportunity for customization

Unlike windows, Here you have choice to install and use any Desktop environment. You can find so many themes. Have a look here : http://www.noobslab.com/p/themes-icons.html .

Guess what ? you can even make it look like windows-10 : Really ? click here
Better security : You might already know this, there is no need of any anti-virus software for Linux (there are some, if you need) . On linux - No virus, no disease nothing. So you saved some bucks and your data and your privacy.

Disadvantages :

hm... wait a second, I am thinking of some ...

Though it is not usually required to use command line for a casual user, It is very much recommended to know the basics. So it would take you some time to get used to it.
Gaming support : though there are many many cool games for linux, You will still find Linux lacking support for high end games. You can use Steam on Linux, but native gaming.. not much.
Your friends  use windows ? or .. are you a student ?

As a student, I some time find it difficult to set up Windows software or find alternatives to those Windows software they use in my College. And If your friends use Windows, you might want to consider dual booting rather than switching to Linux.

My suggestions :

Go step-by-step

Do not directly jump to Linux. First try it for a while in a virtual box. After that, if you find it comfortable, try dual-booting Linux. So that if you need windows, you can use it anytime you want. Finally, If you get really comfortable, then remove windows and keep using Linux :)
Do some research : find out the best Linux distro and best Desktop environment for you.


I used Vagrant to create the VM where I installed devstack. Before I had this plug-in to vagrant (https://github.com/sprotheroe/vagrant-disksize) in order to be able to increase disk size similarly than we do in Vagrantfile (listed down) for fixing Ram size and it works quite well.

# -*- mode: ruby -*-
# vi: set ft=ruby :

Subnet="192.168.88"
Name="devstack"
Domain="dev"

VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

  config.vm.box = "ubuntu/xenial64"

  config.disksize.size = '100GB'

  config.vm.define :"#{Name}" do |machine|
machine.vm.network :private_network, ip: "#{Subnet}.0"
machine.vm.hostname = "#{Name}.#{Domain}"
machine.ssh.insert_key = false

machine.vm.provider :virtualbox do |v|
v.memory = 15360
v.cpus = 4
end
end
end

Notice that it works only with Virtualbox as VM provider to vagrant.


Shell Not Able read files written with python

Please Do not go through algorithm of python file.It works fine.

Well yes - but actually no. It writes the characters of the filename, but doesn't terminate the string with a newline.

The shell's read command expects to read complete lines, and returns a non-zero exit status if it does not do so. Hence while IFS= read -r line does not execute the loop body.

You should either modify your python code to write the terminating newline, or modify your shell code so that the loop body tests for a non-empty line as well:

while IFS= read -r line || [[ -n $line ]]; do ...

See for example Why does this 'while' loop not recognize the last line?


you can use this command line, it's an improvement of @Sergiv Kolodyazhnyy which print the \n at the right place

while IFS= read -r line || [ -n "$line" ]; do printf "%s " "$line" ; printf "\n" ; done < test.txt

(sorry to not be able to comment)


How to install Java 13 on Ubuntu 18.04.3? (Works in 20.04 too)

Followed https://openjdk.java.net/install/index.html per Pilot6 comment (thanks).
JDK 9 & Later
Oracle's OpenJDK JDK binaries for Windows, macOS, and Linux are available on release-specific pages of jdk.java.net as .tar.gz or .zip archives.
As an example, the archives for JDK 13 may be found on jdk.java.net/13 and may be extracted on the command line using
$ tar xvf openjdk-13*_bin.tar.gz

Commands to download java 15 from jdk net (Linux / x64) using terminal and saving to a folder in Downloads folder called 'j'. ~ is shortcut for current logged in user's home directory
mkdir ~/Downloads/j
cd  ~/Downloads/j
curl https://download.java.net/java/GA/jdk15.0.2/0d1cfde4252546c6931946de8db48ee2/7/GPL/openjdk-15.0.2_linux-x64_bin.tar.gz --output ./jdk_15.0.2_linuxx64bin.tar.gz
 tar xvf j16.tar.gz

Used sudo mv to move directory 'jdk-13.0.1' to /usr/lib/jvm/
  sudo mv jdk-16  /usr/lib/jvm/

Then in my ~/.profile file added/edited (as I had Java 11 before) in text editor:
export JAVA_HOME=/usr/lib/jvm/jdk-13.0.1
export PATH=$JAVA_HOME/bin:$PATH

In the current terminal gave above two commands and could use Java 13. Worked after restart too due to entry in ~/.profile


Is number of compiled modules affecting size of kernel in RAM?

I suspect that with external modules (eg make menuconfig shows M), you'll only see more memory usage if you load the module. And that's all frightfully dynamic these days.

But yes, built-in modules will probably use more memory.

Don't forget that you can create a config based on the modules you're currently using with make localmodconfig. I've always had a bit of a battle with it personally but it's there to strip kernels right down to what you need. There's a good article on h-online on kernel trimming.


ethernet and wireless do not work on Lenovo W520 under Ubuntu 10.04.3

Well first step I did was take a look here at the Ubuntu Cert Site:
http://www.ubuntu.com/certification/hardware/201103-7374
It looks like that your model was certified in 10.10 codenamed (Maverick)
I see in your description that CAElinux 2011 is based on Ubuntu 10.04.3 LTS (Lucid) which is the release prior Maverick

Ubuntu 10.04 LTS (Lucid Lynx)
Ubuntu 10.10 (Maverick Meerkat)
I
Ubuntu 11.04 (Natty Narwhal)
Ubuntu 11.10 (Oneiric Ocelot)
Ubuntu 12.04 LTS (Precise Pangolin)

I think it's safe to say that if your looking for an easy user experience your going to have to find a updated version thats based on 10.10 or better.
I found the following link while researching your network card. I think you should be able to follow along the thread and resolve your issue. You will probably have to download the module source on a different computer and transfer it via USB key. Hope this helps!
http://ubuntuforums.org/archive/index.php/t-1741686.html


How do I get a Belkin F5D6050 wireless USB network adapter to work?

At the bottom of you trace is the following error message:

usb 2-1: new full speed USB device number 4 using uhci_hcd
    [ 3335.676636] usb 2-1: firmware atmel_at76c503-rfmd.bin not found!
    [ 3335.676645] usb 2-1: you may need to download the firmware from http://developer.berlios.de/projects/at76c503a/
    [ 3335.676663] at76c50x-usb: probe of 2-1:1.0 failed with error -2

Therefore, download the firmware file from the website: http://developer.berlios.de/projects/at76c503a/

Then in a terminal:

cd ~/Downloads
tar xvf at76_usb-firmware-0.1.tar.gz
cd at76_usb-firmware-0.1/
sudo cp *.bin /lib/firmware

Logout and login.  Hopefully now your wireless card is now recognised.


From the comments...
Do sudo swapoff and/or unmount any swap partitions. You have to fsck a partition, not a disk. Use the correct sudo fsck -f /dev/nvme0n1p1. Use sudo fdisk -l to determine what ext4 partitions you have, and fsck those also.


You can use:

sudo restart network-manager

Response:

network-manager start/running, process $your_pid


"Gave up waiting for root device" after removing all kernels

I needed to generate the initramfs for the newly installed kernel:

update-initramfs -u -k all


The usual way to get a server to connect is in the file /etc/network/interfaces. Check yours:

cat /etc/network/interfaces

Is an ethernet interface declared, typically like:

# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

Is the ethernet interface actually eth0, or is it eth1, eth2, p3p1, or some such? Check:

ifconfig

If so, simply edit the interfaces file to match and reboot.

Servers are more properly set up with static IP addresses like this: problem with static ip in ubuntu 12.04 lts server

If you set up the interfaces file declaring an address in, say a 192.xx network and it is now installed in a 172.xx network, change the details to match.


Slow wifi download speed with a TP Link tl-wn722n

You have confused between local network speed and internet speed.

There are different specification for networking instrument.

I am assuming that you have some kind of modem / router in your home. The ISP connects to it.

The modem/router and your computer Ethernet port have capability of handling 100mbps. So when you connect to it. it shows as 100mbps connection. This is between your router and your computer ethernet port.
Similarly your router wireless transmitter (inside the roter) is capable of 150mbps. The asus tablet receiver has capability of 54mbps. So it connects at speed of 54mbps.

Why two wireless device has different speed?

Its depends on hardware. There are different standard for wireless. You can read in detail over here.
Why I am getting 8 MBps (there's a big difference between small b and big B) speed as download speed

This is the real speed your ISP provides. From your computer to router its 100mbps. But after router is controlled by ISP.

So its upto your plan.  If download speed (as shown in download managers)is 8 MBps [means 8 mega bytes (not mega bits) per seconds] it can be said your internet plan's allotted network speed is 8*8 = 64 mbps. (this is mega bit, 8 bit = 1 byte)

If your network speed is 8 mbps, then in download managers it would show 8/8 = 1 MBPS


How do I change the software center icon in the launcher?

In the terminal

gksu  gedit /usr/share/applications/ubuntu-software-center.desktop

Change Icon=softwarecenter to Icon=/path/to/your/icon.png  save


Freestanding network connection GUI application

NetworkManager is the one used in Ubuntu but can theoretically be installed on basically any Linux. An alternative would be wicd.


Try this, open up the nginx.conf file with:

sudo vim /etc/nginx/nginx.conf

and find this field:

user www-data

change www-data to the user you want.


Ubuntu 20.04 LTS bluetooth connection failed

What you can do is directly connect from the command line as such:
> bluetoothctl

It will prompt you the bluetoothctl app, you can now run:
scan on

This will show you all devices with bluetooth on that are around, find yours and copy it's MAC Address.
Next add it to your trusted devices
trust XX:XX:XX:XX:XX:XX

Now get your device into pairing mode (Depends on each device, for my Powerbeats Pro I had to hold a button on the front for about 10 seconds until it blinked red.) You can now pair it with your computer:
pair XX:XX:XX:XX:XX:XX

And finally when that is done succesfully, you can go ahead and connect:
connect XX:XX:XX:XX:XX:XX

NOTE: Replace XX:XX:XX:XX:XX:XX above with your external device's MAC Address.
Good luck!


Scanimage works, but Xsane or any other UI does not

Ok. Solved the mystery myself. It is related to USB autosuspend. It seems to kick in too early and the UIs do not wakeup the device properly, only scanimage does it.

I use TLP to control powersaving settings. So I got the device id using lsusb and added it to the USB_BLACKLIST line of the tlp configuration file found at /etc/default/tlp. Works as expected right now.

Took my 10 hours to figure it out, because similar cases had always some different reasons or stayed unanswered.

There is probably a different way to put the device on the blacklist. TLP was the most convenient for me.


Syncing iPhone with iTunes on a windows virtual machine

I found the following procedure listed on a couple of forums and websites. Just tried it out with my iPhone 5S on a Windows 7 VM with a Ubuntu 14.04 host and it works fine.

Install VirtualBox and the VirtualBox Extension Pack. Find them both here. Create a Windows virtual machine.
On your host Ubuntu machine, run the following command -

sudo usermod -a -G vboxusers <USERNAME>

Replace <USERNAME> with your username, of course.
Log out and log back in. (This seems to be important!)
Run VirtualBox. Open the Settings to your Windows VM. Under the USB tab you'll be able to choose your Apple device by clicking on the + button on the right.
Run your Windows VM now and install iTunes. You'll be able to sync and backup like normal.

Hope this helps you out!


Gnome Screen Lock setting not respected in Ubuntu 17.10 when using gnome-session

You need to set a flag called ubuntu-lock-on-suspend in dconf.

You can do it two different ways:

this command run in the terminal will set the flag for you:
gsettings set org.gnome.desktop.screensaver ubuntu-lock-on-suspend false
or you can install dconf-editor navigate to org/gnome/desktop/screensaver and flip the switch for ubuntu-lock-on-suspend.


skype screen sharing with gnome shell 3.2 problem?

I suggest to report this on Launchpad as an Ubuntu bug report. They forward such reports to the correct recipient. Please be as precise as possible when doing the report.


Install rpm on machine without network access

Download the package from here on a different computer. The link is at the bottom, either click i386 or amd64 depending on what architecture your PC without the network driver is. This is the Trusty one - you can get the package for a different version using the links after 'Search in specific suite:' at the top.
Put the package on a USB stick.
Transfer the package from the USB stick onto the computer that doesn't have Internet.
Navigate to the directory that the package is in, in a Terminal.
Use the command sudo dpkg -i foo to install the package (replace foo with the exact name of the package - use the command ls in the directory to check what the package name is and type it in exactly).

If you need any extra help on any of these steps please comment and I will edit my answer with more information in the relevant section.


Is there a way to force a specific file to exist in RAM only?

No, there is no way you can force a single file not to be written to disk.  Writes to a file are passed down to the filesystem code: if the filesystem is backed by memory (e.g., tmpfs) then data is written to a (virtual) memory location; if the filesystem is backed by a block device (e.g., ext3/4) then data is written to the block device.

You can, however, symlink a specific file to a location in a tmpfs filesystem; this will work as long as: (1) the destination of the symlink exists, and (2) the link is not removed and the file re-created in the original (disk-based) filesystem.

Concerning ~/.xession-errors, there is some special treatment in /etc/X11/Xsession (lines 63--72 as of x11-common version 1:7.5+5ubuntu1): if ~/.xsession-errors is already a symlink, then a temporary file (in directory $TMPDIR or /tmp) is used instead.  So, if your /tmpor $TMPDIR filesystem is mounted from RAM, you're done.


Nemo 2.0 does not render desktop correctly with Compiz

Cinnamon is causing problems when running Nemo desktop under Unity. You have to completely remove both packages, add the Nemo only PPA from NoobsLab, the Backports and Cinnamon repositories install Cinnamon packages along with Nemo, finally reinstall and configure Nemo.

Here are the steps that I followed to get Nemo installed independently:

Completely remove Nemo and Cinnamon

sudo apt-get --purge remove nemo cinnamon
Make sure all packages are removed by using Synaptic Package Manager
(there is probably a way to use regex with the apt-get remove command
but I am not comfortable enough to try that) Note: I did this
because some packages were not automatically removed using apt-get, I
searched for both Cinnamon and Nemo to manually select any packages
installed for either package then used the completely remove
option.
Purge all entries for Cinnamon and Nemo from the compiz settings
database

dconf reset -f /org/cinnamon/
dconf reset -f /org/nemo/
Add the NoobsLab PPA and install Nemo Version 5.0~raring~NoobsLab.com

sudo add-apt-repository ppa:noobslab/nemo
sudo apt-get update
sudo apt-get install nemo nemo-fileroller
Add Nemo to the mime defaults

xdg-mime default nemo.desktop inode/directory application/x-gnome-saved-search
Nemo by default is set to handle the desktop but Nautilus overrides that so just disable Nautilus

gsettings set org.gnome.desktop.background show-desktop-icons false

Voilà! Nemo is happily taking care of your desktop again!

Update:

If your desktop is black when you first login:

Open Startup Applications (dash->Startup Applications)
Click "Add"

Name: Nemo
Command: nemo -n
Comment: Start the Nemo Desktop Manager

Reboot and Nemo will start


How to disable auto open window in Pidgin?

If you set Preferences/Interface/Conversation Window Hiding to "Always" then new IM windows are suppressed. If you turn it to "Never" then the window would appear.


Setting up a cloud in my University using a D-Link switch

rmustakos is correct and giving good advice, thank you!

From my perspective since you have 8 nodes, MAAS is worthwhile. You will need one node for MAAS, and on that node you can create some VMs for the Juju bootstrap node, leaving 7 nodes for cloud or other projects.

You will need to add some network cards, it is required to have some nodes with multiple disks and some with multiple NICs.

The main question I would have for you is which mechanism you will use for power control. Do the nodes have IPMI?


Sennheiser MM450-X Bluetooth headset connected but not working

I have solved it by following the steps below:

open the Sound Settings;
select the device in the "Play sound through" pane;
select "High Fidelity Playback (A2DP)" in the "Mode" combo box;
make sure the "Mute" checkbox is unchecked.


The man page that wilf commented about has a info that i did not know, which is that i8kmon also controls the fan speed and more importantly, using the -a(automatic mod) option it sets the fan speed to 11000 rpm(and other values, of course) which is exaclty the intermediate between the i8kfan values low(~8000rpm) and high(~14000rpm).


I had the same problem except with the 'g' key.  Restarting my computer fixed the problem.


My Ubuntu is not starting anymore, end on on BusyBox / initramfs

A friend of mine https://twitter.com/CyrilBrulebois solved it for me.
Here is what he advised me to:
1) use a live ubuntu usb key
2) once ubuntu loaded just go to the terminal, then enter dmesg command.
3) he reads the lines and one was saying that one device has been found and the mode was changed from AHCI to RAID and here was the thing.
4) I went on the BIOS and changed the Sata configuration to Raid to AHCI then everything goes back to normal.
I was ready to purchase a new hard disk, now I am happier than ever.
Thank you so much for your help


Can too low brightness damage my screen?

Lowering brightness cannot damage screen in any way. However it can damage your eyes to look on too dark screen. That's why Windows doesn't offer lower values.

LED monitor does not require Light to work. There are many leds which form the picture, but they are not the source of light. The source of light which you can control (brigthness) is behind those leds. There is no way leds are destroyed by not being properly iluminited.

You can see nice picture in source im adding.

You can lower your brightness at your will.

Hope I helped.

Sources:
https://en.m.wikipedia.org/wiki/Liquid-crystal_display

https://www.quora.com/Vision-eyesight-What-is-the-ideal-computer-screen-brightness-level-for-eye-health


How to write the most recent line of a process to a readable file

Here are some practical answers to your "theoretical" question.

tail can do this for you

Example:

ping -c 10 8.8.8.8 | tail --lines=3 > output.file

the -c 10 switch in the ping command limits the pings to 10 rather than continuing indefinitely which is the default. the lines=3 switch in the tail command limits output to the last 3 lines which is what we really care about usually.

This will result in only the summary (last 3 lines) as shown below:

--- 8.8.8.8 ping statistics ---
10 packets transmitted, 10 received, 0% packet loss, time 9014ms
rtt min/avg/max/mdev = 22.810/25.120/31.137/2.936 ms

If for some odd reason you truly want the output of a single ping just modify the above to ping -c 1 8.8.8.8 | head --lines=2 | tail --lines=1 > output.file

Resulting in:

64 bytes from 8.8.8.8: icmp_seq=1 ttl=45 time=24.0 ms

Edit: Continuous single ping As requested in comment:

while :; do ping -c 1 8.8.8.8>output.file; sleep 1; done

Since while : always evaluates as true this will loop indefinitely, running ping and redirecting the output to output.file, overwriting it each time the loop runs. It pauses for a second with each iteration in order to allow you time to read the output.

You can experiment with sleep values below a second such as 0.5 or 0.01 but at some point you will have too short a delay between writes and be back where you started.

Sources:

man ping

man tail

Experience

https://www.cyberciti.biz/faq/bash-infinite-loop/

http://www.linuxforums.org/forum/programming-scripting/70966-possible-sleep-less-than-1-sec-simple-bash-script.html


maas node times out after during juju bootstrap

The problem appears to have been caused by the physical clocks being not in sync enough with the server and critical parts of the commissioning happen before they run ntpdate.  I installed 3 commissioning files to sync ntpdate and the hardware clock.

01-ntpdate - syncs with ntpdate and then writes to the hardware clock

#!/bin/sh

/usr/sbin/ntpdate -v 143.207.7.23

/sbin/hwclock -w

01-ntpdate-cron - installs a cron job to sync type every 15 minutes and set the hwclock

#!/bin/bash
cat <<EOF >/etc/cron.d/ntpdate
0,15,30,45 * * * * /usr/sbin/ntpdate 143.207.7.23 && /sbin/hwclock -w
EOF

01-S10ntpdate - installs a boot up script to sync time (and hwclock) on bootup

#!/bin/sh -e
cat <<EOF >/etc/init.d/ntpdate

#!/bin/sh -e
/etc/init.d/ntpdate
/usr/sbin/ntpdate -v 143.207.7.23
/sbin/hwclock -w
exit 0
EOF

chmod +rx /etc/init.d/ntpdate
ln -s /etc/init.d/ntpdate /etc/rc2.d/S10ntpdate
ls -l /etc/init.d/ntpdate /etc/rc2.d/S10ntpdate
exit 0

After adding these 3 commissioning files, the first commissioning installs them and actually sets the hwclock (and usually fails the commissioning because the fails before it actually sets the time correctly).  The next commissioning runs successfully.


Why does 15.04 gnome-terminal not have the Unity-style scrollbars?

Try installing the overlay-scrollbar type typing in the following from a terminal window:

sudo apt-get install overlay-scrollbar

From a terminal type in the following to enable the scrollbar overlays:

gsettings reset com.canonical.desktop.interface scrollbar-mode overlay-auto

To disable the scrollbar overlays, type in:

gsettings set com.canonical.desktop.interface scrollbar-mode normal

Hope this helps. ;)


Those messages aren't really errors. They are simply telling you that that PPA does not support your version of Ubuntu. They are not preventing you from just running sudo apt-get install software-center which will still work.

Remove that PPA (deb http://ppa.launchpad.net/software-store-developers/ppa/ubuntu raring main) from your sources. It is no longer in use. Updated versions of software-center are provided via the Ubuntu One team's PPAs:

ppa:ubuntuone/stable
ppa:ubuntuone/beta
ppa:ubuntuone/nightlies

These PPAs include the Ubuntu One client packages, Software Center, and any necessarily updated dependencies. However, the version of software-center in Ubuntu 13.04 is still pretty much up to date, as it was only released a couple months ago.


Read specific content file from tar.gz files without extracting

As mentioned in the comments, you need to use zgrep on compressed archives, however what you're doing is adding -r to the options list, which is not supported by zgrep which comes with Ubuntu.

-r is used for recursive traversal of directory tree. We can do the same with find command, and use -exec flag to run zgrep on each compressed archive that is found.

Since I don't have any example of archives you use, the command below is just an example. Adjust as necessary:

find -type f -name "*.tar.gz" -exec zgrep -a "ERROR24" /home/tests/logs > /home/files/data/result/listErrors.txt  \;

Note that -l here can't really be used, because it only lists filename of archive itself. Alternatively, you could always use zcat and filter its output with grep, but that's probably more hassle than necessary.


Errors in Averaging Function Script Code?

First, grammar errors

You have one extra { before the line with function:

BEGIN{FS = ":"}
{
function average(ARGV[2]){
   ...
}

So it should be:

BEGIN{FS = ":"}
function average(ARGV[2]){
   ...
}

Then, you are creating a function that receives a parameter. This parameter is just supposed to have the local scope of the function, hence calling it ARGV[2] is just a big misunderstanding of scopes. Just use something like:

function average(row) {

    # things with the variable row

}

And you use ARGV[2] when calling the function: average(ARGV[2]).

Then, concept errors

You are using a function that you call on every iteration to calculate the average. If you want to use functions, use one to keep track of the values and finally, and just then, print the values.

Also, you are repeating a bunch of code in all your if - else if - else conditions. Note that as much as you can say $4, you can also say var=row and then use $var to use the rowth's value:

if(ARGV[2] == "Row3"){
            sumJan += $3
            avgJan = sumJan / 5
            printf "The average of row %-10s is %6.2f", ARGV[2], avgJan
            }

can be a generic:

sum += $row
avg = sum / 5
printf "The average of row %-10s is %6.2f", row, avgJan

Altogether, this can be a succinct one-liner

$ awk -F: -v col=4 '{sum+=$col} END {print sum/NR}' file
3

This keeps a sum of the column number col and finally divides by the number of lines.


I cant use the free the fish easter egg in 14.04

The original easter egg was in the old GNOME 2 desktop environment. That's long gone, and now the only easter egg is that Unity still doesn't have easter eggs. GNOME Shell certainly doesn't have this easter egg.


Not getting dual boot with windows 10 and Ubuntu 15 alredy installed

Go to your BIOS settings (press Esc, F2, etc. it depends on your manufacturer) and check the boot order. 'ubuntu' should be one of the options. Set it as the top boot priority. If it's not there, grub may not have installed correctly.


In need of cpu monitoring tool that logs activity

i like munin if it comes to monitoring in linux environments.

About

Quoting the project page

  Munin the monitoring tool surveys all your computers and remembers
  what it saw. It presents all the information in graphs through a web
  interface. Its emphasis is on plug and play capabilities. After
  completing a installation a high number of monitoring plugins will be
  playing with no more effort.

Munin comes with a good set of core plugins, which you can use to monitor values on your computers.

For example cpu usage, or memory usage, or disk usage etc...
If you need something special you could write yourself additional plugins.

Setup

Usually you set up 1 munin-server which is hosting the webinterface and an unlimited amount of munin-nodes.

The notes collect data and report it to the server instance which shows the graphs.

Server and node can be on the same machine, so you can run both on the related server if needed - or you could move the server instance to some other machine and just install munin-node on the affected machine.

Demo

You can browse a demo installation of munin 1.4 here which gives access to the graphs of several munin-nodes.
The current development version demo can be found here.

The CPU usage graph is categorized under system.

Alternatives

Just to name some of the other big software names in the monitoring area

Nagios
Icinga

Both tend to be often used if you plan to monitor bigger environments - i.e. networks in companies or similar.

The munin project page itself lists alternatives as well.


Ubuntu gives different visuals in window switcher

Install CompizConfigue Settings Manager.
In categories, select Window Management.
Check Static application switcher and Uncheck Application switcher


How can I find the origin of a process and stop it permanently?

Look at the /proc directory for the cache.sh process. Each process has a /proc/<pid>/ directory where it keeps information like:

cwd – link to the current working d irectory
fd – a directory with links to the open files (file descriptors)
cmdline – read it to see what command line was used to start the process
environ – the environment variables for that process
root – a link to what the process considers its root directory. It will be / unless chrooted.

Running ps auxf will show you who forked what, so you may get a better idea what is calling your process.

Running lsof -p PID shows the files that are opened by the running process.

Source: Linux: How to know where a process was started and how it was started?


This should/would be recreated by gconf. Logout and login, and open by gconf-editor.

If this fails, reinstall metacity.


Window manager not loading when gnome-classic starts

First install dconf editor OR tweak (advanced settings) to add the extra buttons on the title bar

For the windows manager problemn, if you think that for some reason it's related to lightdm, try installing gdm.


How to connect Dualshock 3 controller (PS3 Sixaxis Gamepad) on Ubuntu 16.04?

On Ubuntu 16.04 - Xenial (maybe work on above)

Note: Don't work for PS3 Gasia / Shanwan game controllers (China/fake PS3 controllers) -- I tested only with a Shanwan controller!

Install from source

Since the last officially supported version is "vivid"(Ubuntu 15.04) from QtSixA PPA and don't work for Xenial (16.04). So we need compile from the only repo that works (and has updated) and allow to connect two controllers at the same time was the fork of RetroPie:

sudo apt-get install dialog build-essential pyqt4-dev-tools libusb-dev libbluetooth-dev python-dbus -y
wget https://github.com/RetroPie/sixad/archive/master.zip -O sixad-master.zip
unzip sixad-master.zip
cd sixad-master
make
sudo make install

Configuring

1.) First make sure you have Bluetooth on your computer.

2.) Plug in the controller via USB first to do the initial pairing. Run the sixpair command:

sudo sixpair

Sample of output when successful pair:

Current Bluetooth master: XX:XX:XX:XX:XX:XX
Setting master bd_addr to XX:XX:XX:XX:XX:XX

XX:XX:XX:XX:XX:XX is the MAC of your Bluetooth device.

3.) Unplug the controller and run:

sudo sixad -s

This starts the sixad daemon which waits for incoming PS3 controller connections. sixad will completely take over the Bluetooth adapter (exclusive control, so no other Bluetooth devices other than PS3 controllers will work after you start sixad).

4.) Press the ps3 button on your PS3 controller and wait for 2-3 seconds. You'll feel the controller vibrate when it successfully connects.

Sample of output when successful connected:

[ ok ] Starting bluetooth (via systemctl): bluetooth.service.
sixad-bin[23052]: started
sixad-bin[23052]: sixad started, press the PS button now
Watching... (5s)
sixad-sixaxis[23069]: started
sixad-sixaxis[23069]: Connected 'PLAYSTATION(R)3 Controller (**XX:XX:XX:XX:XX:XX**)' [Battery 05]

To turn off sixad and disable control: Just press CTRL+C

Test the functionality [Optional]

You can test the functionality of your controller through Jstest-gtk (install: sudo apt-get install jstest-gtk)

Disable sixad service [Optional]

Warning: sixad will completely take over the Bluetooth adapter (exclusive control, so no other Bluetooth devices other than PS3 controllers will work after you start sixad).

sudo update-rc.d sixad disable
sudo service sixad stop

References:

https://askubuntu.com/a/834907/139248
https://retropie.org.uk/forum/topic/2913/guide-use-qtsixa-on-ubuntu-16-04-and-derivatives


Open image file with Python give Permission Denied error message

os.system() executes the command that is passed to it. An image is not a command. Windows may execute an app to open the image, but that is Windows specific. The subprocess.call is your best bet as mentioned by steeldriver.


NTSC is an analogue television standard, which encompasses all manner of technical criteria such as scan line count, colour encoding, interlacing method etc and in particular vertical refresh rate.

The drop down in your display menu offers 2 x vertical refresh rates; 50Hz and 60Hz. It is not a matter of which one is better, it is more a matter of what media (if any) are you playing.

In its simplest form, you can think of NTSC is 60Hz (USA) and PAL is 50Hz (UK).

If you are simply logged into your desktop doing web browing, photo editing, word processing etc then you may as well select 60Hz. It is the higher refresh rate and so updates will be sent to the screen faster.

However, if you are watching video then you would select 50Hz for anything that is 25fps and 60Hz for anything that is 30fps. (Things get a tad more tricky when you start playing anything that is 23.976fps at which point you need to decide how you perform pulldown). That said, pretty much most media is digital these days, the monitor is full HD and so I assume will play 23.976fps video at 24fps.

So, select a refresh rate and if you see no screen tearing and no judder then you are good to go. Don't lose to much sleep over it.


How can I make my Unity dash not to display files in my machine?

You can achieve this by using unity dash in the launcher. When you click on the unity dash icon, you will see a settings option "Filter results" at the top right corner of the launcher's popover. You can make use of the options within to customize your unity dash for each of the six tabs (found at the bottom of the popover).

I have attached an image below so as to make my answer clear.


As I sad, the Nvidia Driver 430.09 is not compatible with Kernel 5.4. Than, after cleaning the driver with "sudo apt-get purge nvidia*" and "sudo apt-get autoremove" I reinstalled the driver 440 and now the loading symbol doesn't freeze anymore. I'm not sure what I did, but I solved it.

Edit: Actually, I should say that even with 430.09 installed, I couldn't boot without nomodeset parameter on grub. And this breaks the audio driver. Looks like there is some kind of incompatibility between new Dell notebooks and Ubuntu versions newer than 18.04. I returned to the 18.04 version, and now It's working pretty good.


Lubuntu - terminal disappears but is still running

This bothered me a lot too. I was able to retrieve the QTerminal drop down by pressing F12.


What is the best website to download Nemo from for Ubunt(make sure it is .deb)

It is comparatively easy to install the Nemo file manager under Ubuntu, and the technique needs only a few small modifications to run with the Xfce4 desktop. Two simple steps are required:

1. Install Xfce4 and Nemo...

As you have probably found the 'lightest' way to install Xfce4 from a standard Ubuntu installation is to simply run:

sudo apt install xfce4

And then select 'Xfce Session' at the login screen. From there you can install Nemo (and a considerable number of Nemo's friends) as follows:

sudo apt-get install nemo

This will install the Nemo file manager which will be easily accessible from the Xfce4 menu.

2. Make Nemo the default...

You will note that Thunar will still be the default file manager and for completion this should be altered to Nemo. Run the command:

exo-preferred-applications

from a Terminal screen and alter the Preferred File Manager to Nemo as I demonstrate in the following screenshot:

Now you can successfully use Nemo for all of your File Manage needs under Ubuntu running Xfce4. It is wonderful to have so many choices when you are running Linux!!

3. Celebrate with a screenshot...

Below is a gratuitous screenshot demonstrating Nemo with Xfce4 running on my own system:


Apache2 virtual host not working. "DNS adress cant be found"

Applying following changes may help you.

On your main hosts file [ /etc/hosts ]

203.95.221.49  www.mysite.se mysite.se test.mysite.se

/etc/hosts

On your site's conf file [ /etc/apache2/sites-available/test.mysite.se.conf ]

<VirtualHost *:80>
    ServerAdmin blablabla@gmail.com
    ServerName test.mysite.se
    DocumentRoot /var/www/test.mysite.se/
</VirtualHost>

test.mysite.se.conf

Finally add an A record point to the sub domain and IP

Type    Host              Value
 A      test.mysite.se    203.95.221.49

Thanks.


This should do the trick:

sudo chown $USER [filenames]

Note: $USER is literal, replace [filenames] with one or many file names or globs, for example:

sudo chown $USER *.md


I have been experiencing random freeze too. I have Lenovo Z-50, and while I ran windows 8.1 or Ubuntu (dual boot system), a random freeze could occur even if I didn't run any program at all. I found out that this happens because of electrostatic discharge when you touch the metal parts of you laptop. Try to put your laptop on a wooden or plastic surface, not a metal or glass one.

Read the last answer on this link: https://forums.lenovo.com/t5/Lenovo-P-Y-and-Z-series/Lenovo-Z50-70-random-freeze-error/td-p/1863200


If you already have Centos on the laptop you will need to remove it in order to install Ubuntu.

To do this you can either:

Load your BIOS and sanitize your HDD

Or either install GPARTED Live to a USB and delete the Cent OS partitions


nvidia-modprobe trying to load the wrong driver

I am working through a similar issue and I was able to fix it by editing my bumblebee conf.

sudo vim /etc/bumblebee/bumblebee.conf

Set driver to nvidia

# (See also the driver-specific sections below)
Driver=nvidia

Inside the nvidia specific driver section I added the name of the module which in my case nvidia-352

## Section with nvidia driver specific options, only parsed if Driver=nvidia
[driver-nvidia]
# Module name to load, defaults to Driver if empty or unset
KernelDriver=nvidia-352

I needed to include the driver path which wasn't correct by default. Look through /usr/lib/ and /usr/lib32/. In my case I don't seem to have 32bit drivers... but if I did they would be on the LibraryPath separated by a comma.

I also needed to add the XorgModulePath.

# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/nvidia-352
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia-352,/usr/lib/xorg/modules

After doing a little more research I found an excellent guide that helped me complete my project.

how-to-install-nvidia-drivers-with-bumblebee-on-ubuntu-14-04


As the comment above suggested (Thanks Thor!) I tried using sudo before my composer command and it gave me even further errors.

So then I followed the directions here and downloaded a specific version of Drush (drush:8.*) and that worked.


Why don't the EC2 cloud images use the EC2 repository mirrors for the Security repository?

The security updates are set to pull from security.ubuntu.com so that security updates are immediately available when published and released, rather than the systems pulling in updates having to rely on a potentially out of date mirror's update cycles to execute before you get the security fixes.

For the other top level country mirrors, they're either specific locations for specific repositories (such as Partner), or they're country regional mirrors, or in the case of AWS EC2 images, the EC2 repositories in that region which run on AWS infrastructure but are maintained by Canonical.

Other third-party mirror stats can be seen for some of the publicly listed ones here on Launchpad.


What window managers remember window position?

I used to use Ubuntu distro's with KDE environment and in KDE one can set positions for almost every window (type, class, name). Really miss this in normal Ubuntu (Unity).


Can I use AR Parrot Drone 2.0 on Ubuntu 16.04 instead of Mac and Windows?

The project uses Node.JS, and Node.JS is available for Linux, so I would tend to say yes.


Ubuntu 18.04.1 Failure to boot on Thinkpad X230

Maybe you should try to boot with acpi_osi=! acpi_osi='Linux' or acpi=off or nomodeset in kernel parametets? If it boots with the first two something is wrong with your ACPI tables.


Desktop doesn't show the files and nautilus don't launch

Solved by this command:

sudo rm -rf ~/.config/nautilus


How do I boot Ubuntu from the network without installing?

Do you just need to shred the data and then dispose of the computers or are the hard drives needed after shredding?

If so, you could take the HDDs out of the case and buy some USB to SCSI/SATA connectors, a USB hub and then delete the data on the HDDs. After this, you can dispose of the HDDs the normal way (junkyard) or build them into the case again.

As far as I know it would be very time-consuming to boot Ubuntu via Network. So I would try to take a normal PC, install Ubuntu on it, connect all HDDs to the PC (via above mentioned method), erase the data and then do whatever you want with the HDDs.

Hope this was a helpful answer for you.

PS: Here, here and there you can find some other guides.


Unetbooting will install its own bootloader. Best to skip Unetbooting and simply write the img file unto the USB stick.

You can use this guide:
https://help.ubuntu.com/community/How%20to%20install%20Ubuntu%20on%20MacBook%20using%20USB%20Stick?_ga=1.32216954.591343902.1481129338
And
https://www.debian.org/releases/jessie/amd64/ch04s03.html.en

Another option is to use rufus. Unfortunately it only runs on Windows so either use a Windows machine or run it in a virtual machine.
https://rufus.akeo.ie/


How to Find Escape Sequences For Emacs and Elsewhere

Inside emacs, Ctrl-H Ctrl-K keystroke will show you the key and what function is attached to the keystroke.

Ctrl-Q, in emacs, "quotes" the next character (removes any special meaning).

In bash Ctrl-V keystroke is useful, as:

echo "^vkeystroke" | od -bc

You could dump the character sequences with xev, part of the x11-utils package.

Read man terminfo;man tput and do something like (MY system, YMMV):

             # what's "clearscreen" for this terminal?
walt@bat:~(0)$ tput clear |od -bc
0000000 033 133 110 033 133 062 112
        033   [   H 033   [   2   J
0000007
             # That's ESCape, [, H, ESC [ 2 J
walt@bat:~(0)$ echo $TERM
xterm-color


apt-get remove geoclue-2.0 made Gnome desktop with all its dependencies gone

This should get your desktop back to normal:
apt install --reinstall ubuntu-desktop ubuntu-session gdm3

Regarding other applications such as Calendar and Tweaks, you will need to reinstall those.


based on a quick search on internet (see here

You probably need to overwrite existing polkit policies located under /etc/polkit-1/ or under /usr/share/polkit

To override the policies, you would need to create a file containing something like this

 polkit.addRule(function(action, subject) {
 if (action.id =="org.freedesktop.NetworkManager.settings.modify.system" &&

        subject.isInGroup ("users")) {
        return polkit.Result.YES;    }
 });

save it under /etc/polkit-1/localauthority.conf.d/03-allow-network-manager
(for example, you can use another name if you want to)

and see if this would fix your issue.

PS:
I had the same situation but for color managed device and creating this file did the trick

Hope this help
Till next time
See ya


Fixed it.

I noticed that there was a small gear icon on the Debian startup page and when I clicked this, there was an option to boot with several different desktops.

I clicked on the plasma one, continued the boot process and everything is good again.


To install this game open a Terminal and copy and paste the following into it:

sudo apt-get install sdl-ball

Below is this game running on Xenial Xerus after following these instructions:

May you have many more productive hours playing this :).


Ubuntu 16.04 DisplayPort monitor not recognized

Found the answer here.

(Don't forget to "sudo update-grub" before rebooting.)


Change behaviour of fn + f1-12 on Toshiba

Make sure you have the following installed:

sudo apt-get install acpi-support fnfxd toshset

You may need to reboot. I believe this is a BIOS setting for toshiba laptops so check the BIOS settings to make sure this is properly set (in case Windows 7 may also have a setting for this as well).


I mistakenly renamed my home holder with sudo. Cannot login to system

You are in luck - this operation is not hard to reverse.

Boot the Ubuntu installation media - do Try Ubuntu without installing because we don't want to re-install.
Find the drive where Ubuntu is installed in the Files application.
From there, you can rename your home folder back to what it was before to undo your changes.
Now reboot and Ubuntu should boot correctly.

If you want to change your entire username, your only option is to re-install.


If you're asking how to find the location of the pidgin executable, and you have installed Pidgin normally, you should be able to do

which pidgin

If this doesn't find it, you could try

find / -name pidgin -executable -type f 2> /dev/null


First welcome to Ubuntu. Best you can do to contribute to development is to run 12.04 and file bug reports.

Test on as much hardware as you can, from Vritualbox to KVM to any hardware you can use.

See

How do I report a bug?

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

Other things to learn is other areas of communication.

Do you know how to use IRC ? If so, join #ubuntu+1

There is also discussion on the Ubuntu forums

http://ubuntuforums.org/forumdisplay.php?f=412


PATH variable to Apache OPENNLP OK but doesn't work

Is /OPENNLP_HOME/bin the actual path of of opn_nlp?

What is the output of the below command?

echo $OPENNLP_HOME

You first need to do:

export OPENNLP_HOME="Path TO OpenNLP Folder"
export PATH=$PATH:$OPENNLP_HOME/bin


docker package available in Ubuntu 14.04 Universe repository provides system tray for GNOME2 applications.

Apparently, you want the docker container. The correct package for that would be docker.io.

Install it by:

sudo apt-get install docker.io

The package version in 14.04 Universe repository is 0.9.1. If you want to install the latest version follow this official guide.


From Main Menu > Settings > Settings Panel > Look > Icon Theme. You will need to override the general theme I guess


gedit - files in File Browser I never opened

When you open a file through gedit Linux implicitly create a temp file in the /tmp directory with ~ sign which indicate this is a temporary file actually whatever you make change in that file that dose not effect the physical file directly rather it effect the tmp file when you save the file then actually the tmp file replace the physical file. some times what happens due to some inconsistent state of your system environment tmp file with ~ sign remains there. I think this happens in your case.


For translation of the package description there is nothing special that you need to do, it will be handled automatically by the Debian Description Translation Project (DDTP). But if your package contains any debconf templates for setting up, you should use po-debconf to allow translations for those templates.


I had also had the error in Kubuntu 13.10 with libreoffice 4.1.3:

X Error: BadMatch (invalid parameter attributes) 8
  Major opcode: 42 (X_SetInputFocus)
  Resource id:  0x5e02b43

It used to appear intermittently on drawing certain dialog boxes, and especially when zotero integration plugin tried to open its box.

I solved the problem by uninstalling the KDE integration and replacing it with the GTK one.

sudo apt-get remove libreoffice-kde libreoffice-style-oxygen
sudo apt-get install libreoffice-gtk3 libreoffice-style-human

HTH !


ubuntu touch appears to not boot on nexus 10

I faced the problem, this worked :-

On Nexus 10, after unlocking the bootloader (fastboot oem unlock), the internal storage is left unformatted and must be formatted with-
$ fastboot format cache
$ fastboot format userdata

follow all the remaining steps to flash your nexus 10 and ubuntu should run just fine.


I deleted Ubuntu's partition on my hard drive now I get gnu grub version 2.02 on boot

Boot to your original Windows disk, when it loads find an option like
  "Repair your computer", find a way to get in CMD and type:

bootrec.exe /fixboot

bootrec.exe /fixmbr

  Then exit and boot the PC up normally and you should be sorted.

https://askubuntu.com/a/610864


How can I add sites for SubDownloader or SMPlayer to search in?

As far as I know, it's hard coded in the source of smplayer. You'd have to manually add code to get new APIs into it. You can easily switch the server used, in src/findsubtitleswindow.cpp, but you'll have to write the API code too. I'm interested in this too, and am working on this myself.


Error when using the commands cd.. and cd. in the terminal

You need to add a space between the commmand (cd) and the arguments (the path where you want to go).

In your case, you should use cd .. instead of cd..

Also, please note that the previous folder directory is not the same as the parent directory. I encourage you to check this answer to obtain more information about the directory navigation basics in Linux.


Why is Mobile Broadband connection not shown in the Network Manager in 12.04?

Maybe you should not use Bluetooth but connect your pc using USB modem instead since it may not be able to detect your mobile device.


How to Hibernate Ubuntu Gnome 16.04 from the GUI?

One workaround is install this extension to GNOME. It will add hibernate button to power panel.


Running either or both of these commands may help:

gsettings set org.gnome.desktop.screensaver ubuntu-lock-on-suspend 'false'
gsettings set org.gnome.desktop.screensaver lock-enabled 'false'


Find a file with a given name or type in directories with a given name

You don't need to call find twice if you use the -path option instead of -name:

find / -type f -path "*/web/*.php"

Specifically for every file index.php located under a directory named web:

find / -type f -path "*/web/*index.php"


Ubuntu 16.04 doesn't start anymore but only boots to grub terminal after system froze during sudo apt upgrade

Boot from a LiveCD, and then there are a number of different methods you can use to troubleshoot and repair your boot loader.

I've never used it, but Boot-Repair is one such method, and looks promising.


Can't install or uninstall software. Unmet dependencies. apt-get -f install does not work

On unix file system, file and directory have two part: inode and data.

In inodes are stored information about file such as permission, owner, change time, access time, and so on.

The total number of inodes is limited, so you can get No space left on device if you reach such limit even if the disk is not very full.

Use:

df -i

to view inodes, if you get 100% for IUse and 0 IFree, this means that you have a lot of small file.

For example if you have 2 billions files whose size is 1 byte, you could reach inode limit, but your disk could be not completely full.

If this is your case, try to remove more file you can and than redo apt-get update.

Source: https://askubuntu.com/a/486806/232329