Try following the instructions from this link. Basically, you need to:

Connect the storage medium to the computer with Internet access
Go to here and select the codename of the version of Ubuntu installed on the computer without Internet access.
Download the files, Release, Release.jpg, and the content files for your architecture
Go to the component and your computer's architecture
Download the packages, Packages.bz2, Packages.gz, and Release
Connect your storage medium to your offline computer
Under Software Sources, add your offline repository


The one with the shorter menu (on the right in the screenshots) is "indicator-network", removing it and its associated system settings application (you are prompted for this when you remove indicator-network) will remove it from the bar. You can remove it with:

sudo apt-get remove indicator-network

I had the same problem after I stopped network manager autorunning and then enabled it again.


Can I use Zotac GeForce GTX 1050 Ti OC Edition ZT-P10510B-10L 4GB on my server machine with Ubuntu OS?

Following the link in your question led to a link to download this run file: http://us.download.nvidia.com/XFree86/Linux-x86_64/384.98/NVIDIA-Linux-x86_64-384.98.run. This is the same graphics driver as the nvidia-384 package which is in the default Ubuntu repositories for all currently supported versions of Ubuntu. To install this Nvidia graphics driver open the terminal and type:
sudo apt install nvidia-384 nvidia-settings
sudo reboot

Installing this graphics driver from the default Ubuntu repositories is the recommended way to do it, because that way the nvidia-384 package will receive updates as they become available.
For altcoin mining you have a choice of either installing nvidia-cuda-tookit from the default Ubuntu repositories or downloading the latest version of NVIDIA CUDA Toolkit from the official nvidia.com website. If you choose to download the latest version of NVIDIA CUDA Toolkit from nvidia.com you will need to have Ubuntu 16.04 installed and then download the Base Installer .deb (local) file and double-click it to open it for installation in Ubuntu Software. The CUDA Toolkit Base Installer .deb package includes both the Nvidia graphics driver and NVIDIA CUDA Toolkit bundled together in one package. If the CUDA Toolkit Base Installer is not compatible with your computer's hardware, then uninstall it and try again with nvidia-384 and nvidia-cuda-tookit from the default Ubuntu repositories.
Ubuntu 18.04
Open the terminal and type:
sudo ubuntu-drivers autoinstall
sudo reboot


Revert back to an older kernel other than 5.8.0-36-generic.
Hold down shift while powering up.  Choose an older kernel and boot up.
From there you will have a working machine and can research how to remove the bad kernel.
Keep in mind that until you remove the bad kernel and heading it will try to use it at every re-boot.
I'm going through this right now as well.  Seems a lot of people have been affected.


The correct answer is: pick any you like and see if it works well enough.

The one thing that would most likely cause problems and sluggishness is the graphics chipset.  It is listed as working on https://help.ubuntu.com/community/RadeonDriver but I had a M200/X1100 myself and from 14.04 it became simply too sluggish.  So you need to try and decide for yourself.

If the graphics chipset holds up, you can most likely run a full blown Ubuntu 16.04 with Unity, in 64-bit mode.

If that's too sluggish to your liking, try in order Lubuntu and then XUbuntu.  After that, you most likely have to divert to other distros that are targeted to slower computers.

Good luck.


How can I find the command to be used in a desktop icon that will launch a snap application?

As you have mentioned that you installed the application from snap and it can be found in 'Show Applications', the .desktop launcher for the application should be found in the /var/lib/snapd/desktop/applications/ directory. Just copy the .desktop launcher from there to your desktop.

Also you should be able to find the executable for the application in the /snap/bin/ directory. So if you want to manually create the .desktop launcher in your desktop, then you can use /snap/bin/<application> (e.g. /snap/bin/firefox) as the command. You can find the <application> part by running

snap list

Alternatively, you can use snap run <application> as the command (and of course, also to run the application from Terminal).


Help starting up multiple Dropbox instances on Ubuntu startup

I think Dropbox has killed this possibility. "Fix an issue that allowed multiple Dropboxes to run on Linux" - https://www.dropbox.com/release_notes. Bad news!


Windows 10 Creator Update removed all signs of GRUB

I'm not familiar with what this specific Windows update does; however, there are several possible things that might have happened, as explained in these questions and answers:

Buggy EFI loses boot settings:
efibootmanager -o changes are lost on reboot
Windows 8 removes GRUB as default boot manager:
Windows 8 removes Grub as default boot manager
Generic return of GRUB as default boot manager:
How can I repair grub? (How to get Ubuntu back after installing Windows?)

You may be able to fix the problem with EasyUEFI in Windows, or with bcdedit if that fails. In a worst-case scenario, you may need to completely reinstall GRUB with Boot Repair (or install another boot loader entirely).

Note that modern EFI-based computers don't boot disks per se, at least not in the same way that BIOS-based computers do. Instead, EFI booting is controlled by files on the EFI System Partition (ESP), with entries in NVRAM that point to specific files. (There can also be boot loaders stored on devices like network cards for network booting; and a standardized fallback filename is used to boot from external media and, when all else fails, from an internal hard disk.)

DO NOT use TestDisk in this situation! In all probability, it will be useless at best and could cause much worse problems if you make a mistake with it! TestDisk is useful for correcting partitioning disasters (like accidentally wiping out a partition table with fdisk, gdisk, parted, dd, etc.), but you've presented no evidence that this is the type of problem you're having.


How to create a bootable USB stick to flash a BIOS

I have used the following technique to flash the BIOS on a HP N54L ProLiant MicroServer. I think it should work for other systems too that just need to run a command from MS-DOS after booting from a USB stick.

I accept no responsibility if this goes wrong. If you don't understand what these instructions do then you probably shouldn't be attempting it.

The following assumes that you have a set of files, or an archive file, that contains the new ROM and a script or executable that applies it. The BIOS might have come with an executable to create a USB from scratch; if you've got this far, you've probably tried running that already and failed. What you need to find are the ROM file and script or executable. In my case, the ROM file was called O41072911.ROM and the script was called FLASH.BAT.

Create a bootable USB stick

Firstly, you need a USB stick formatted in the most basic way possible. This will erase all data on your USB stick, so back up anything important first!

Plug in your USB stick.
Select the Format... option from the launcher menu:

Select Compatible with all systems (FAT) as the type, give it a sensible name, and click Format:

Then you need to use UNetbootin to make the USB stick boot to an DOS prompt:

Install UNetbootin either using the Software Centre or from the command line using sudo apt-get install unetbootin.
Run UNetbootin. Select FreeDOS as the distribution and make sure the type is USB Drive and the correct drive is selected. Then click OK:

When UNetbootin has finished, click Exit.

Now you have a USB stick that will boot to DOS.

Add your BIOS files

Now you need to put your BIOS files onto the USB stick. As a general principle, you simply need to copy and paste the files onto the volume.

If they came in a self-extracting .exe file, you need to run it in order to extract the files. To do this, you'll need to:

Install Wine either using the Software Centre or from the command line using sudo apt-get install wine.
Find the .exe file that contains the BIOS files, right click it and run with Wine:

The exact details of what happens next will depend on your BIOS file, but extract the files to a directory somewhere you can remember.

Once you have your files extracted, copy them onto the USB stick. They can go in the root directory of the volume.

Take a look at the files; there is probably a file that contains the new ROM itself, and a .bat or .exe file that is used to apply it. If there's an AUTOEXEC.BAT file, take a look at it and note what command it runs to update the ROM.

Flash

Now you're ready to flash your BIOS.

Eject your USB stick from the computer you created it on.
Insert it into the computer you want to flash and reboot.
Boot from the USB stick. You might need to adjust your boot order in the BIOS to achieve this.
You should see the blue FreeDOS boot loader appear with Default highlighted. Either wait 10 seconds or press Enter.
At the FreeDOS menu, select the second option FreeDOS Safe Mode (don't load any drivers):

You will end up at an A:/> prompt. Type C: then Enter to switch to the C drive.
Type dir then Enter and you should see all your files that you copied onto the USB stick.
Run the script or executable that you identified previously as the one to apply the BIOS update. In my case, I just had to type FLASH then Enter to run the FLASH.BAT file.
You should see the flash script applying your BIOS update. Do not power off or interrupt this process; wait until it has finished. It should return you to the C:\> prompt.
You can then remove your USB stick, and power cycle the computer.
Cross you fingers and boot using your new BIOS. Or cry if you just bricked your computer.


error while installind TP-Link "RT-WN723n" Driver

Did you remember to install the appropriate kernel headers package? I think the /lib/modules build tree gets populated as part of that

sudo apt-get install linux-headers-generic


if you are using ubuntu grub loader try holding shift at system startup until you see grub menu options
to change boot order to windows use grub customizer ant set this parameter in options-predefined-windows`


How to run a configuration script as soon as a Wacom graphics tablet is connected (via USB)?

The X server tools usually affect only your current session (which is why you have to set them every time).

Since you are running that script in a shell that is not attached to any X session, the tool doesn't have any idea what X session those settings should be changed for (or more precisely, it doesn't have any idea that an X session even exists).

You can manually connect your shell to your current X session, but the solution might be a bit fragile on occasion.

You need to add two variable exports to your script, one for DISPLAY and XAUTHORITY. Those are used for identifying and accessing the correct X session. You can get the appropriate values by running env while logged in as your regular user.

In my case, the output looks like the following (parts marked by [...] are ommitted):

$ env
[...]
XAUTHORITY=/home/tim/.Xauthority
[...]
DISPLAY=:0.0
[...]

For those values, I would need to extend the script by the following lines:

export DISPLAY=:0.0
export XAUTHORITY=/home/tim/.Xauthority

Now, the script should work even while you are the root user.

The udev configuration itself seems fine.


Have you shared your internet connection with your VMware connection ?

Also have you configured your NAT on VMware..

Try this Video (how to share internet over VM ware) :


Ubuntu 18.04 installed (dual boot) but not working on Dell XPS 9570 : SATA problem?

This should fix your problem with RAID vs AHCI...
Some folks have found the 2nd choice that I provide easier to do...
Make sure to have a backup of your important Windows files!
You've got a single SSD set up in RAID mode, and the Ubuntu installer won't recognize your SSD until you switch your disk setting in the BIOS from RAID to AHCI.
Making that switch comes with some problems though, as Windows will no longer boot.
Choice #1: Looking at this article https://samnicholls.net/2016/01/14/how-to-switch-sata-raid-to-ahci-windows-10-xps-13/ will show you how to make the change without having to reinstall Windows.

Boot to Windows with your current SATA controller configuration
Open Device Manager
Expand Storage Controllers and identify the Intel SATA RAID Controller
View properties of the identified controller
On the Driver tab, click the Update driver… button
Browse my computer…, Let me pick…
Uncheck Show compatible hardware
Select Microsoft as manufacturer
Select Microsoft Storage Spaces Controller as model
Accept that Windows cannot confirm that this driver is compatible
Save changes, reboot to BIOS and change RAID SATA Controller to AHCI
Save changes and reboot normally, hopefully to Windows

Now you should be able to install Ubuntu in a dual-boot configuration.
Choice #2: See http://triplescomputers.com/blog/uncategorized/solution-switch-windows-10-from-raidide-to-ahci-operation/

Right-click the Windows Start Menu. Choose Command Prompt (Admin).
If you don’t see Command Prompt listed, it’s because you have already been updated to a later version of Windows.  If so, use this method instead to get to the Command Prompt:
Click the Start Button and type cmd
Right-click the result and select Run as administrator
Type this command and press ENTER: bcdedit /set {current} safeboot minimal
If this command does not work for you, try bcdedit /set safeboot minimal
Restart the computer and enter BIOS Setup (the key to press varies between systems).
Change the SATA Operation mode to AHCI from either IDE or RAID (again, the language varies).
Save changes and exit Setup and Windows will automatically boot to Safe Mode.
Right-click the Windows Start Menu once more. Choose Command Prompt (Admin).
Type this command and press ENTER: bcdedit /deletevalue {current} safeboot
If you had to try the alternate command above, you will likely need to do so here also: bcdedit /deletevalue safeboot
Reboot once more and Windows will automatically start with AHCI drivers enabled.


Same file extension, but different "Type" in file properties!

This is a case of the problematic file having the wrong extension.

So that threw your file manager off & may have prevented a proper preview of the file.
Seeing that file UthmanTN1 Ver10.otf reports TrueType font data then simply giving it a proper ext (.ttf) should & does resolve the issue


New to Ubuntu. Issues on Printer, Scanner and others on Ubuntu 20.04

I can help with the Whatsapp application.

Download whatsdesk from the Ubuntu Software centre.


How to set visible columns default for the 'Files' file manager?

In nautilus (the 'Files' manager), open the Edit menu and select Preferences.

In the appearing configuration window, navigate to the List columns tab. You should see a list of checkboxes like the one in my screen shot below:

Simply select your preferred default columns you want to see here.

However, if you ever manually changed the columns for a single folder only, that folder got its own configuration, which has a higher priority than the global defaults this method has set. Therefore it won't take effect in these directories.

You must reset the view settings for those directories manually using one of these methods:

In the View menu, click Reset view to defaults to reset the current folder's view.
Right-click on the column headlines of the current folder, then select Use defaults.
To reset all folder-specific view settings everywhere, delete all files in /home/YOUR_USERNAME/.local/share/gvfs-metadata.

You should do this from a terminal using the command

rm ~/.local/share/gvfs-metadata/*

Then restart Nautilus (there's a daemon running in the background as well!) using the command

nautilus -q ; nautilus -n & disown


How much disk space is assigned to a new user in ubuntu?

The minimum amount of space a user needs is:

fab-root@fab-ux-predator:/home/test_user
$ du --human .
36K .

The maximum amount of space a user can take is 95% of the entire partition unless you set disk quotas per user or unless you change the number of reserved blocks to allow them to take more or less than 95%...


Switch from path bar to location bar permanently in Nautilus

If you want to toggle between location bar or path bar without installing anything on your system open a terminal and type to enable the location bar

gsettings set org.gnome.nautilus.preferences always-use-location-entry  true

and to disable it

gsettings set org.gnome.nautilus.preferences always-use-location-entry  false

This setting is user based. You may need to restart Nautilus with nautilus -q.

The method is applicable for all current releases:

Ubuntu 14.04 LTS (trusty),
Ubuntu 16.04 LTS (xenial),
Ubuntu 18.04 LTS (bionic),
Ubuntu 18.10 (cosmic).


Firefox on Ubuntu 12.04 cannot connect to the internet

Reset your firefox The reset feature works by creating a new profile folder for you while saving your:Bookmarks,Browsing history,Passwords,Cookies,Web form auto-fill information.Your original will be lost.
Troubleshooting by yourself for a long time

EDIT
Use safemode,choose reset button

firefox -safe-mode

or Use profile manager，type in terminal:

firefox -p


channel 34: open failed: connect failed: Connection refused

Okay, I think I've found out whats going on here:

The socks5 proxy has a connection limit and when there are too many requests, the proxy throws these messages. This message also appears when the proxy server does not respond at all.


Use Gnome panel, better than unity.

As Firefox consumes much of CPU, many people are complaining of its speed, be it Windows or Linux.

Use Google Chrome browser instead of Firefox. It is very faster.


GRUB_CMDLINE_LINUX_DEFAULT="text" is not working

So, simply run the following in your terminal

echo 'manual' | sudo tee /etc/init/lightdm.override
sudo update-grub

Ref. to the following topic, Ubuntu 11.10 is using lightdm not gdm :


Turn on 2nd NVidia screen using command-line

disper has worked very well for me for controlling an nVidia card for the same purpose. My second display was a TV, btw. You can install disper from this ppa: https://launchpad.net/~disper-dev/+archive/ppa


Possible to change Banshee's Lyric source

Assuming that the extension your are currently using is banshee-extension-lyrics, changing the lyric sources requires a code change.
Banshee-extension-lyrics searches four sites; but only one of those is still live (lyricwiki.org - which redirects to lyric.wikia.org). That site appears to have the lyrics you want if you perform a manual search, but it seems that banshee-extension-lyrics isn't smart enough to find them because the track title doesn't exactly match (actual title given is Don't stop believin').

There are other lyric options for banshee that may work better for you - here .


Install Lumbuntu from inside Windows OS?

The drive is probably just a CDR/RW burner and can't read DVD. If so you need to find an image that is smaller than 700MB to find on a CD. Check the Lubuntu download pages for more info.


How can I disable the virtual-terminal-switching shortcut keys in X?

For a permanent fix, you can add your modified mapping to /etc/console-setup/remap.inc.

You must run sudo dpkg-reconfigure console-setup -phigh to apply the changes and reboot.

For example, this what I use to disable alt-Fxx and alt arrow switching

# Remap alt+Fxx key to void to avoid terminal switching
alt     keycode  59 = VoidSymbol
alt     keycode  60 = VoidSymbol
alt     keycode  61 = VoidSymbol
alt     keycode  62 = VoidSymbol
alt     keycode  63 = VoidSymbol
alt     keycode  64 = VoidSymbol
alt     keycode  65 = VoidSymbol
alt     keycode  66 = VoidSymbol
alt     keycode  67 = VoidSymbol
alt     keycode  68 = VoidSymbol
# Also remove mapping for alt left arrow and right arrow
alt keycode 105 = VoidSymbol
alt keycode 106 = VoidSymbol

`


getting error while installing eclipse in my system

Exit out of the root by running exit command.
Then run,

sudo cp -r eclipse /opt

After that,login into root account by,

sudo -i

Then follow from the 4th step in this.

This is because after you logged in as root  by running sudo -i command,the copy command cp searches for eclipse directory inside the /root folder.But you actually extracted eclipse into the /home/$USER folder.


Create a zip archive from multiple directories

Use zip command recursively as following.

zip -r /path/to/zipFolder/zip_name /path/to/folder{1..3}

Or using tar command.

tar -czf zip_name.tar.gz -C /path/to/zipFolder/ /path/to/folder{1..3}

Note that with -z we are using gzip to compression.


Running these two commands in the terminal worked for me:

gsettings set org.gnome.desktop.peripherals.mouse natural-scroll false

gsettings set org.gnome.desktop.peripherals.touchpad natural-scroll false

I hope it helps, and if this is not what you are looking for, you can roll back the changes by entering:

gsettings set org.gnome.desktop.peripherals.mouse natural-scroll true

gsettings set org.gnome.desktop.peripherals.touchpad natural-scroll true


Installing Epson XP-424 wireless printer

There is a specific driver for your printer.  They are available on the Epson website  To use them you will need to install a specific package as mentioned in the Epson downloads:

sudo apt-get install lsb

The specific package that you need to download depends on your version of Ubuntu. If you are running a 32 bit Ubuntu, download epson-inkjet-printer-escpr_1.6.2-1lsb3.2_i386.deb

And if you are running 64 bit Ubuntu, download epson-inkjet-printer-escpr_1.6.2-1lsb3.2_amd64.deb

These files can be opened using the Ubuntu Software Center by double-clicking on them, or installed from the command line by the command

sudo dpkg -i epson-inkjet-printer-escpr_1.6.2-1lsb3.2_amd64.deb


Try the following command in a terminal:

sudo apt-get install -f

That will try to fix the unmet dependencies.


I finally found the problem. I had a .Xmodmap file in my home directory which I created years ago. Its purpos was to remap only a single key but the default mappings for the other keys where included as well. Obviously this does not work when switching layouts.

For now I simply removed this file and now everything behaves as expected.


Gnome network manager is part of Gnome settings. Simply reinstall them with:

sudo apt install network-manager-gnome network-manager

and you should be back to the previous situation. A reboot might be necessary.

In the future, when you're installing or uninstalling anything, notice what will be removed before confirming. Uninstalling some packages might remove much more than you intend to remove.


Open terminal (Ctrl + Alt + T) and run following command to install require dependencies :

sudo apt-get install gstreamer0.10-plugins-ugly gstreamer0.10-ffmpeg libxine1-ffmpeg gxine mencoder libdvdread4 totem-mozilla icedax tagtool easytag id3tool lame nautilus-script-audio-convert libmad0 mpg321 && sudo /usr/share/doc/libdvdread4/install-css.sh

Restart may necessary.

WARNING: Run encrypted video on Linux is illegal, so make sure its legal on your area.

See also:

Why it is legal to play encrypted video on Linux ?
Watching DVDs legal on USA

UPDATE

Since medibuntu is no longer available, you have to install libdvdcss2 manually :

wget http://download.videolan.org/pub/debian/stable/libdvdcss2_1.2.13-0_i386.deb
sudo apt-get update
sudo dpkg -i libdvdcss2_1.2.13-0_i386.deb

Now encrypted dvd should run perfectly fine


How to change system time or force a sync with hardware clock

You can set the hardware clock with the command (for example)

sudo hwclock --set --date="2012-12-15 20:49:00"

You then need to syncronise the system clock to the hardware clock:

sudo hwclock -s

Reference: $ man hwclock


Open a terminal, go to that directory:

cd directory-name

Then list ALL files:

ls -la

It is probably a file permission/ownership issue.

Update

The file copy process has left these files 'owned' by root. You could change that with: chown OWNER:GROUP

But, some of the files were also copied incorrectly (or corrupted), and you may need to re-copy them ..


How should I keep it from making changes to my system outside of its designated folders

Looks like they use a separately mounted filesystem and you can use fuse with it. So nobody should be able to get outside that (unless you let them).

There are 2 important notices on the installation page:

"Use the optional fuse".

  FUSE  (Filesystem  in  Userspace)  is  a simple interface for userspace
         programs to export a virtual filesystem to the Linux kernel. FUSE  also
         aims  to provide a secure method for non privileged users to create and
         mount their own filesystem implementations.

They will provide signed releases.


Swap partition is not being used completely

Why would you want swap usage to be higher?

Reading/writing to the swap is 1000 times slower than reading/writing to the RAM.

The system may not be hanging, it's just that it's so busy swapping stuff back and forth, it appears as though it hung.

@phihag said in the comments:

  Most likely, when swap reaches 4GB this happens to be around the time
  that some part of the user interface gets swapped out. For instance,
  that could be the code to handle Ctrl+C, the keyboard layout handler,
  the code that displays output in the terminal, some data buffer of the
  terminal, some data buffer of the X server which paints pictures, etc.
  . Chances are if you wait a couple of hours either your swap is filled
  up or all of the data and code necessary for the Ctrl+C to be handled
  at the various layers has finally resulted in killing your Fortran
  process

I would suggest getting some more RAM. It will drastically speed up your compile. It's quite inexpensive nowadays, ~$60 for 16GB.


How to configure dual monitors with Ubuntu 14.04 and Radeon X1300/X1500

This worked for me

kj@n36l:~$ xrandr -q

Screen 0: minimum 320 x 200, current 1024 x 768, maximum 4096 x 4096
DVI-0 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768      60.00*
   800x600       60.32    56.25
   848x480       60.00
   640x480       59.94
DVI-1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768      60.00*
   800x600       60.32    56.25
   848x480       60.00
   640x480       59.94

kj@n36l:~$ xrandr --output DVI-0 --primary --left-of DVI-1


How to make use of an additional hard drive as system space?

Solution 1

The easiest option is to create additional filesystems on a separate HDD and mount them in the directories in your home such as:

/home/you/2ndhdd/Pictures
/home/you/2ndhdd/Backups
/home/you/2ndhdd/Films
/tmp
(any other place you may need)

You can use LVM to be able to resize the filesystems on the fly.

Look for "automount" if you'd like the filesystems mounted automatically when you boot the machine up.

Solution 2

2nd solution depends how your Linux is installed - if it is using LVM, you can add new physical volume to the current volume group and than just extend current filesystems with the new space. The advantage is flexibility, but the disadvantage that the disks now depend on each other. In other words if your computer goes down and you'd like to recover data, you need to attach both disks to another machine. You cannot just use one of the HDDs to recover the data or at least it is far more difficult.

My personal preference is solution 1 unless I have 3 or more drives in a volume group to create RAID 5.


What does happens when you type set in terminal

You didn't break anything - don't worry.  Typing 'set' just displays all of the shell variables and functions.  set is used to set the variables and functions that are available and all you did was essentially asked to see what was currently set.


12.04 and Evolution 3.2.3 HTML email rendering issue

This seems to be a bug:
https://bugs.launchpad.net/ubuntu/+source/evolution/+bug/977541

Yours,
Steffen


Open your terminal and paste these lines one after one

 sudo add-apt-repository ppa:nilarimogard/webupd8
 sudo apt-get update
 sudo apt-get install notifyosdconfig

Then open notifyosdconfig & there you can configure it.

Credit Goes to Webupd8 Peolple


Transfer files (video, docs, programs...) from NTFS to Ext3

There is absolutely no problem transferring data from NTFS to ext3. There is an open-source ext driver available that you can install on Windows. This ext driver for Windows is, in my experience, better trustworthy than the NTFS drivers in Linux, meaning that I've seen less problems with it.

So what you do, is clean up one of your drives, format it in EXT3 and start moving your files over. You then continue to move stuff around until you are only left with EXT partitions.

With those volumes of drives, I'm sure it's a bit of a puzzle but I assume you will be able to create enough space for this process.

Note that this is NEVER a safe option, even if you'd transfer from NTFS to NTFS, if you don't have a backup of the data. You should always have a backup for the data you can't afford to lose.
To me personally, everything I cannot (easily) recreate or download again, is important data that needs to be backed up. Everything that I can download again, is not worth backing up and most of the time, not even worth the money to buy a big disk for.


Does Virtual Box supports 64 bit of Ubuntu

Found that Hyper-V needs to be disabled/uninstalled. You can disable Hyper-V without uninstalling it. Start a command prompt with administrator rights and execute the following command:

// to disable hyper-v
bcdedit /set hypervisorlaunchtype off

// to enable hyper-v
bcdedit /set hypervisorlaunchtype auto

Both Operations require restarting your computer.

So once you disable Hyper-V and restart, 64 versions start coming in the list.


How about trying to shutdown with the shutdown command from a terminal?

Open a terminal CTRL+ALT+T
Type sudo shutdown -h now and hit Enter
This should now shut down the computer/laptop
If it does not, then it should output something on the terminal window
Do a search on the error on AskUbuntu

Hope this helps :-)


Ubuntu 12.10 second monitor not detected at all

I had the same problem with my laptop's docking station - I wanted to dock the laptop and use my 2 monitors instead of the laptop's screen.

At first I used the latest driver from NVIDIA's site which helped my laptop identifies the monitors. After that I used nvidia-settings to configure the monitors every time I docked the laptop at work. This option was annoying since I had to play with the NVIDIA driver every time Canonical updated the kernel.

Several days ago I had a conflict with the packages that Canonical distribute and my own installation of NVIDIA's drivers so I decided to uninstall both of them and start over using this answer. After rebooting the machine - my monitors were detected automatically and all I had to do is un-check the 'Mirror display' checkbox in the 'Display' system settings in order to get my working station ready.

Please note that I didn't try running any graphic intensive program.. so there might be issues with that.

Good luck!


Edit Gimp source code for personal requirements

in the terminal:

$sudo apt-get source gimp

you'll end up with something like:
gimp_2.8.14-1.debian.tar.xz  gimp_2.8.14-1.dsc  gimp_2.8.14.orig.tar.bz2

you can decompress the files, and modify them at your leisure.
(compiling, in future, not guaranteed.)
if you do modify the source, and recompile, I recommend running from a local directory rather than installing over the system version. At least until you know your mods are stable.


Install pantheon desktop on Ubuntu 15.10?

Sure, I'm running it right now, and it's working pretty well mostly.  There are two major problems that I'm experiencing that are deal breakers for me.  Both problems affect only applications that are not eOS applications, such as firefox.  When you start one of these applications, and right click on the icon in the dock, and click "keep in dock", it doesn't work.  The bigger problem is that the titlebars for non eOS applications are completely broken.  The close button does not work, nor does the minimize or maximize button.

Here's what I did to install it:

sudo add-apt-repository ppa:elementary-os/daily
sudo add-apt-repository ppa:elementary-os/os-patches
sudo add-apt-repository ppa:elementary-os/testing
sudo add-apt-repository ppa:mpstark/elementary-tweaks-daily

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

sudo apt-get install elementary-theme elementary-icon-theme elementary-default-settings elementary-desktop

You can then download the source for elementary-tweaks and compile it locally.
If you use make install, the .so installs in the wrong place.  By default, it installs in /usr/local/lib/switchboard.  You'll want to move it to /usr/lib/x86_64-linux-gnu/switchboard.
After that, elementary-tweaks works quite well.


You can download atom editor and install a package call platformio-ide-terminal. Then open your .js file as project. In editor below you will observe a plus icon. Just click on the icon your terminal will start responding. Type command node filename.js, you will be able to see console or return value.

editor Link: https://atom.io/
package link: https://atom.io/packages/platformio-ide-terminal

You can go through the documentation if you have any other query.


Alternative to thunar on Ubuntu Studio 18.10

This is a very personal choice (which file-manager/any-program best suits your tastes), but PCMan-FM (from LXDE) provides everything by default except seconds.

But do you need to change?

If you go to File Manager Preferences (Edit->Preferences) in Thunar then on the Display tab I can select DATE format from a pull-down list, my (x)Ubuntu 19.04 system has five (5) options which includes seconds (let alone the Custom allowing you to set your own config if none of the 5 suit your needs).

I also tested an 18.04 LTS box, and had the same 5 options, picture of the configuration window of thunar on my Xubuntu 18.04 LTS is


How I can give multiple input files to a perl script?

You could use a for loop:

for file in input{1..3}.txt; do
    perl -MJSON -F, -lane '
    print to_json ({
           domain => shift @F,
           emails => [map {{email =>$_}} @F]
           }, {canonical=>1})
    ' "$file" >> output.json
done

The first line could also be

for file in /path/to/inputfolder/containing/*; do

Assuming all the files in containing are input files you want to work on.

Don't forget to use >> output.json to append to the file, instead of >, or the file will get overwritten with each iteration of the loop.


A list of applicable sources to install can be find here:
http://rpmfind.net/linux/rpm2html/search.php?query=mono-complete

A other way is to go the Term way and installing the package of your desire using sudo commands: sudo apt-get install mono-complete

add repo if you do not got it:echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list

update & update using sudo apt-get update

Enjoy your .net platform framework!


Hot to disable key shortcut for "alt +tilde"

I answer my own question so it does not remain unanswered, but credit goes to Chirag64 for giving me the clue.

There is a bug that makes unity to activate that keybinding for that action when action is Disabled (as it is by default).  Workaround is to Enable the action and to assign it another keybinding.

See here the whole set of details: https://bugs.launchpad.net/unity/+bug/874734


How to get the cpu utlization percentage for each user in ubuntu by a command

I might be wrong, but isn't it just this ?

ps aux | awk 'NR>2{arr[$1]+=$3}END{for(i in arr) print i,arr[i]}'

The response is in % of CPU usage.


It was Tab Fox, disabled it and everything's fine.


Dumping spam emails to one mailbox for processing using spamassassin and postfix on a mail relay server

We use postfix content filtering. In my company we have:

smtp_header_checks = regexp:/etc/postfix/header_checks (main.cf)

/^X-Spam-Status: Yes/  REDIRECT my_quarantine@mail.thing  (in the file named header_checks)

Of course, you need to enable content filtering on your postfix server. You can use any name you want instead of "header_checks" (this is just an example) and you can create a dummy mail account on your server to store your quarantine (google is your friend)


How to partition the hard drive and with which file system?

Before you add the NTFS partition, you are going to install Ubuntu. First, you need to visit http://www.ubuntu.com/download, select Try it from a CD or USB stick, then follow the instructions to make a CD, if at all possible, or a USB. After you have created an Ubuntu USB or CD, insert the CD or USB into your computer, and then restart your computer. It should automatically boot into the USB or CD, where you will be presented with a screen that looks like this:

You will want to select Install Ubuntu. Then, you will be presented with a screen that looks like this:

Ensure that you see two green check marks. Then, check the two checkboxes and press Continue.

Then, select Something Else from the screen that appears.

Assuming that your hard drive is blank, you should see a screen similar to the one below. You will need to select New Partition Table, then add a partiton for Ubuntu. If you want a 20 Gigabyte partition, you shoudl enter 20480 megabytes as the size. For Use As, you will want to select Ext4 Journaling System, and for the Mount Point enter a forward slash  /. Then, click Install Now, and continue with the rest of the installation. Note that my screenshot will look different from your, as I have a different hard disk.

Once you have completed the installation and booted into your new Ubuntu installation, it is time to add the NTFS partition. Open up a Terminal window, and run the following commands:

sudo apt-get update

sudo apt-get install -y gparted

You will need to enter your password when prompted.
After these commands have finished, open up Gparted. After you enter your password, you will see a screen similar to this:

In this case, my screenshot will differ significantly from yours, as your hard drive will only have one partition at this point. Underneath the word Partition, click the the word unallocated, which on your screen should be the second item underneath the word partition. Next, click on the plus icon in the top left-hand corner, under the word Gparted. In my screenshot, I had to select Logical Partition, but you should select Primary Partition. You will want to set File System to ntfs, and New Size to the size to mebibytes that you want the partition to be. You can Google the appropriate conversion you need to preform. For example, typing in, '20 Gigiabytes in mebibytes' will give you the number of mebibytes in 20 gigabytes. If you want to fillw up the entire disk with the partition, just drag the arrow pointing the right all the way to the right side of the window. You can leave everything else as it is. When you are finished, click Add, then click Edit > Apply All Operations. wait for the partition to be created before closing Gparted. You're done!


Install Alongside Windows option missing

Delete all the partitions using linux disc.
Try windows disc > create partion as you need for windows(leave the remaining area un-partitioned) > install windows and all it's components > reboot and verify.
Try linux disc > use un-partitioned area and kept other partition intact > install linux > reboot in windows then reboot in linux and verify.


apt-get not working, how can i reset /etc/apt/sources

Ensure the nameserver IPs in /etc/resolv.conf file are pinging from your machine.
If not try using a reliable name server like the Google's 8.8.8.8 and 8.8.4.4.
Try putting the nameserver IP found in resolv.conf in your /etc/network/interfaces file as nameserver <IP of the DNS server> and restart the network by running /etc/init.d/networking restart and see if that works.
If none of them works, try changing the order in /etc/nsswitch.conf, line host: put the dns first. hosts:  files dns mdns4_minimal [NOTFOUND=return] mdns4

You can find the discussion on a similar question here.


Ways to run Nautilus with elevated privileges

The difference is that sudo nautilus won't initialise properly:

  You should never use normal sudo to start graphical applications as Root. You should use gksudo (kdesudo on Kubuntu) to run such programs. gksudo sets HOME=~root, and copies .Xauthority to a tmp directory. This prevents files in your home directory becoming owned by Root. (AFAICT, this is all that's special about the environment of the started process with gksudo vs. sudo).

from: RootSudo (help.ubuntu)

It is advised to always use gksudo


Ubuntu from 32 to 64 bit fresh install - how to reinstall the same packages?

I have had issue and had to add dselect and run it.

From old install

dpkg --get-selections > ~/my-packages
From New install
sudo dpkg --set-selections < my-packages
sudo apt-get -y update
sudo apt-get dselect-upgrade

IF you get this error:
dpkg: warning: package not in database

sudo apt-get install dselect
sudo dselect
   -> Update
   -> Install

I include these also:

cp /etc/apt/sources.list ~/sources.list.backup
sudo cp -r /etc/apt/sources.list.d /Like-a-FlashDrive
apt-key exportall > ~/repositories.key
sudo apt-key exportall > /Like-a-FlashDrive/repositories.key


How to override some key bindings using Quickly

This is how you'd modify the global keybindings managed by Compiz.  However, this would only work for systems using compiz as the window manager.  It requires the python-compizconfig module.  BTW, the default for close window is ALT+F4, it's the general settings plugin.

Here's how you could do it programmatically:

import compizconfig
context=compizconfig.Context()
commandplugin=context.Plugins['core']
c0=commandplugin.Screen['close_window_key']
defaultkey=c0.Value  # store the oldkey so you can put it back at the end
c0.Value='' # Unset the key
context.Write()   #Note that sometimes you have to pass False to get it to update settings

Note that to get many of the settings you can use the keys() function to list them (i.e.) context.Plugins.keys() as they are mostly just modified dictionaries.

Here's a link to code that helped me figure out how this works, since I can't find any documentation: http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/precise/compizconfig-python/precise/view/head:/src/compizconfig.pyx

What might actually be better, is to capture the destroy or delete-event signal sent to the window and test to see if it actually originated with a keypress.  I wrote some code and was able to test for the keypress, but even though I can prevent the Gtk.main loop from being terminated, I can't prevent the window from being destroyed.  Maybe someone else has an idea about that.

Edit: Here's my code that works correctly, but is there a better way to test for the key combo in the quit_test function?

Edit2: Modified to test for modifier keys and F4 correctly, but this DOES NOT work?!  It will work for if I make it test for Gdk.ModifierType.CONTROL_MASK, but MOD1 which should be the Alt key doesn't work.

#!/usr/bin/python

from gi.repository import Gtk
keypress=True
def quit_test(widget, data):
    global keypress
    print "destroying"

    if keypress:
        keypress=False
        return True
    else:
        Gtk.main_quit()
        widget.destroy()

def handle_keys(widget,event):
    global keypress
    modifiers=Gtk.accelerator_get_default_mod_mask()
    for mod in dir(Gdk.ModifierType): #just printing what the modifier is
        if (event.state&modifiers) == getattr(Gdk.ModifierType,mod): print mod
    if event.keyval==Gdk.KEY_F4 and (event.state&modifiers)==Gdk.ModifierType.MOD1_MASK:
        keypress=True
    print event.keyval, keypress

win=Gtk.Window()
win.connect('delete-event', quit_test)
win.connect('key-press-event', handle_keys)
label=Gtk.Label("just some text")
win.add(label)
win.show_all()
Gtk.main()


According to one of the developers, file a bug against the indicator-appmenu project.

  Merges and bugs should be directed towards the indicator-appmenu project

http://gould.cx/ted/blog/Searching_menus
http://www.theorangenotebook.com/2012/01/testing-hud-heads-up-display.html
How do I report a bug?


I believe it's been renamed to ubuntu-base, which can be found here.


How to open mtp files from a Sony Walkman in Lubuntu

You might not have mtpfs installed.

sudo apt-get install mtpfs


How can I save my bluetooth headset volume settings?

Modules responsible for storing device settings

In a default pulseaudio setup the following modules are loaded to restore device settings, and volume settings changed by the user at runtime:

module-device-restore:
restores the volume of an audio device to previous values.
module-card-restore:
restores audio card settings (for a headset this will be A2DP or HSP/HFP mode).

Both modules (amongst many others) will be loaded from settings in /etc/pulse/default.pa. If we had made a custom default.pa in ~/.pulse/ these custom setting will override the defaults in /etc/pulse/.

Make sure that both module are loaded when starting pulseaudio. To see which modules are in operation we may issue:

pacmd list-modules

In case they are misssing we need to add them to our default.pa with the following lines:

load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore

Values for a given device will then be stored in a database located in ~/.config/pulse/ or ~/.pulse/, depending on release version.

Remove the pulseaudio database after settings were bad

In case of erroneous setting we can remove all entries to this database by renaming or deleting these directories. Changes will only take effect after restarting pulsaudio (the configuration directories will then be re-created with default values) with:

pulseaudio -k

Then any audio application will use the custom user settings after switching output sinks. To automatically switch between internal audio and a Bluetooth audio device we can add the following module to our default.pa or as command for pactl on the command line:

load-module module-switch-on-connect

Applications can override this

In case an application had defined it's own audio setting (this can also be done while playing audio with pavucontrol ) these settings will override the default settings we had made.

In case our volume or card settings are not restored as expected we therefore need to remoe those application based settings. We can do so by changing the output device properties in pavucontrol, or again by removing settings which should be stored in ~/.pulse, or ~./.config/pulse with deleting these directories.

If all this does not help we may be faced with an application storing defaults in a different directory, or not respecting the pulseaudio settings (which then could both be considered as a bug).


Try this.  Start MySQL as root, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

mysql -u root -p


How to install Linux Mint if I have deleted Ubuntu

GRUB is just a bootloader, it should not have any impact on what you can install and what not.

Chances are that there are still some valid boot-configurations lying around, which is why they show up in the menu though you deleted the Ubuntu-partition (you probably did not delete the bootsector, thus they are still there).

When you install Linux Mint it should override your installation of GRUB, thus you will have a fresh GRUB.

If you want to get rid of the remaining ubuntu-bootsectors, check out this.


14.04 Lubuntu -- Choosing Keyboard Layout on LightDM

You can make lightdm-gtk-greeter show a keyboard layout menu in the top right panel. One way to do it is to create a file in the /etc/lightdm/lightdm-gtk-greeter.conf.d folder and list a custom selection of indicators to be shown:

$ cat /etc/lightdm/lightdm-gtk-greeter.conf.d/50-modify-indicators.conf
[greeter]
indicators = ~host;~spacer;~session;~language;~layout;~a11y;~clock;~power

(The ~layout option represents the keyboard layout menu.)

One disadvantage is that the menu lists all available (i.e. quite a few) keyboard layouts, so even if you can switch keyboard layout that way, it's not very convenient.


Dell Vostro 3568 model ubuntu 17.04 touch-pad left and right click behaving same way

First add the line  Option "ClickPad" "true" to the file /usr/share/X11/xorg.conf.d/70-synaptics.conf so that the final output looks like:

Section "InputClass"
        Identifier "touchpad catchall"
        Driver "synaptics"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Option "ClickPad" "true"
EndSection

Then reboot the system. Right click should work fine now.

Adapted from this Red Hat bug report, as suggested by Hi-Angel.


After installing wine (assuming you're successfully installed it), you need to generate the config file by simply running winecfg after installation. It will generate 64-bit WINEPREFIX, so if you need the 32-bit WINEPREFIX, you need to pass the argument WINEARCH=win32 WINEPREFIX=path_to_wineprefix before running winecfg. (see WineHQ FAQ for more information)

If you need something which has more GUI for your configuration, PlayOnLinux is your solution. However, there is no Bionic release for POL, yet. You need to manually configure the mirror and use Xenial release, which I doubt it won't conflict with the main Ubuntu repository.


How can I get access to the hue which unity uses to theme UI based on the current desktop background?

Easiest way I suppose is to take a screenshot of app 0 according to xwin, which is in fact the desktop.  It skins based on that value as far as I can tell


root:sudo should be used instead.

The admin group has been replaced by the sudo group some years back (it must have started with Precise in 2012).

  Up until Ubuntu 11.10, administrator access using the sudo tool was granted via the "admin" Unix group. In Ubuntu 12.04, administrator access will be granted via the "sudo" group. This makes Ubuntu more consistent with the upstream implementation and Debian. For compatibility purposes, the "admin" group will continue to provide sudo/administrator access in 12.04.


Why can't I compile the Ralink wireless driver on 12.04?

You must have the headers for the running (or target) kernel installed to be able to build modules. This should solve your problem:

sudo apt-get install linux-headers-`uname -r`

If you can't get a wired connection, download these two DEB files to a USB stick, etc., and install with sudo dpkg -i:

http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-headers-3.2.0-26_3.2.0-26.41_all.deb
http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-headers-3.2.0-26-generic-pae_3.2.0-26.41_i386.deb


Will upgrading Windows 8 to 8.1 affect Ubuntu?

While an installation from scratch will overwrite the MBR an upgrade from Windows 8 to 8.1 shouldn't. I've scoured the net in search for supporting facts, but found only this post which looks more like a piece of opinion (like mine) than anything.

In any case: Should the MBR still be overwritten by an upgrade, you can still repair the Grub2 MBR without much trouble.


Skype not always loading as a applet in Fluxbox

I've had this problem with some programs. My answer was to give fluxbox more time to load itself. I am not sure the reasoning is correct, but it has worked before =P

Create a script called skype-loader like the following:

#! /bin/bash
sleep 10
skype

then call it on the fluxbox startup file

batti &
/some/path/skype-loader &


Upgrade to 15.04: is it automatic? Is it safe to reinstall alongside windows?

No. You need to initiate it. It will be shown in the update software that there is a new release and offer you to install it. It will not be automatic.
Yes. I always do that myself: every new release I re-install over the old release. And I also always pick the "something else" option, format / and /home and add in my data partition without format (that one holds all my files).  I like my OS to be clean and all software I installed over the past 6 months, sometimes never used or used once will be deleted.

Basically: burn the new OS to a DVD or USB stick, boot from it, install and pick "something else" or "replace 14.10" in the installation options. Just make sure to make a backup of anything important. There is a chance you mess up setting it up, having a backup of your files it your best bet in getting your data back quick and efficiently.


How to get rid of touchpad notification?

After not finding a solution for months, I installed elementary OS. There is an option to disable notification bubbles altogether.


Once you boot Ubuntu when you use a USB. Open terminal and run the command

sudo update-grub


brother printer after installing drivers

You can move any (or all) of those files to anywhere you wish. None need to stay in Downloads.

You should be able to delete all of them without breaking your working printer.

You may encounter difficulty moving or deleting files with the lock symbol -- that means you don't own them. Open a terminal and use sudo to move them, delete them, or change their ownership.


Why am I unable to boot Ubuntu after motherboard change?

When this happens, it is usually a problem in initramfs. You can fix it like this:

Boot from a LiveUSB/DVD

Open a Terminal

Perform the following commands:
$ sudo mount /dev/sda1 /mnt
$ sudo mount --bind /dev /mnt/dev
$ sudo mount --bind /proc /mnt/proc
$ sudo mount --bind /sys /mnt/sys
$ sudo chroot /mnt
$ update-initramfs -u
$ update-grub
$ reboot

Be sure to replace /dev/sda1 with the actual device name of the system partition, otherwise "bad things will happen". The issue comes down to what initramfs is expecting to find when it boots. Replacing a motherboard, even if it's with another of the exact same model, is nothing to sneeze at. This would be like replacing a person's lungs with a set from a donor. Sure, they work the same ... but they're not the same. Updating initramfs is a good way to ensure this issue does not prevent a machine from booting after parts are replaced/upgraded.


Error when booting Kubuntu after installing Nvidia drivers

Enter a TTY on boot and reinstall the Nvidia drivers.
Found the answer here: https://gist.github.com/bitsurgeon/b0f4440984c9e60dcd8fe8bbc346c029


I solved it.
I updated the libgcrypt to 1.8 (previous was on 1.7) and now gpg-agent works.


Electron apps show notify-osd notifications incorrectly

Run this command

sudo touch /usr/lib/libunity-electron_notification_fix

then reboot ubunutu

Source


Ubuntu freeze at login page, no mouse and no keyboard response, blinking at tty login as well

Check to see if Wayland is enabled - some nvidia drivers don't like Wayland enabled because they don't provide the features it needs, and you get stuck in gdm stopping and starting. You should be able to disable Wayland in gdm3 via editing  /etc/gdm3/custom.conf

[daemon]
# Uncomment the line below to force the login screen to use Xorg
WaylandEnable=false

Try booting with nofb nomodeset nosplash as kernel options
... you may be able to back off on this afterwards, but I find it can help with nvidia driver problems
Try purging and/or reinstalling the nvidia and cuda packages you need

I don't have specific experience with Cuda or nvidia-390, but the nvidia-340 I run is very temperamental and I find the above things help to get me back on track.


Keyboard and Wacom Bamboo tablet lagging on Ubuntu 16.04

The problem disappeared after updates of my system and Teamspeak. I don't know which specifically solved the problem.


Switching From a windows machine, How will my data drive transfer to a linux system?

Unplug the data drive when installing Ubuntu. (for peace of mind)
Ubuntu is supported by the MongoDB Community. or you can Dual-Boot Windows with  Ubuntu

how to install MongoDB


In this case is really simple. Just use the following command:

rm -i *Times*Events.html

There is no problem if you have more files like '*Times*Events.html' in the same directory; Because of the switch -i (for interactive) you are asked every time if you really want to remove it.

Another way is to switch between Arabic and English languages when you are writing in terminal.


how to mount filesystem on to an existing (non-empty) directory?

As message states you need to pass nonempty mount option:

sudo mount.fuse /dev/device /var/lib/your_folder -o nonempty

See man mount.fuse for details:

  nonempty
                Allows mounts over a non-empty file or directory.  By  default  these   mounts  are
                rejected to prevent accidental covering up of data, which could for example prevent
                automatic backup.

Note: you should not mount directly to /var/lib as it is used by many applications.


Create a directory in your home, ie:

mkdir ~/my_dir

then, create a symbolic link in /var/www/:

ln -s ~/my_dir /var/www/my_dir

This allows you to write to the directory. If apache needs to access, you must change the group to all the directories where you want this to happen:

sudo chown -R <user>:www-data ~/my_dir


Fresh installation seems to have no GUI, boots into tty1

It appears that you have installed Ubuntu Server, version 16.04.3 and that this is not what you had intended.  The server versions of Ubuntu do not have a pre-installed desktop.

Based on what you have told us of your computer, I would suggest Lubuntu, a lighter version of Ubuntu for your computer, but regular Ubuntu or Ubuntu-Gnome should work as well.  You will need to download the 'desktop' versions of Ubuntu, and install one of them.

All of the Ubuntu versions can be found at http://cdimage.ubuntu.com/, and a guide to installing Ubuntu is on AskUbuntu at How do I install Ubuntu?

Some helpful links:

Lubuntu downloads

Ubuntu downloads

Ubuntu-Gnome downloads


How can I disable USB autosuspend on Ubuntu 18.04?

Update, 20201014: Just received validation (see comment from "Blackbird") that this solution continues to work in 20.04.  Thanks Blackbird for the useful feedback!
This reference seems to be authoritative on disabling usb autosuspend.
Although the USB autosuspend is a feature designed to preserve battery life, its' 18.04 default is "enabled", whether or not the device Ubuntu is being installed on even has a battery.
Further, in order for autosuspend to be more help than harm, it appears that the USB device's driver needs to support autosuspend.  Hence all the posts- yours' included- seeking to disable the "feature".
In 18.04 on my device, I scripted disabling autosuspend persistently in /etc/default/grub like so:
sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="/&usbcore.autosuspend=-1 /' /etc/default/grub

update-grub

systemctl reboot

The sed expression just prepends "usbcore.autosuspend=-1" with a trailing space after the initial quote mark to ensure it always matches whatever your particular GRUB_CMDLINE_LINUX_DEFAULT options look like.
If you execute cat /sys/module/usbcore/parameters/autosuspend after a reboot, you'll remark the "-1" preference (disabled) is retained.
Anyhoo, hope this helped you out-


Connecting to 2 Wifi Networks ? One with Internet, the other one with a Raspberry Pi

There is a nice tool out there that is able to this in an easy way. I use it frequenly. Check out  Create_AP. Install all it's dependencies.

Instead of haveged i use rng-tools with my raspberries How to install rng-tools for your raspberry pi.

Keep an eye on dmesg -w to check if you might have any voltage issues.  A lot power supplies are insufficient to generate enough power with so many usb devices attached to the raspberry.

If you need a step by step guide, i can write one for you, but i guess the github page is self-explanatory


My screen goes black when loading youtube

If you frequent a lot of flash sites, and you have no issues with using non-free software (not as in price, but as in source), you can use pepperflash with chromium.

From Software & Updates make sure that (multiverse) is enabled

Launch a terminal (ctrl+alt+t)

 sudo apt-get update
 sudo apt-get install pepperflashplugin-nonfree

It will take a little bit to download the files and install. I usually keep chromium closed while installing, but I'm not sure if it is required. With pepperflash you should have no problems with flash sites on chromium.


Creating physical folders and FTP account with bindings in Apache2

SSH access should give you remote access to a machine somewhere, which then allows you bash access. If you want to edit a "test" text file, try:

vim test.txt

i or insert

"foobar, or what you want here"

ctrl-c > shift > wq

that should work, let me know of the results. As for the FTP, you just include the user credentials in the login, as for SSH, like so:

user = user

domain.com = domain

normally, to visit the site you would enter www.domain.com to visit it. However, to SSH properly you must include the user. This may be your problem. Try this:

user@domain.com

instead of ssh domain.com and then logging in that way.


LibreOffice Writer: How to take a table one line up when it is in the second line?

Ensure the cursor is on the first line, then delete the first line by using Delete, thereby moving the table (and everything that comes after) up one line.


How can I convert .BOK file to .PDF file in Ubuntu?

As far as I know, the simplest solution will be to print .bok to .pdf using virtual printer.

sudo apt-get install cups-pdf will allow you to do so.

Now you have a new printer called "PDF". When you print with it, the .pdf file will be saved to ~/PDF.


Wifi suddenly stopped working on my dell inspiron n5010 using ubuntu 14.04

Try to run this command in terminal sudo rfkill list all and see if there are anything softblocked.
If you see the wireless Lan is softblocked, then type sudo rfkill unblock all.


Will Ubuntu Phone OS run Ubuntu Applications?

As long as they are compiled for ARM processors, then I believe yes. https://wiki.ubuntu.com/ARM


What is the difference between the ubuntu and ubuntu beta font? Is it worth using?

If you're using Maverick, the Ubuntu font should be installed. To use it as a UI font (in case you've upgraded and it's not already set), go to System > Preferences > Appearance > Fonts, and set it as the font to be used for the items of your choice.

UbuntuBeta was the name of the pre-release font that was initially made available to Ubuntu members for testing, and later to other interested groups. You should avoid using it at this point if it's somehow present together with the "Ubuntu" font on your system.

Ubuntu Title is the font used for the old Ubuntu logo.


No partition on installation type when installing Ubuntu 18.04 with multi-boot on windows 10

1.It seems like your partition prepared for ubuntu isn't formatted.But it's not needed.
2.Did you select"something else" on setup?Like This
3.If you do things right,you should see something like this2


What's considered a normal fan speed on ThinkPad?

Fan speed varies among the different thinkpads, but 3000rpm is rather fast. I'd advise to install thinkfan. Since TP42 (still running for 15 years now) I'm using these settings in /etc/thinkfan.conf:
(0, 0,  44)
(1, 40, 60)
(2, 50, 61)
(3, 52, 63)
(4, 56, 65)
(5, 59, 66)
(7, 63, 32767)

making the device silent with temperatures below 65°C
Thinkfan for Ubuntu is documented here


This question is actually a duplicate of Question 165192, so I'm just going to repeat the answer:

The Atheros AR8161 is a new Bluetooth/Ethernet controller that does not yet have mainline kernel support. So, in order to build the driver you have to do the following:

sudo apt-get install build-essential linux-headers-generic linux-headers-`uname -r`
wget -O- http://linuxwireless.org/download/compat-wireless-2.6/compat-wireless-2012-07-03-pc.tar.bz2 | tar -xj
cd compat-wireless-2012-07-03-pc
./scripts/driver-select alx
make
sudo make install

Now, the answer to the other questions says you have to load it up at system startup, but we should be able to automate this by adding it as a rule to modprobe. (FYI, I'm running 12.04 still, but I don't think anything has changed modprobe-wise in recent releases -- somebody correct me if I'm wrong)

echo "alx" | sudo tee /etc/modprobe.d/alx.conf

You didn't ask this specifically, but out of my curiosity (since I'll get getting a new Y500 someday -- Lenovo's really jerking me around with the ship date) I did find an answer to your wireless problems as well:

echo "options iwlwifi 11n_disable=1" | sudo tee /etc/modprobe.d/iwlwifi.conf
sudo modprobe -rfv iwlwifi
sudo modprobe -v iwlwifi

This disables N mode for the wireless (apparently it has some issues in Linux, sorry no better answer out there as of yet) for the current session and adds yet another rule to modprobe to get it to stay like this for future reboots.

On a sidenote, I see a lot of people having problems with their Centrino Wireless-N 2230. Just did a little browsing on the Intel forums and saw that a lot of Windows users are actually having the same problem amazingly. According to the Intel rep and the documents linked on the post, if your router is set up to use WEP or TKIP-based WPA then the card drops to b/g mode @ 54Mbps. The 802.11n draft specification forbids clients using TKIP or WEP from exceeding the 54Mbps for some reason. So, to get the best speed out of the card, you'll want to make sure your access point it set to use WPA AES (not AES+TKIP if you can). Now, whether this tidbit of information will help us Linux users, I'm not so sure. But, it doesn't hurt to learn something ;)


How can I permanently enable and disable the touchpad in Ubuntu GNOME 16.04 LTS?

for disable and enable touchpad, first see id of your touchpad using this command :
xinput list

this exmaple for the output , and look ad the id of your touchpad :

then , you can use this command to show all available command :
xinput list-props "your-touchpad-id"

this output for my touchpad

and finally , you can disable your touchpad using this command :
xinput set-prop "your-touchpad-id" "Device Enabled" 0

and this command if you want enable the touchpad :
xinput set-prop "your-touchpad-id" "Device Enabled" 1

It's work for me, hope this will help you.
EDIT 1:
to make it disable on reboot or startup
open startup application on your unity dash, then click add, new pop up window will appear, then fill like this :

Nane : disable touchpad (or whatever you want)
command : xinput set-prop "your-touchpad-id" "Device Enabled" 0
comment : this command to disable touchpad at startup (or whatever you want)

take a look at this picture :

hope this will work for you too..


Is it possible to create daily quotas for specific websites, based on duration of usage or data traffic?

Based on the comments on the question, there are no out-of-the-box solutions in ubuntu that can do this.


First password often wrong when unlocking computer

It happens because when you press the first key of your password the computer comes out of screen saver/sleep mode if it has been lying unused for sometime. So the first key press actually works kind of awakening the pc. And your second key actually gets typed in as first key. This also happens to me on Windows platform as well. So what I suggest is press space key or some other key (space is better because it is less confusing) and when password box appears start typing.
PS:- Sometime you might need to press power key of your laptop to bring it out of sleep mode.


Use the following command:

user@host:~# cat file | awk '{printf "sudo aireplay-ng -1 0 -e VMC_AP -a  D4:4C:24:2B:EE:80 -h %s mon0 --ignore-negative-one\n", $1}' | bash

Where file looks like this:

user@host:~# cat file
AA:BB:CC:DD:EE:FF
AA:BB:CC:DD:EE:FF
AA:BB:CC:DD:EE:FF
AA:BB:CC:DD:EE:FF


Clean away the wreckage of the old Desktop Environment before reinstalling xfce by

sudo apt purge  '~n^libxfce4.*' '~n^libexo.*' '~n^libgarcon.*'
sudo apt-get install xubuntu-desktop


In Gnome Shell, there are three possible window focus modes, (from dconf-editor) 1) “click” means windows must be clicked in order to focus them, 2) “sloppy” means windows are focused when the mouse enters the window, and 3) “mouse” means windows are focused when the mouse enters the window and unfocused when the mouse leaves the window. Thus, to disable the focus follows mouse, you need to set it to "click":
gsettings set org.gnome.desktop.wm.preferences focus-mode 'click'

This is actually the default setting in Ubuntu and in many Gnome Shell installations. So also the command
gsettings reset org.gnome.desktop.wm.preferences focus-mode

would usually revert to the "click" setting.
This setting is also exposed in the utility Gnome Tweaks (Windows tab). It is not installed by default in Ubuntu.


Make a directory with name node over there. Means move to directory path usr/bin/ and make (mkdir node) directory with name node over there. It will resolve you problem.


How add a classic start menu in Ubuntu 15?

Cinnamon is lightweight desktop environment for UNIX-like operating systems, it provides advanced modern features on top of a traditional desktop layout.

Just like Linux Mint, it aims to be easy to use, powerful and flexible.

Install

Launch terminal by pressing Ctrl + Alt + T and run these command:

sudo add-apt-repository ppa:moorkai/cinnamon

sudo apt-get update

sudo apt-get install cinnamon

Cinnamon desktop interface


How to make a complete set of CDs to use for setting up a new PC?

Yes. You're describing the standard installation method.

http://www.ubuntu.com/download/help/burn-a-cd-on-windows


/etc/init startup script in Ubuntu 14.04?

It seems like you need file-system to navigate directory before starting init script so use like

start on local-filesystems

or
if your jar need networking should be working at the time of starting or running init task then use like

start on (local-filesystems and net-device-up IFACE!=lo)

or

start on (local-filesystem and started networking)

instead of

start on runlevel [2345]

and
better to use like:

java -Xmx2048M -Xms2048M -jar /home/minecraft/minecraft_server.jar nogui

or

cd /home/minecraft && java -Xmx2048M -Xms2048M -jar minecraft_server.jar nogui

learn more about upstart from Upstart Ubuntu cookbook


how to install the DDE to the ubuntu 20.04?

Per answer here you can fix the error you are getting.

Install Deepin DE in Ubuntu 20.04: qtbase-abi-5-9-5 package

In short, you need to use ppa:openarun/dde-dev

Looks like ppa:openarun/dde doesn't support focal release yet.


Ubuntu 18.04 - Screen Tearing only on external monitor

I let the nvidia-settings generate a conf file. That file was copied to: /etc/X11/xorg.conf.d/90-dual.conf.
You might have to setup both monitors in your config. See here for an example.
Note that I've configured
Option         "Xinerama" "0"
in the "ServerLayout" section
The following contents may not apply to your monitor, but it might give a gist how it should look like. After copying that file you need to reboot...
Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "type1"
    Load           "freetype"
    Load           "glx"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "<your monitor here>"
    HorizSync       30.0 - 83.0
    VertRefresh     55.0 - 76.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce <your version here>"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "DVI-I-1: nvidia-auto-select +0+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}, DVI-D-0: nvidia-auto-select +1920+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection


How can i fix this error when i run sudo apt-get update command?

If you follow these links, you can find out they are indeed missing. There is, however, a repo for precise. So I would suggest looking into /etc/apt/sources.list (Alt+F2 - gksu gedit /etc/apt/sources.list) for this repository line and changing there raring to precise. Then sudo apt-get update one more time to see if this made desired effect.


Why does chmod have two different meanings for 5?

Permission values are octal, and represent 3 3-bit fields. 5 has only one value 0b101. The permissions you are trying to set are masked with your umask value, which, I surmise is 026 That is:

Value you're trying to set: 755 or 0b111101101
Umask                       026 or 0b000010110
-----------------------------------------------
Actual bits used by `chmod` 751 or 0b111101001
Going back to rwx, the bits are      rwxrwxrwx
And the actual permissions set are   rwxr-x--x

See man umask.

The three digits in the permission (there are a few more but that's the advanced course) specify file access permissions for the file's Owner (first octal digit), users with the same GID as the file (second octal digit), and Everybody else (not owner, not same group ID) (third octal digit).


Where can I find a driver for the AMD ATI HD 7290 video card on my Aspire One725?

There is a kernel boot parameter tweak you can try for getting the backlight brightness to be adjustable.
To see if the tweak will work without making any changes try:

echo 2000 | sudo tee /sys/class/backlight/intel_backlight/brightness

In terminal, if the brightness changes then the tweak will work.

To use the function keys to change it:
Run this in a terminal:

sudo gedit /etc/default/grub

and change this line:

GRUB_CMDLINE_LINUX="quiet splash"

to:

GRUB_CMDLINE_LINUX="acpi_backlight=vendor"

Save the file and run:

sudo update-grub

Now reboot. Your function keys for brightness should now work.
Worked for me : )


How to disable user's login without disabling the account?

passwd -l

that might be what you're looking for :)

from the passwd man page:

  -l, --lock Lock the password of the named account. This option disables a password by changing it to a value which matches no
  possible encrypted value (it adds a ´!´ at the beginning of the
  password).

  Note that this does not disable the account. The user may still be
  able to login using another authentication token (e.g. an SSH key). To
  disable the account, administrators should use usermod
  --expiredate 1 (this set the account's expire date to Jan 2, 1970).

  Users with a locked password are not allowed to change their password.


How to make sure my system has Nvidia Optimus?

I dont understand what the  Dell Support in France told all XPS 15 with i7 have Nvidia Optimus disabled in them. All XPS ships with nvidia Optimus enabled in it. And there is no straight forward method for Switching it Off/On even in the BIOS.

But the fact is that, while using Ubuntu, only the Intel Graphics will be used and not the nvidia card.

  Summing it up, Your system currently doesnt run Optimus (In Ubuntu). It only uses
  your Intel graphics. And if you want to use nvidia Graphics (Which you
  payed, but never used) install bumblebee.

There is some interesting discussion regarding Optimus in XPS. Find it here and here


Just installed Lubuntu and it doesn't show my disks (D:\, E:\ and ...). What can I do?

As @Rinzwind pointed out in comments, you've overwritten your Windows partitions with Lubuntu -- unless you have a backup, all the information that was on the computer is gone.  If you have additional physical drives, however, they won't have been touched by the install; you merely need to add entries for them into /etc/fstab so they'll automount when Lubuntu starts.  There's documentation available on how to format an fstab entry, and you'll want/need something that will read the UUID from each volume (UUID is strongly preferred over volume label or device notation, as it doesn't change unless the volume is formatted).


Since the maximum number of primary plus extended partitions on a DOS MBR drive is 4, and given the fact that you already have 7 partitions, it would appear that you have a GPT (GUID partition table)

Extended partitions are therefore redundant on a GPT.  Just make another partition on the drive and use it as you wish.


How to install Ubuntu and eliminate Windows?

You chose to install it side by side. Try reinstalling Ubuntu and click the "Erase Windows and Install Ubuntu" option. This is a super simple thing that should not have been overlooked.


ImportError: cannot import name CompletionFinder

Version 0.6.9 in the Ubuntu 14.04 repositories doesn't have the CompletionFinder class, it was introduced in version 0.8.0 according to GitHub.

CompletionFinder is almost identical to the autocomplete function, so you might get away with just using that.

Another solution might be to uninstall the package and get the latest version from PyPI with the following command:

sudo pip install argcomplete


cyvcf2 not working in Ubuntu 18.04 / Python 3.7.5

This helped me:

sudo apt-get -y install libcurl4-openssl-dev libssl-dev


Did you try to just install it like this?

sudo apt-get install steam

For some reason installing steam through USC requires you to log in with Ubuntu One, but at least in 14.04 you can just install it like that.


This worked for me !! Thanks !!!

 sudo apt-get install swig gcc m4 python python-dev libgoogle-perftools-dev mercurial scons g++ build-essential
 hg clone http://repo.gem5.org/gem5
 cd gem5/
 scons build/ARM/gem5.opt -j2
 build/ARM/gem5.opt configs/example/se.py -c tests/test-progs/hello/bin/arm/linux/hello


Trying to install Atom. Unable to start Clangd language server

This fixes the problem for me on Ubuntu 17.10:

sudo apt purge clang
sudo apt autoremove
sudo apt install clang-5.0
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-5.0 100
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-5.0 100
sudo update-alternatives --install /usr/bin/clangd clangd /usr/bin/clangd-5.0 100


ERROR Tomcat: Apache - Java - Tomcat - Catalina

you faced with 1 warning and 1 error:
1) The APR based Apache Tomcat Native library - is a library, it's optional and all should working without it but with less perfomance on production system. This is a warning
2) Apr 17, 2015 2:13:58 AM org.apache.catalina.core.StandardContext startInternal SEVERE: Error listenerStart - this is a root cause of your issue. You should provide more logs for it, but I believe that the root cause of it relates to the web.xml of your application


How to start the dictionary application after installation?

Is there any good dictionary app that I can install instead?

I would recommend the following:

Artha

sudo apt-get install artha

GoldenDict

sudo apt-get install goldendict

Install the copyright free GNU powered English dictionary

sudo apt-get install dict-gcide


My answer to this exact same problem was to create a new user account and them move over none system files, then to carefully replace any . files.

The issue is caused by Nautilus or the setting daemon crashing during logon and then nautilus cannot ever get a path to the required theme.

There is a file in your user directory that is causing the problem.

Now that I have a working platform I'll do a trial and error search to see if I can find the offending file.


intalled ubuntu 12.10 and now cannot boot win 7

i put in the windows 7 installation disk and clicked repair and it repaired the boot file, all fixed now :)


Add the PPA ppa:rob-caelers/workrave, install workrave-data and workrave-unity and restart Unity.


What is the recommended stable way to update Ubuntu?

Look carefully at Software Sources in System Settings, in "Other Software" tab and disable repositories that contain the software keyword that were force installed, AND PLEASE MORE DETAILS.


Tab Completion Causes Dollar Signs to be Escaped

It's something with the bash version that comes with Ubuntu 12.04.

I was able to compile bash from source to get my bash version up to 4.2.37, which resolved the issue.


While upgrading Ubuntu 11.10 to 12.04, it got struct. Only prompt is showing

Try logging on. When you enter your password, you won't see anything happening--that's fine.

When you get a prompt (which looks like $ _), run these commands, one after the other. Some may take a while to complete.

script
sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get dist-upgrade
exit
sudo reboot

That might fix the problem. If it doesn't, log back in and run these commands:

script -a
sudo apt-get update
sudo apt-get dist-upgrade
exit
sudo reboot

If that doesn't work either, the reason might be that you don't have an Internet connection. If so, please comment here to indicate that and I'll try to figure out some easy way for you to add the text from the terminal to your question. (But it's even better if you can plug the machine into a wired Ethernet network connection, which will probably work.)

If the problem isn't with connecting to the Internet, then run these commands:

sudo apt-get install pastebinit
pastebinit ~/typescript

You'll get a URL from that. Copy it down. Navigate to it in a web browser on a machine with a working graphical interface (whatever you're using to access AskUbuntu). Either

copy all the text from it into your question (and give it code highlighting with the <$> tool so it appears correctly), or,
if it's really really long (more than a few hundred lines), just add the Pastebin link to your question.

Then we can see what happened. (You may be asked to submit log files using a similar method...but hopefully the above technique will just fix the problem, and if it doesn't, hopefully the information gleaned from it will be enough to figure out how to fix it.)

If the problem does appear to be fixed, then you can figure out what version of Ubuntu you're running now by checking the output of lsb_release -a.


How to move the "hot corner" of the messaging tray in gnome-shell?

You can use this GNOME extension to change the messaging tray hot corner. But, it also moves the icons to the left side.

https://extensions.gnome.org/extension/157/left-message-tray/

If you only want to change the hot corner and not the icons, you can use this extension:

https://extensions.gnome.org/extension/309/hot-corn-dog/

By default, it only changes the hot corner of the overview. You can customize it to only change the hot corner of the messaging tray by following the instructions provided here:

https://euhiemf.github.io/Hot-Corn-Dog/#customization

To summarize the instructions, open the js file

gedit ~/.local/share/gnome-shell/extensions/Hot-Corn-Dog.senatorn@github.com/extension.js

Edit the following line:

const SYSTEM_TRAY_HOT_CORNER = right;

to

const SYSTEM_TRAY_HOT_CORNER = left;


Unable to mount NTFS external hard drive

Install ntfs-3g with sudo apt-get install ntfs-3g.
Then run the ntfsfix command on your NTFS partition.

  ntfsfix v2.0.0 (libntfs 10:0:0)

  Usage: ntfsfix [options] device

Attempt to fix an NTFS partition.

-h, --help             Display this help
-V, --version          Display version information

  For example: ntfsfix /dev/hda6

  Developers' email address:
  linux-ntfs-dev@lists.sf.net Linux NTFS
  homepage: http://www.linux-ntfs.org

Note: Whenever you're dealing with partition, make sure that you have a complete backup just to be on the safe side.

sudo apt-get install testdisk

Then run it:

sudo testdisk

and follow the instructions. You must search for partitions and then write the changes.

Thanks to answerers here:

Fix corrupt NTFS partition without Windows
Repair NTFS without Windows?


How to grant permissions for a file automatically?

You can use a simple script like this,

#!/bin/bash

if [ $# -lt 2 ]
then
    chmod +x $(pwd)/$1
    $(pwd)/$1
else
    chmod +x $(pwd)/$1
    $(pwd)/$1 $2
fi

Save the above script as runpy.sh, keep it in PATH (you can keep it in ~/bin)

Give it execution permission from terminal,

chmod +x ~/bin/runpy.sh

Usage

To run hello.py without changing its permission run in terminal,

runpy.sh hello.py

In case if you want to use anything at the argument of the python program, give the arguments inside " " like,

runpy.sh hello.py "-option arg1 arg2 agr3"

It should do the trick. But don't forget to use the shebang line in python (.py) file,

#!/usr/bin/python


can't do anything on sda1 permission denied

First you need to unmount it (Remember to use sudo)-

sudo umount /dev/sda1

Then you need to properly mount it but before that double-check

lsblk

Make sure this is the partition you want to mount

Create a directory in /mnt/ with your favorite name say 'sda1'

sudo mkdir /mnt/sda1

Now mount the partition to the directory

sudo mount /dev/sda1 /mnt/sda1


The 2nd column (the number '1' in your case) is how many hard links point to that file or directory

  The second column is the number of links to the file i.e., (more or less) the number of names there are for the file. Generally an ordinary file will only have one link, but a directory will have more, because you can refer to it as 'dirname' or 'dirname/.' where the dot means 'current directory', and if it has a subdirectory named 'subdir', you can also say 'dirname/subdir/..' (the '..' means 'parent directory').

source of the above, also see this answer


How to copy a file from my Windows laptop to an Ubuntu server while using PuTTY?

On Windows, you can use WinSCP. WinSCP is an open-source free SFTP client, FTP client Its main function is file transfer between a local and a remote computer. and integrates well with putty

WIN SCP Download link

Step 1: Once you download the package, install it and open after installation.

Step 2: You will be prompted to add a new site.
In the red marked box, enter the IP of the remote server, in the blue marked box, enter the username which you would have used to SSH to the server, in the green marked box, enter the same password used for SSH.

Step 3: By clicking on Save you can save these details for further use(i have saved a session ttttttttttt which appears on the top left-hand side)

Step 4: Finally, click on the button marked in the purple box.


Regarding installation of windows 8 alongside Ubuntu 12.04

If you have Ubuntu now then Installing Windows over it will erase the Ubuntu Grub and you will not be able to open the Ubuntu. So the kind suggestion would be: First of all format all the partition and separate the partition for windows and Ubuntu and then install Window and then install Ubuntu.


Looks like the answer is no for now at least, gnome are obsessed with simplifying everything to the point it is almost useless (IMO).

There are some alternatives though if you like more information.

The old software center is still available

sudo apt install software-center

Also synaptic package manger offers a front end for apt with all the information you can eat

sudo apt install synaptic

There are also websites to visit Ubuntufree seems nice, I never used it though and the apps directory too but it seems to not be updated as of writing.


For anyone viewing the post I ended up just routing the requests using iptables:

Something like
iptables -t nat -A PREROUTING -p udp -d 192.168.0.12 --dport 14000 -j DNAT --to 192.168.0.12:9

with port 14000 forwarded on my router allowed me to use WoL over the internet on port 14000.


Stop ubuntu from reading a drive automatically

I do believe that it's the OS prober that is scanning the other drives.  The OS prober gets run whenever update-grub is run, which is usually only after a kernel update or when a module is installed that needs to be compiled into the kernel.

I haven't actually done this, (Correction, I just did it.  What a fun hack!) but I do think if you delete /etc/grub.d/30_os-prober and replace it with a bash script that does nothing, then it should disable the OS prober without having any other bad effect on the system.  It's a bit like squashing an ant with a steam hammer, but hey...

OK, I did this and it seemed to work fine.  First, make backup copy of the file in question:

sudo mkdir /etc/grub.d/backup
sudo cp /etc/grub.d/30_os-prober /etc/grub.d/backup/

Next edit the file /etc/grub.d/30_os-prober  and delete all the lines except for the first crunch-bang.  (the first text line you will find in the file)

sudo nano /etc/grub.d/30_os-prober

Arrow down to the line below the crunch-bang and hold down Ctrlk to cut all other lines, then press Ctrlo to save the file and Ctrlx to quit.

You are done except if you want to make sure that the partitions on the hard drive are not mounted inadvertently, add a line for each of them to the /etc/fstab file. eg

sudo nano /etc/fstab

and and the lines at the bottom:

/dev/sda1  /home/username/part1  ntfs-3g  noauto,ro  0 0
/dev/sda2  /home/username/part2  ext4     noauto,ro  0 0

and so on where username is your username, and ntfs-3g/ext4 etc is the correct filesystem type for the partition.  This will stop the partitions showing up in Nautilus, and will require you to mount the drives manually with sudo, and the directory part1, part2 must exist already otherwise the partition can NOT be mounted.  Oh, and the partitions will also only be mounted read only (,ro) which is a great idea for devices which are failing since any write operations you do on them could make things much worse.

when you want to mount the partitions, do so with

sudo mount /dev/sda1

etc


Transmission permission denied with mounted samba directory

Seems to be working now...I shut my server down to move it after posting the question. Upon starting everything up a few hours later (primary server: started both VMs, ran docker-compose, sudo mount -a) > (samba server: testparm) I tested it once more and transmission started to download things from ombi > sonarr > transmission. The transmission docker-compose.yml file is using

volumes:
  - /etc/localtime:/etc/localtime:ro
  - ${USERDIR}/docker/transmission-vpn:/data
  - ${USERDIR}/docker/shared:/shared
  - /mnt/smbmount/dls/complete:/data/completed
  - /mnt/smbmount/dls/dling:/data/incomplete

The only change that I have noticed is on my primary server (with docker) is everything in /mnt/ is now other-writable (green background with blue text) according to some quick googling. If memory serves correct, they were not highlighted prior to moving the server.

In case there's something helpful to explain the cause prior in the samba logs from the samba server:

In log. there is this repeated for hours:

[2019/05/04 18:53:24.200929,  0] ../source3/param/loadparm.c:3350(process_usershare_file)
process_usershare_file: stat of /var/lib/samba/usershares/sambashare failed. No such file or directory
[2019/05/04 18:53:26.216203,  0] ../source3/param/loadparm.c:3350(process_usershare_file)
process_usershare_file: stat of /var/lib/samba/usershares/sambashare failed. No such file or directory
[2019/05/04 18:53:28.237241,  0] ../source3/param/loadparm.c:3350(process_usershare_file)
process_usershare_file: stat of /var/lib/samba/usershares/sambashare failed. No such file or directory

In log.nmbd this:

[2019/05/04 18:53:22.542765,  0] ../lib/util/become_daemon.c:124(daemon_ready)
STATUS=daemon 'nmbd' finished starting up and ready to serve connections
[2019/05/04 19:06:17.007804,  0] ../source3/nmbd/nmbd.c:58(terminate)
Got SIGTERM: going down...
[2019/05/04 19:06:17.052438,  0] ../lib/util/become_daemon.c:124(daemon_ready)
STATUS=daemon 'nmbd' finished starting up and ready to serve connections
[2019/05/04 19:43:36.268418,  0] ../source3/nmbd/nmbd.c:58(terminate)
Got SIGTERM: going down...
[2019/05/04 19:43:36.346490,  0] ../lib/util/become_daemon.c:124(daemon_ready)
STATUS=daemon 'nmbd' finished starting up and ready to serve connections
[2019/05/04 20:59:52.498656,  0] ../source3/nmbd/nmbd_namequery.c:109(query_name_response)
query_name_response: Multiple (2) responses received for a query on subnet
192.168.1.109 for name WORKGROUP<1d>.
This response was from IP 192.168.1.105, reporting an IP address of 192.168.1.105.
[2019/05/04 21:02:27.358132,  0]
../source3/nmbd/nmbd_become_lmb.c:397(become_local_master_stage2)
*****

Samba name server CBSTORAGE is now a local master browser for workgroup WORKGROUP on subnet 192.168.1.109

*****
[2019/05/05 01:50:50.978902,  0] ../source3/nmbd/nmbd.c:58(terminate)
Got SIGTERM: going down...
[2019/05/05 04:57:15.828267,  0] ../lib/util/become_daemon.c:124(daemon_ready)
STATUS=daemon 'nmbd' finished starting up and ready to serve connections

In log.smbd this:

[2019/05/04 18:53:21.969701,  0] ../lib/util/become_daemon.c:124(daemon_ready)
STATUS=daemon 'smbd' finished starting up and ready to serve connections
[2019/05/05 04:57:18.365352,  0] ../lib/util/become_daemon.c:124(daemon_ready)
STATUS=daemon 'smbd' finished starting up and ready to serve connections

The rest of the logs were empty.


Not possible to use Bluethooth Headset with A2DP (High Fidelity) and Microphone simultaneously

I tried everything i possibly could, ofono and phonesim too. But i couldn't use the microphone of my headset. So i discovered another way to use a mic.
All you need is an Android phone which has bluetooth.
Firstly, go to google playstore on your phone and download a bluetooth microphone app.
I used this one (Simple Bluetooth Mic): https://play.google.com/store/apps/details?id=com.app.google.chrischan.simplebluetoothmic
Alternatively, you can use this: https://play.google.com/store/apps/details?id=wimlog.com.myandroidtest4.
Connect the phone's bluetooth to your PC.
Now connect your bluetooth headset to the PC. (Both the devices must be connected simultaneously)
Open the Simple Bluetooth Mic App on your phone, click on speak.
Voila, that's it.
Basically you are using your phone's mic, because we can't use the bluetooth headset for both audio input and output.(even if it works for you, changing from A2DP to HSP everytime you need to use the headset mic is ughhh)
If this doesn't work, go to your sound settings and choose the input device as your phone's bluetooth.
HOPE THIS HELPS :)


touchpad not working (at all) in Ubuntu 13.10

I have a tips

Before you log in when at LightDM state (before you fill your password), try to turn on your touchpad with Fn + key. Every laptop has different key. Mine is Fn + F7.

maybe this can help. :-)

If above method are success, probably it's a bug. You can report it to launchpad.


Where is the pygame template in Quickly?

Correct, the pygame template was removed in Ubuntu 12.04, in this commit.

IIRC the rationale was that the pygame template was using desktopcouch as a dependency, which is deprecated. My understanding is that it was easier to remove the template rather than reworking it to get rid of desktopcouch, as someone mentioned that pygame would be better implemented embedding it.


Can I install extra drivers via the command prompt?

For 14.04 and above
sudo ubuntu-drivers list

Will show all the driver packages which apply to your current system. You can then
sudo ubuntu-drivers install      # on modern Ubuntu, or
sudo ubuntu-drivers autoinstall  # on older versions.

to install all the packages you need, or you can do:
sudo ubuntu-drivers devices

to show you which devices need drivers, and their corresponding package names.


How do I hide the loop partitions in Nautilus created by Snap app?

The easiest way to do this would be to do it with GUI

Go to disk app (through Unity Dash or terminal with gnome-disks command)
Choose your partition (that would be loop5)
Click the little gear icon
Select Edit mount options
Toggle  Show in User Interface to   Off

It'll stop showing the partition in Nautilus but will not affect Anbox in any way


Ubuntu installation instead of Windows 7

I believe the answer is: yes, it will unless you tell it not to.

Checking "Replace Windows with Ubuntu" will erase all Windows partitions. If you want to keep those (ie. D:, E:) except C: choose "manual" and remove C: yourself and then pick the unallocated space.

We expect you to create a backup of your important documents (at the least those documents you can not re-download) before you start messing with partitions. A mistake is made very quickly and misreading the installer options during partitioning will kill your data.


IPSEC/L2TP VPN causes resolving name server problem with the latest systemd version on 18.04

The IP address with reversed ordering of the octets has a trailing dot, which indicates it is the significant part of a reverse DNS PTR record. See :

https://unix.stackexchange.com/questions/145665/


Amazon app: how can I change the amazon country?

Go to the Ubuntu touch store and search for amazon.de
Then download, install and use that instead of the store that comes with the device.


Windows 7 won't boot after installing Ubuntu 11

Install the Boot-Repair application and choose the defaults. I've used it before, but not for the exact issue your having. If the defaults don't work, it has configurable options.


How can I get Spotify to play M4A files?

I have the same issue, I tried installing codecs to see if that was the issue and I can definitely play m4a files in Banshee, Rhythmbox, etc. It seems to just be a Spotify specific issue. I guess we're just going to have to wait until the developers move to GStreamer or something (or even their own codecs, I don't care, as long as it works.)

Sorry I couldn't be much more help.


System wide variables for both init scripts and system?

What's going on here is that you are writing a system V init script on a system that runs systemd.

Your systemd is somewhat backwards compatible and will run these old-style init scripts in a sort of emulation, but treat them as systemd.

I think you'll have a better time abandoning your old init script and writing a new systemd service. This way you don't need /etc/environment.

Here is some further reading on how to write systemd services.