Network Driver seems to be loaded, but not in use?

I suspect that you followed the instructions in the README in the package you downloaded. The 'make install' step builds and installs the driver for the currently running kernel version only. If, as an example, you build and install the driver while running kernel version 4.15.0-29, the driver is built and installed only for that kernel version.

If, a few days later, Update Manager offers and you install a newer kernel version, for example 4.15.0-30, then you must rebuild the driver for the newer kernel version:

cd ixgbe-5.3.6/src
sudo make clean
sudo make
sudo make install

Next, unload the old driver version:

sudo modprobe -r ixgbe

And load the newer veersion that you just installed:

sudo modprobe ixgbe

Confirm the version:

modinfo ixgbe | grep version

You should see:

version:        5.3.6

Please retain these instructions as the process must be repeated every time Update Manager offers and you install a later kernel version.


How to switch between Gfx cards on Macbook Pro 15" 8.2

I've solved it. I can successfully use the ATI card and also use an external display for dual head.

Have ubuntu installed and running in efi mode using the native builtin default radeon driver
Install the 3.8 ubuntu kernel from here:
Install the refind (refit replacement boot manager for efi macs
copy vmlinuz-3.8.0-030800rc2-generic and
initrd.img-3.8.0-030800rc2-generic to /boot/efi/ubuntu/
create a the file /boot/efi/ubuntu/refind_linux.conf enter this into
it: "Boot with sda6"         "root=/dev/sda6 add_efi_memmap
modprobe.blacklist=i915 radeon.modeset=1 elevator=noop vt.handoff=7
ro

this will give you a new option to boot the 3.8 kernel directly from the refit menu entierly bypassing grub which is needed for the switching to work properly.

6) The actual switch needs to be done from console, with GDM stopped. It also seems to  works best if its done after a fresh start of the machine.
7) echo DIGD > /sys/kernel/debug/vgaswitcheroo/switch , as root to switch to the Intel card
8)echo DIS > /sys/kernel/debug/vgaswitcheroo/switch, as root to switch to the ati card

For me every other release candidate strangely enough seem to have broken USB support . If your keyboard doesn't work, try another latest working for me is 3.8 rc6.

the /boot/efi  is where my efi paritition gets mounted in Linux. The efi partition is where you need to put the files for efi(refind) to detect your kernel and initrd.
if you cannot see it. Check gparted for it. It has a fat32 filesystem and should have the label EFI.


Cannot install Xtreme Download Manager on Ubuntu 17.10 from NoobsLab PPA

It seems that it is not packaged, so do the following:

cd ~/Downloads
wget https://10gbps-io.dl.sourceforge.net/project/xdman/xdm-2018-x64.tar.xz
tar -xvf xdm-2018-x64.tar.xz
sudo ./install.sh

After installation you could find it in Applications->Internet->Xtreme Download Manager or launch it from terminal with xdman command.

Note: in mentioned PPA (ppa:noobslab/apps) there is no package for artful.


How to enable Front audio port (headphone jack) in ubuntu 16.04 LTS

sudo apt-get install pavucontrol

open - PulseAudio Volume Control.

tap - Configuration tab.

Select profile - Analog Stereo Duplex (unplugged).

tap - Output Devices.

Select Port - Headphones (unplugged).


Using variables as paraments for commands in a bash script

#!/bin/bash

read -p "Please enter your username: " user

read -s -p "Please enter your password: " pass

xfreerdp -f -u "$user" -d campus -p "$pass" --ignore-certificate website.com

If you want to do the equivalent with a GUI dialog window, take a look at zenity e.g.

pass="$(zenity --password)"


Image management with selection-option on view?

For your user case, i.e. selecting files for deletion, you can, while viewing the pictures full scree, directly hit Delete to move a file to the trash.
Otherwise, selecting files to do something with it later can easily be done in full fledged photo management application, such as Shotwell, which is installed by default on Ubuntu, or Digikam. You can "star" pictures with a shortcut key and as such easily select the best pictures. You also can "flag" pictures using a shortcut key. In your user case, you would flag all of your current pictures, then select the starred ones and remove the flag from these. You can then do something with the remaining flagged images.


How to make the Gnome Terminal transparent

To activate and change transparency settings in gnome-terminal go Edit > Profile preferences, and then go to the Colours tab. You can tick the Use transparent background box to activate transparency and slide the slider in order to change the level of transparency:


wifi connection keeps dropping in Ubuntu 15.10 - RTL8821AE

In many cases, the issue with "...i'm getting a good connection when im close to the router.. but once i step a few meters away .. the signal drastically drops..." is a sign that the Linux driver is unable to sense and change to the antenna connector that is active, that is, has the wire connected. This is a well-known issue with the rtl8723be. There are a few options.

In the case of the rtl8723be, a revised driver has been written that allows antenna selection. In other words, if you have low or poor signal strength, the driver allows a parameter: ant_sel=2. In most cases, selecting antenna connection #2 provides excellent strength.

I have examined the latest driver for rtl8821ae and I find these manipulable parameters:

parm:           swenc:Set to 1 for software crypto (default 0)
 (bool)
parm:           ips:Set to 0 to not use link power save (default 1)
 (bool)
parm:           swlps:Set to 1 to use SW control power save (default 0)
 (bool)
parm:           fwlps:Set to 1 to use FW control power save (default 1)
 (bool)
parm:           msi:Set to 1 to use MSI interrupts mode (default 1)
 (bool)
parm:           debug:Set debug level (0-5) (default 0) (int)
parm:           disable_watchdog:Set to 1 to disable the watchdog (default 0)
 (bool)
parm:           int_clear:Set to 0 to disable interrupt clear before set (default 1)
 (bool)

There is no ant_sel parameter.

Another option is to open the computer, following, of course, all the precautions listed in the service manual that I am confident that you can find on line. Find the wireless card and change the antenna connector to the opposite post: http://i.ebayimg.com/00/s/Nzk2WDg3Nw==/z/XmYAAOSweW5VRppE/$_1.JPG?set_id=880000500F In this example, which may or may not be exactly like your wireless card, if your wire is on post A, change it to post M.

Replace  the cover, battery, etc. and restart the computer. Is the wireless signal strength good? If so, you have confirmed that this is an ant_sel issue.

If that is the case, I suggest you file an issue against the driver here: https://github.com/lwfinger/rtlwifi_new/issues


I found an old answer from some old posts just run these commands:
sudo rm /var/lib/apt/lists/* -vf

sudo apt-get clean

sudo apt-get update

sudo apt-get upgrade

It worked for me!


Wireless with WEP extremely slow on an Acer Timeline 4810T with a Centrino Wireless-N 1000

Edit the file (or create) /etc/modprobe.d/options.conf, add the line. If the file doesn't exist create it by doing:

sudoedit /etc/modprobe.d/options.conf

The system will then ask for your password and create this file. Then you need to add this line to it.

options iwlagn 11n_disable=1

or

options iwlagn 11n_disable50=1

Try each and see which works for you.

Reboot for testing on each line you are testing

sudo reboot

This will disable your N rated wireless access and connect it only with G speeds, if it works you are suffering a known bug (have to look the report for you, drop a comment if this worked). It wont be as fast as connection to a N rated wireless but at least will work.

If none of the 2 lines works for you just remove them to revert the effects.


How can I add text-to-speech to GoldenDict?

You can use the Programs tab to plug a text to speech software (espeak for example) into the GoldenDict.

Here are the steps:

Install espeak:

sudo apt-get install espeak

Open GoldenDict and hit F3 to bring up the Dictionaries window (or select Edit/Dictionaries menu).
On the Sources tab, select Programs tab.
Click the Add button, select Audio for the Type column, enter espeak for the Name, and espeak -v en %GDWORD% for the Command Line column.
Don't forget to check the Enabled box.
Click OK
Close the GoldenDict window and reopen it.

Now you have an item named espeak in your dictionaries and your translation results. Clicking the speaker icon in front of the word in espeak result, reads the word for you.


Try to first enable the main repository:

sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main"
sudo apt-get update

And finally:

sudo apt-get install build-essential autoconf automake libxmu-dev


Connect to a SFTP-server using FileZilla

Well, this is embarrassing... The whole time I was using an older version of FileZilla (3.7.3) installed via apt-get and could not get this one to work. After downloading the newest version (3.10.3) it worked like a charm. Thanks for your help tho!


Please execute below commands in terminal:

sudo apt update
sudo apt install tortoisehg

As mentioned in How to Install tortoisehg in Ubuntu 18.04.

This worked for me.


How to reconnect after an interruption during an update?

Its your username login and your password


Dual boot Ubuntu with Windows: cannot change from RAID to AHCI through BIOS

After disabling Optane from Intel's RAID software, as we as from BIOS, all the partitions are visible when you live boot, so its safe install.
Please Note: Windows might crash when you disable optane, so keep a windows bootable ready too, if you need to reinstall it.


How do I set up a keyboard shortcut for Kate?

Go to Keyboard Shortcuts in System settings, then press Add button and insert a Name of your choice, say "Editor", and kate as command then press Apply button.

Now, in the Custom Shortcuts section you will find an entry

Editor | Disabled

Click on disabled, then perform your custom shortcut. Press close, you're done.


Charles breaks when run through a symlink

This is happening because of presence of relative path  in you charles file .

    # Find Charles lib directory
      if [ -z "$CHARLES_LIB"]; then
         CHARLES_LIB=`dirname $0`/../lib              # <==HERE..
         if [ ! -f "$CHARLES_LIB/charles.jar" ]; then
              CHARLES_LIB="/usr/lib/charles-proxy"
         fi
  fi

Change it into absolute path so that it can refer to it's own  lib directory

  # Find Charles lib directory
   if [ -z "$CHARLES_LIB"]; then
      CHARLES_LIB=`dirname $0`/../lib
      if [ ! -f "$CHARLES_LIB/charles.jar" ]; then
         CHARLES_LIB="/opt/charles/lib"              #<== EDIT
     fi
fi

It should work.


Ubuntu 18 Server GRE tunnel with netplan?

looks like this is an old question, but did some digging, and found the following:

Tunnels in NetPlan: Example shows SIT tunnel, but changing to GRE should work...
Properties for the Tunnel Section of netplan: yea, GRE is an option there.

I have now successfully tried this and it works... The TTL part i have not gotten working, but everything else does...


When you are asked for your password in the Terminal, no placeholder characters (like *) appear as you enter it. That's not a problem--just type it in and press Enter. Your password is being received. The reason nothing is echoed back to you is for security--so that people looking at the screen (or at a log from the Terminal) don't know how many characters your password is.

If you enter your password and press Enter and it tells you that it's wrong, then make sure that Caps Lock was not on when you entered it. Make sure that you're putting in the password appropriate to the task--in the Terminal, when you are prompted for a password, this is almost always your user password, that is, the password you'd use to log in and/or unlock the screen. (If you ran a command in the Terminal that started with sudo, then it is definitely your user password.) Your user password is not necessarily the same as your keyring password. (Also, you might not have a keyring password, but you certainly have a user password.)

If you do not remember your password, you can reset it using this technique.


Instead of

Upload directory: /

try using

Upload directory: /var/www/html/myproject


What the meaning of package version number with word 'really' in the middle?

It's actually 9.1. Saucy seems to be pulling postgresql* packages from Debian's unstable dist, where because of some version dependencies they had to make the 9.1 branch look like 9.3 to the package manager until 9.3 graduates from their experimental to their unstable distro.

See here:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=707675

Especially the changelog bit reading:

   * debian/supported-versions: Don't explicitly support 9.3 for
     testing/unstable yet, it is still in experimental. (Closes: #707675)
   * debian/rules: Hack the version number of the metapackages to be
     9.3+142really9.1-..., so that they are bigger than the previous botched
     versions. This needs to stay until 9.3 actually goes into unstable.


I don't know which Ubuntu version you use, so here are some links that may be useful:

How can I install a Synaptics pointing driver?
SynapticsTouchpad
How to install Synaptics on touchpad on Ubuntu 14.04
Ubuntu 14.04 missing Synaptics Touchpad Utility

Try to read through these, I hope it'll help you :)


I fixed this issue by adding the certificate to the conf file

rsa_cert_file=/etc/ssl/private/vsftpd.pem
rsa_private_key_file=/etc/ssl/private/vsftpd.pem


How do I "assign" a part of a disk to a folder?

Create desired partitions in sizes you want
On your physical disk, create extra partitions.  You can use a tool like parted, gparted (or a number of other tools).   parted isn't a layman level tool, instead use gparted (or kde partition manager if using KDE etc) to create partitions using empty space.

Get the UUID's for create partitions using blkid  (UUID is a unique identifier and better than /dev/sdxy labels)

guiverc@d960-ubu2:~$   blkid

/dev/sda1: UUID="afa7971f-3dd5-4b30-9c98-0af3e56a6f2b" TYPE="ext4" PARTUUID="6c8394c6-01"

Add  those partitions to your file system table (/etc/fstab).  You can use existing partitions as example, but man pages (reference manual pages) are helpful too  (using UUIDs from prior step).

UUID=afa7971f-3dd5-4b30-9c98-0af3e56a6f2b /               ext4    errors=remount-ro 0       1

Steps 2 & 3 contain examples from my running system showing how the UUID of my / partition appears in my /etc/fstab.  The / is where it's mounted, ext4 is the file-system type, the errors=remount-ro is an option (you'll likely just use defaults), and '0 1' are the fs_freq & fs_passno entries, you'll use "0 0" most likely adjusting for your needs.  Use man fstab for more exacting detail


How do I change my desktop environment to lxde?

Or

sudo apt-get install lubuntu-desktop


You may also want to try MX Skype Recorder
http://skyperec.com/ which is stable and fulfills its duties. Well, at least it never let me down. Hope it'll help.


Extract Specific Icons from other Themes

So, I figured out everything. Themes are made according to various categories, of which some are  a) Dark themes: They work great with Ambiance GTK theme.  b) Light themes: They work great with Radiance GTK theme.

Regarding the two themes unite to make a single custom theme, i figured that. The icons are placed at /usr/share/icons  and then find which theme you would like to have. Radiance has Ubuntu-mono-light and Ambiance has Ubuntu-mono-dark. The icons I was looking for were in the status/22 directory. I just copied those icons to the status directory of my downloaded theme and made the custom theme.

Hope this helps everyone of you. Feel free to ask me, if you would like to know more. Thanks ~


Shellcheck recommendation to double-quote variable does not work when piping to cut

Adding -H to zfs will remove the headers and separate fields by a single tab instead of arbitrary whitespace, which simplifies parsing considerably. Because df don't have an option for removing the header, findmnt will be a better choice.
#!/bin/bash

# zfs
read -r zfs_usedh < <(zfs list -H -o used)

# df
read -r zfs_totah < <(findmnt -frnt zfs -o size)

echo "$zfs_usedh"
echo "$zfs_totah"

There is no total size, as with df so, you have to fall back on traditional math.
#!/bin/bash

read -d \\n -r avail used total < <(zfs get -Hpo value available,used | \
     awk 'NR < 3 { n+=$1; print $1 } END { print n }' | numfmt --invalid=ignore --to=iec \
)

printf %s\\n $used $total


The solution with zip in other answer look good, but for me have some disadvantages, it need to zip the files, do not show which file is different.

Because of this I will offer one sample solution:

cd /target/directory
md5sum * >/tmp/tmp_file

If you have subdirectories and files and want to include those files too use

cd /target/directory
find . -type f -exec md5sum {} \; >/tmp/tmp_file

transfer tmp_file to other server and execute there

cd /remote_target/directory
md5sum -c /tmp/tmp_file

(if tmp_file is transferred in /tmp directory)
and you will see output like this:

[root@rh1 sssd]# md5sum -c /tmp/a
./sssd.log: OK
./sssd_implicit_files.log: OK
./sssd_nss.log: OK
./a/aa: OK


No ACPI support for my PC, what can I do?

I suggest you start by trying to follow the steps in this guide: DebuggingACPI.

The description at the top of that page says it is part of Debugging Central, "pages with debugging details for a variety of Ubuntu packages" on the Ubuntu Community Wiki.

You should also try looking at the entries in /var/log/syslog to see if anything there  will help isolate the problem.

Make sure the portion of the log you look at is from a failed boot. That is, the log entries should be from a boot where neither acpi=off nor nolapic were used. The log timestamps should allow you to determine which boot a log file entry is from.

If you find it easier to use a GUI application, Ubuntu has a Log File Viewer which you can use. It can be found by searching for it using Dash.

The steps below are (pretty much) copied from the DebuggingACPI page and are what I suggest you do to try to isolate the problem before filing a bug report. (I believe the procedures for reporting a bug are also on the DebuggingACPI page)

If acpi=off allows the system to boot, try to isolate the ACPI issue with the following boot parameters. Remove acpi=off and boot with only one of the options below.

If you are lucky, you might find a combination of kernel parameters which allows you to boot and use all the cores of your CPU.

Note: If you need an explanation of to how to do a "one time" change of the kernel boot parameters/options, try this answer to the question "How do I add a kernel boot parameter?".

Try booting with acpi=ht
This disables all of ACPI except just enough to enable Hyper Threading.
If acpi=off works and acpi=ht fails, then the issue is in the ACPI
table parsing code itself, or perhaps the SMP code.
Try booting with pci=noacpi
This disables ACPI for IRQ routing and PCI scanning.
Try booting with acpi=noirq
This disables ACPI for IRQ routing.
Try booting with pnpacpi=off
This disables the ACPI component of the Linux Plug and Play code.
Try booting with noapic
Disables the IO-APIC for IRQ routing or PCI scanning.
Try booting with nolapic
Disables the local APIC.


SMB network printing with blank password?

This is a known bug which can hopefully be fixed soon for stable releases:

https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1849859


Open Software & Updates from dash
Navigate to updates and set Notify me of a new Ubuntu version to For any new version

Note that you will not be able to upgrade till all the software on your computer is up to date


I discovered gnome-panel was crashing:

  (gnome-panel:9694): Gtk-CRITICAL **: gtk_style_context_get: assertion `priv->widget_path != NULL' failed

It looks like a similar issue here.

As @fossfreedom suggested, it is probably related to video drivers. As a workaround, I followed instructions here for uninstalling fglrx and reinstalling the open-source driver.


AWStats: cannot access /var/log/apache2/access.log

If you go for point 1 and it says that www-data should have at least read permission then the recomended is grant only read.

You can alter the line (in logrotate file):

create 640 root adm

to

create 644 root adm

To give all users (www-data included) read permission.

You'll need to change permissions existent files in /var/log/apache2/ to match this setting

chmod a+r /var/log/apache2/* #or whatever your path is

Then all the files can be read by all users and all the files that logrotate create in the future will have the adecuate permissions


Two networks with the same ESSID, how do I blacklist one or force the other?

You should be able to do this from the GUI network manager applet by choosing Edit connections..., choosing the Wireless tab, selecting the appropriate connection by SSID, and then entering the MAC address of the desired access point in the BSSID box

You can obtain the MAC addresses from the command line using the nmcli tool e.g.

nmcli dev wifi list

or to see just the MAC of the currently active connection

nmcli dev wifi list | awk '$NF ~ /yes/ {print}'

It should be possible to do the same with iwconfig - although it generally requires elevated privileges e.g.

sudo iwconfig wlan0 ap 00:11:22:33:44:55

If nmcli is not available on your system, you can use iwlist to obtain the MAC information (although the output format is not as convenient for parsing)

iwlist wlan0 scan[ning]

(where wlan0 is the interface name) will show the current AP; or to see all detected APs

sudo iwlist wlan0 scan[ning]


How can I Push/Stream media to my Ubuntu box from a DNLA device

If you install the totem-plugins-extra package, then the standard movie player can be used to browse and play content stored on DLNA media servers on your network.  Just follow these steps:

Install the totem-plugins-extra package.
Start the movie player and choose Plugins... from the Edit menu.
Check the box next to Coherence DLNA/UPnP Client and close the plugins window.
Pick the Coherence DLNA/UPnP Client panel on the side bar.  If the side bar is not displayed, press F9 to open it.

You should now be able to browse through the media advertised by the media servers on the local network.


The problem was that I had the wrong layout. (Settings -> Keyboard -> layout)
I changed it from "Français (variante obsolète)" to "Français". In this new layout, ^ is a dead key but ` is not which solves the problem


Is there a package management system for shell scripts?

https://github.com/bpkg/bpkg/ can be installed with:

curl -Lo- "https://raw.githubusercontent.com/bpkg/bpkg/master/setup.sh" | bash

and lets you install packages like:

bpkg install term -g

Packages are just Git repositories with a package.json at top-level.


Its fixed now. I had to disable secure boot on the BIOS.


Ubuntu 14.04 - How to connect to Apple's Time Capsule?

Make sure you have mount.cifs

sudo apt-get install cifs-utils

I had a hard time with this too until I hit on this

http://blog.martinshouse.com/2014/09/mounting-apple-time-capsule-share-from.html

In short, I added this line to my /etc/fstab file

//10.0.1.1/Data /media/timecapsule  cifs    password=<timecap pw>,uid=1000,sec=ntlm,user    0 0

10.0.1.1 is your TC IP address.  uid is your user id to set the permissions and user allows you to mount it without being root.  Then from a terminal you can "mount /media/timecapsule" and it will work.


Can't execute .out files, getting permission denied

Usually, g++ gives the created file execute permissions. If you do not pass the -o option, the file will be named a.out.

Two possible reasons why your file does not have the execute bit set, with their solutions:

The umask value is set to a value like 0133, thereby preventing the execute bit from being set. Solution: set the permissions explicitly:

chmod 755 a.out

The filesystem you're working on does not support Linux permissions. This could be the case if you're putting files on a FAT32-formatted flash drive. Solution: either back up the files and format it to ext2 or mount the drive with fmask=0022 or umask=0022 (omitting fmask). See the Mount options for fat section on the manual page of mount for more details.

For bash scripts which do not have the execute bit set, you could run bash file.sh. Such a feature exists for all files with executable content (compiled files and files with a shebang line #!/path/to/interpreter set). To execute files without the execute bit set, use the special file /lib/ld-linux.so.2 (or /lib/ld-linux-x86-64.so.2 for 64-bit applications) to run such a program:

/lib/ld-linux-x86-64.so.2 a.out


How to repair partition table for seagate goflex nas

Open a terminal and install testdisk

sudo apt-get install testdisk

At the command line type sudo testdisk. You will be prompted to create a new log file.

>[Create]
Select the effected disk
Select >[EFT GPT]
Select >[Analyze]

Hopefully, if your disk is not messed up and your partition table is the only thing that's been affected you'll see something like this after a quick search:

Disk /dev/sda - 3000 GB / 2794 GiB - CHS 364801 255 63
     Partition               Start        End    Size in sectors
>D MS Data                      504 5860512503 5860512000 [GoFlex Home]

Review the file listing (for Seagate shares, select .users, otherwise you'll only see Public).

Push enter to continue. Write the partition table. Reboot, and you should have it working long enough to copy your files to a new device.


I need to re-connect HDMI everytime after boot

I would comment but I can't, sorry. I had a very similar problem a few years ago on ubuntu 16.04. I had to unplug the hdmi cable and plugin again every time I turned on the laptop. I was using NVIDIA driver and I have accidentally discovered that when I switched to Nouveau driver the problem disappeared. Later on with an upgrade the problem was fixed for the Nvidia driver as well.


Dual-boot OS but cannot access Ubuntu after boot-repair

In situations with a broken or wrong bootloader I use the super grub2 disk. It detects bootable operating systems and can boot one of your choice. Choose your ubuntu system. After booting in ubuntu, you can repair your boot loader. Normally this is done with

sudo update-grub
sudo grub-install /dev/sda

(Assuming your first and main harddisk is /dev/sda, normally it is)


Open up your terminal and enter this

sudo apt-get install blueman

When its finished the icon should be there


You could use rename...
rename -n 's/^[0-9]+ - //' *

Remove -n after testing to actually rename the files
Explanation

s/old/new/ replace old with new
^ start of string
[0-9]+ some numbers


You should use LVM and a cloning cron script.
I am going to assume this setup for you:

4 drives for LVM and file storage.
External USB drive for backups. (at /dev/sdf1)
No duplication -- use dd to completely clone as necessary.

LVM

You need to first set up LVM. This diagram is a good example:

Use a hard drive, and assign each to a LVM folder such as /lvm or whatever. This article is very good for describing LVM. I recommend reading it for a better and more detailed LVM introduction.
First off, partition all storage drives, but do not add a partition scheme! Use unallocated as the partition type. I will assume that your storage partitions are /dev/sdb1, /dev/sdc1, /dev/sdd1, and /dev/sde1. Your installation will be at /dev/sda1.
Next, you need to make the drivers LVM-ready:
pvcreate /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1

Once that is done, you want to group those drives:
vgcreate homeNAS /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1

This creates a group called "homeNAS" that conains all of the above drives.
Next, create the Logical Volume:
lvcreate --name share homeNAS

Create the filesystem:
mkfs.ext3 /dev/homeNAS/share

Once this is done, run the following to create the lvm folder:
mkdir /lvm/

Mount it using:
mount /dev/homeNAS/share /lvm

To mount it on every boot, add the following to the end of your /etc/fstab. Make a backup!!
/dev/homeNAS   /lvm     ext3       rw,noatime    0 0

Note that the above guide for LVM is very basic, and is not meant for fancy things. Read the linked article for a much more detailed explanation.
Cron Script

First off, get an external disc drive. It should be plenty big for storing all of your files. It should be able to hold 1.5x the size of your entire LVM partition (ie, 500GB HDD = 750GB backup).
I will assume your drive has one partition (ext4 at /dev/sdf1, which is mounted at /media/backup)
Create a shell script named lvm-backup.sh in /etc/lvm-scripts/ like this:
cp /lvm/folder1/ /media/backup/lvm/folder1
cp /lvm/folder2/ /media/backup/lvm/folder2
cp /lvm/folder3/ /media/backup/lvm/folder3
cp /lvm/folder4/ /media/backup/lvm/folder4

What this'll do is copy the specified folders to the backup drive. You should not clone directly, as that takes forever and can be detrimental to your system.
Quickly run:
chown root:root /etc/lvm-scripts/lvm-backup.sh
chmod +x /etc/lvm-scripts/lvm-backup.sh

To run the backup nightly at midnight, add this to your /etc/crontab:
00 00 * * * sh /etc/lvm-scripts/lvm-backup.sh

If you want more specific control of when to run the script, see this Howto on Cron.


Tomboy saves sync settings, but Ubuntu One sync is still disabled

From the OP:

  Finally, I solved the problem! If it can be useful for someone...I had to change the server URL in Tomboy preferences from "https://..." to "http://...". In this way, it worked!


Finally applying the Why is "GPU Process" causing such a high CPU usage with Google Chrome?  recommandations is the better answer that I thought at first sight.

With the latest version of google chrome  (v 45.0.2524.99) along with a change of the AMD driver Trying to configure a HD 7470/8470 - Strange video refresh Title changed and instability of video card
provides quite good results in my specific case.

The essential part if it is : "Disabling GPU accelerated canvas 2D"  (accessed via the "chrome://flags/" command:

Hope this will help for people having CPU overhead with Google Chrome.

Laurent06000


You need to do separate comparisons with each string, and connect them with or like this
if my_name == "Simon" or my_name == "simon":

Full Code
print("What's your name?")
my_name = input()

if my_name == "Simon" or my_name == "simon":
    print("Hello, Simon!")
else:
    print("Hello, stranger!")

Sample Output
wolf@linux:~$ py script.py
What's your name?
hey
hey
Hello, stranger!
wolf@linux:~$
wolf@linux:~$
wolf@linux:~$ py script.py
What's your name?
simon
simon
Hello, Simon!
wolf@linux:~$

Hope this helps.


Where can I find out what features are getting added to the Dash?

Well you could sit in on IRC or subscribe to mailing groups, but that's not very interesting unless you are directly involved. The best place to watch new features get set up (usually in preperation for the next major release) is secondary news sites.

My personal favorites are:
WebUpd8
and OMG! Ubuntu

They both have RSS feeds, and update a couple times a day on average with new information.


Should use ethernet before mac address

    host ubuntu{
        hardware ethernet 0:02:03:04:05:ff;
        fixed-address 192.168.100.120;
    }
    host windows7{
        hardware ethernet 0:02:03:04:ff:02;
        fixed-address 192.168.100.130;
    }


How can i install my Wi-max USB modem in Ubutu 13.04?

To get the driver for Wi-max installed, run next command in terminal:

sudo apt-get install madwimax

Or install it using Ubuntu Software Center:


There are 2 Linux drivers, the privative and the open driver, you have the open driver installed try to install the privative driver. It's better if before uninstalling the video driver before install the new driver,

Try to reinstall the Xorg driver on a terminal (Ctrl+Alt+T):

sudo aptitude reinstall xserver-xorg-video-intel
sudo dpkg-reconfigure xserver-xorg

Install MESA:

sudo apt-get install mesa-utils

So, if you want to know what driver are using use:

glxinfo | grep -i render

Here how install the Linux video driver for Ubuntu:

https://01.org/linuxgraphics/downloads/2013/intelr-graphics-installer-1.0.2-linux

After install the video driver is good make  a actualization:

sudo apt-get update
sudo apt-get upgrade

NOTE: Sometimes the the privative drivers works better than the open driver, but try with them.

Here are a very good video tutorial to win more speed on Ubuntu

http://www.youtube.com/watch?v=vwBoHZuauL8


What's the simplest way to account traffic?

The simplest method

You can use ifconfig on you network interface (mine is eth0) - it counts the amount of data sent and received since the interface was started.

# Bytes Receive
ifconfig eth0 | awk '/RX bytes/ {print $2}' | awk -F: '{print $2}'

# Bytes Transmitted
ifconfig eth0 | awk '/RX bytes/ {print $6}' | awk -F: '{print $2}'

# A human readable output
ifconfig eth0 | awk '/RX bytes/ {print $3, $4}' # Received
ifconfig eth0 | awk '/RX bytes/ {print $7, $8}' # Transmitted

Making it persistent

Not so simple


How to disable CUPS printer server permanently

You can remove the cups package with the package manager.  Try a command like:

apt-get remove cups

Unless cups is trying to print something it shouldn't require much in the way of resources.  If you are running short on memory try adding some swap space.  You can add use a file for additional swap space if you don't have anywhere to create a swap partition.

You can disable and stop the service with the commands:

systemctl disable cups.service
systemctl stop cups.service

The default configuration is quite restrictive and should not allow remote access.  Patching is relatively frequent as printer support is fixed, translations updated, and interaction with systemd is adjusted.  There have been a few security issues resolved in recent patches.


Black desktop after login and problems with GUI in Ubuntu 12.10, 13.04 and 13.10 (currently using 13.10)

It could be a problem with your graphic card. Have you installed/updated your CG driver recently?

If yes, can you try to go back with your former driver (you can choose your driver version in System parameters > Additional drivers)
If no, try to install the newest driver for your card (again through System parameters > Additional drivers)


How to find the name needed to launch app from terminal?

I dont't know about "Vmware player" in particular, but if it is listed under Applications in form of a Symlink > /usr/share/applications/ you could open a preferences-dialog window on that Symlink, using Ctrl+i and use the Command: name in terminal.

For instance for Bluetooth Device Setup the command is bluetooth-wizard.


Which union filesystem is best supported?

Aufs is the union filesystem used by default for schroot and the LiveCDs.  That's what I'd use, but you're right - there's not really an upstream union filesystem solution that I'm aware of.


How to use upstart tasks to create a new file with today's date?

It sounds like the script is executed by /bin/dash instead of /bin/bash. Therefore, the solution of sneetsher creation of a script which state /bin/bash via shebang as interpreter should work.


How do I enable multi-row layout for the workspace switcher applet in Metacity?

The key you are looking for is

/apps/panel/applets/workspace_switcher_screen0/prefs/num_rows


How to restore/recover a booted medium to USB

I would recommend that you use mkusb and the wipe menu, where you can select to restore the drive to a standard USB pendrive for storage of data with an MSDOS partition table and one partition with the FAT32 file system.

See the following links

help.ubuntu.com/community/mkusb

mkusb/wipe


Newbee Question: Attempting to install Ubuntu server + Unity to get a GUI of server configuration

Installing ubuntu-desktop package should take care of all the dependencies, is that the one you installed? If not:

sudo apt-get install ubuntu-desktop

I don't know exactly what you mean by "it looks like a ubuntu-desktop system" but if you meant it looks like the old gnome2 desktop, maybe the problem is you need to install the drivers for your graphic card, which one is it?


How can I make it possible for all users to log in without a password?

Ok this is what I came up with.  Logins are without password entry, just click the "Log In" button.  Password is preserved and works fine whenever prompted.  I haven't tried to reverse it but can't see any reason that wouldn't work.

sudo gpasswd -a <USERNAME> nopasswdlogin

In all fairness this answer was posted earlier but deleted.  I don't remember by who but I'm glad I saw it because it is spot on.

To re-enable the password query it would be

sudo gpasswd -d <USERNAME> nopasswdlogin

A little more information can be found at http://www.tuxgarage.com/2012/07/disable-enable-passwordless-login.html


Laptop cannot connect to the specific router

This is a comment posted as answer, as it would be much less effective without markdown.
Did you set up that router?
I will name router R1 one to which you can connect,
and router R2 the problematic one.
This would take you some work, but without knowing the output of one or the other command, it is hard to tell which will reveal the problem.
Please post

When connected to R1, the output of
1.1. Commands

  $ ip a
  $ ping -c 2 8.8.8.8
  $ netstat -nr | awk '$1 == "0.0.0.0"{print$2}'
  $ sudo lshw -class network
  $ lsusb
  $ lspci
  $ rfkill list all
  $ cat /var/log/dmesg | grep wifi
  $ cat /var/log/dmesg | grep network
  $ cat /var/log/dmesg | grep firmware

netstat ... gives  the local ip of your router.
Say, 192.168.0.1. Most likely that or similar.

When trying to connect to R2
2.1. Same as above

What you see in a Windows browser when browsing http://192.168.0.1 (or the ip of your router)

What you see in an Ubuntu browser when browsing http://192.168.0.1 (or the ip of your router).


Send Maximized Window to Another Workspace

Shift Crtl Alt Arrow will move the current window to the workspace up or down


Open URL in default browser (Chromium) from terminal and give browser focus

You can keep your command as is and change the way applications are getting automatic focus by changing the following settings.

Open a terminal and type:

dconf write /org/compiz/profiles/unity/plugins/core/focus-prevention-level 0

To restore the initial behaviour:

dconf write /org/compiz/profiles/unity/plugins/core/focus-prevention-level 1


Skype contacts shown offline despite them being online(away)

By what you are telling me, I do not think that this is a problem with the OS but rather the application itself. This is most likely a bug in Skype that will be fixed in a later update.

My Suggestion: Submit a bug report to Skype.


Cannot ping across a bridge (netplan, qemu)

I got the following configuration working (only one .yaml file is used):

network:
 version: 2
 renderer: networkd
 ethernets:
  eno1:
   dhcp4: yes
   dhcp6: no
  eno2: {}
 bridges:
  br0:
   addresses: [ 192.168.56.7/24 ]
   interfaces: [ vlan15]
 vlans:
  vlan15:
   accept-ra: no
   id: 15
   link: eno2


Bash script exiting when repeated in double click execution

Your problem is the if…then. After the first call off boo you check the value of prompt and boo will be started, if prompt is y. After that, there is no more code to execute and the script exits.

Using this script

#!/bin/bash
function boo {
    function goo {
        echo "Please enter name"
        read -r name;
        echo "Hello $name"
    }

    function xoo {
        echo "Please enter number"
        read -r numl;
        echo "$numl"
    }

    read -rep $'\n> \n> Name N or Number S \n> \n> ' var
    if [[ $var =~ [nN](es)* ]]; then
      goo
    elif [[ $var =~ [sS](es)* ]]; then
      xoo
    fi
}

while true; do
  boo
  read -rep $'\n> \n> To Repeat press Y \n> \n> ' prompt
  if [[ ! $prompt =~ [yY](es)* ]]; then
    break
  fi
done

exit 0

Example

% ./foo

>
> Name N or Number S
>
> N
Please enter name
abc
Hello abc

>
> To Repeat press Y
>
> y

>
> Name N or Number S
>
> N
Please enter name
def
Hello def

>
> To Repeat press Y
>
> y

>
> Name N or Number S
>
> N
Please enter name
jjj
Hello jjj

>
> To Repeat press Y
>
> n
%


From the installation instructions, simply remove you blender folder.

Find the folder with

find ~ -type d -iname "*blender*"

or if there is no result

find / -type d -iname "*blender*"

Remove the blender folder

sudo rm -r <your_installation_folder>

Example

% find ~ -type d -iname "*blender*"
/home/aboettger/tmp/blender-2.75-linux-glibc211-x86_64
/home/aboettger/tmp/blender-2.75-linux-glibc211-x86_64/2.75/scripts/addons/io_export_dxf/draw_blenders

Therefore

% rm -r /home/aboettger/tmp/blender-2.75-linux-glibc211-x86_64


Help installing Linux on Samsung Chromebook Plus

Download crouton from GitHub link (google it)
Install the crouton extension from chrome webstore
Invoke developer mode (Ctrl d will.bypass the oss verification screen)
Open chrome and press Ctrl + alt +t to open up terminal
Type shell
Run command
sudo sh ~/Downloads/couton -t xfce-desktop,keyboard,xiwi
After install
Run command
sudo startxfce4
(I used the xfce-desktop command because it comes with alot more preinstalled apps,.like Mozilla for one, you need to have the chrome browser crouton extension installed and MUST use xiwi in the command or it will not work on the Samsung Chromebook plus)

***The other above will.work on majority of Chromebook with Intel, ours is arm based and xenial is the only one I have been able to get to work good. I am looking into mint but it doesn't look to support arm yet. I personally chose arm over Intel for it runs google play apps better and more of them over Intel based processers, and google is to laid back to force devs to support Intel any time soon. If you specifically want Linux then go buy one with a intel processor, and wait till the apps are updated for it, IMO I'll be due for a new upgrade by the time that happens, for now I'll just dual boot my windows laptop for a better Linux distro :)


How to backup the software-packages downloaded by Synaptic Package Manger?

The packages you downloaded are stored /var/cache/apt/archives/, you can back up this folder. Operation apt clean should clear it.
apt-get and dpkg are tools with different purposes. You can not compare them because you need both. So, this question makes no sense.
Again, it is not clear what do you mean. Please explain.


Brightness Control in ubuntu 13.04-64bit not working in Toshiba T110

I have a solution that worked on my Acer Aspire V3-531G laptop with Ubuntu 13.04-64 bit. This solution does not depend on the hardware, hence I dare to recommend it to you:

As root, open the /etc/default/grub file in your favourite text editor.
Change the line GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=Linux"
Save the file
As root, run update-grub
Reboot
Enjoy! :-)

Source: http://en.kioskea.net/faq/12062-adjust-the-brightness-in-ubuntu-10-10

Hope, this helps!


What version of "mysql-connector-java" to include in pom.xml for ubuntu 14.04

Versions should not coincide

This is the two different project MySQL Connector/J and MySQL.

In my case MySQL version is:

  mysql  Ver 14.14 Distrib 5.5.37, for debian-linux-gnu (i686) using readline 6.2

and mysql-connector-java:

<dependency>
       <groupId>mysql</groupId>
       <artifactId>mysql-connector-java</artifactId>
       <version>5.1.28</version>
</dependency>

And that's work well!


How to netinstall to a specific minor release? i.e. 16.04.2

I figured it out.
Step 1) Download old release from http://old-releases.ubuntu.com/releases/16.04.2/ubuntu-16.04.2-server-amd64.iso
There are a plethora of other obsolete versions at http://old-releases.ubuntu.com/releases/ as well if you have other idiot clients.
Step 2) mount or extract the iso on your local image server.  Make the mountpoint of the ISO accessible at
mybox.corp.company.com/Distros/Ubuntu-Idiots/16.04.2-server-amd64_mount
Step 3) In your preseed, comment out:
#d-i mirror/http/hostname string archive.ubuntu.com
#d-i mirror/http/directory string /ubuntu

Replace with:
d-i mirror/http/hostname string mybox.corp.company.com
d-i mirror/http/directory string /Distros/Ubuntu-Idiots/16.04.2-server-amd64_mount

Step 4) Netboot to the new preseed file, and with the mirror hostname and dir being updated to read from the 16.04.2 iso, it will install 16.04.02
Step 5) Profit
OF COURSE:
Old versions are stupid, use the new version. blah blah.


Kernel Panic installing from USB stick and PXE (very old Fujitsu Lifebook B2154)

Fujitsu LIFEBOOK B2154 is a very old laptop (14 years?) and the CPU does not appear to support PAE so you will not be able to use a recent Ubuntu version on it. The Trident GPU is unlikely to still be supported. Your best hope is to install an old version of Debian (install report #1, install report #2). Even then it could be a lot of work. You might also consider selling it and buying a more capable laptop (you can get a second hand Thinkpad T42 for less than US$50 now).


Chromium profile "could not be opened correctly" errors

There's quite a thorough guide on a blog as to the steps you could take to troubleshoot this problem.


Can't ssh with key after upgrade/new install of 18.04 server

Solved. Double checking the permissions in my home directory on the host showed I had it writable by my group. My bad.


Ubuntu 20.04 not starting after VirtualBox VirtualDisk resizing

I solved the issue by inserting a Ubuntu 20.04 ISO-image and booted from CD.

Next increased the partitions with the "Disks" tool.

After that I installed the tool "Boot-Repair" and executed "Recommended repair".

Restarted the guest and it booted properly


udev not updating usb permissions and group

Try to add ACTION=="add" as trigger for that rule.


Changing Screen Brightness Through Keyboard Functions on My Notebook

It seems quite common for brightness Fn keys to not work on Asus machines. On my Asus X205TA the brightness function keys don't work natively but I can use xbacklight as a workaround:

sudo apt install xbacklight

commands:

get current brightness:

xbacklight -get

set brightness to 50%

xbacklight -set 50

increase brightness by 10%

xbacklight -inc 10

decrease by 10%

xbacklight -dec 10

If these work, you can get the function keys to change brightness by assigning them as shortcuts to the commands.

In keyboard settings click Custom Shortcuts and click the + button to add a new one

Name: Brighter
Command: xbacklight -inc 15

Click OK, then click where it says 'Disabled' next to the new shortcut and press the key combination you want (Fn will probably not work) for example ctrl+F6 or just F6

Name: Dimmer
Command: xbacklight -dec 15

And make this one F5 or whatever combination you want.


Any alternatives to Virtualbox for virtualization

KVM is Ubuntu's "official" virtualization platform.

sudo apt-get install qemu-kvm

Will get that installed for you. Or read the instructions in Synaptic to see if you machine qualifies (most ordinary PC's will).


How do I use a kernel module built for a different kernel version?

You can't. Each module is compiled for a specific kernel version, and can't be used for kernels that differ from that.

You'll need to either get a .ko file for the specific kernel you're running there, or recompile it for that kernel yourself.


Don't play with ccsm in unity
Yeah, ccsm is still not stable in Unity. If it wrecked your desktop try Ctrl+Alt+T to launch the terminal and type unity --reset.
If that doesn't work try
Alt+Ctrl+F1 to enter console mode. Enter your username and password, and type
unity --reset

Consider removing ccsm if you want a stable desktop.


Your questions aren't all answerable (eg 'better' is entirely opinion - you would need to ask 'better for purpose X') but what can be said is:

Unity 3D provides a 3D desktop, with Gnome as a fallback for computers that can't run Unity 3d
Gnome is much more mature
Unity 3D requires far greater resources, but this doesn't imply greater or lesser efficiency - it does a lot more, visually.
Hotter?? What do you mean? Is this similar to better?
The folks at Ubuntuforums seem to have done some comparitive testing, but I don't see any major results out yet

I would advise updating your question to give your needs, then it may be easier to provide comments about which is better for those needs.


Weird graphics artifacts with Ubuntu 18 and Nvidia card

After about 2 weeks working with Ubuntu 18 I suddenly realized that my graphics was much improved. The weird artifacts are completely gone. Occasionally I still get a black screen for a second, but that occurs much less often than before.
I'm not sure what happened, but I suspect a particular automatic update improved it. I checked the history.log in /var/log/apt and my guess is it was something in one of the 2 updates below:

Upgrade: libparted2:amd64 (3.2-20, 3.2-20ubuntu0.1), libparted-fs-resize0:amd64 (3.2-20, 3.2-20ubuntu0.1), parted:amd64 (3.2-20, 3.2-20ubuntu0.1)
Upgrade: gir1.2-nm-1.0:amd64 (1.10.6-2ubuntu1, 1.10.6-2ubuntu1.1), libsystemd0:amd64 (237-3ubuntu10.3, 237-3ubuntu10.4), udev:amd64 (237-3ubuntu10.3, 237-3ubuntu10.4), libnm0:amd64 (1.10.6-2ubuntu1, 1.10.6-2ubuntu1.1), network-manager:amd64 (1.10.6-2ubuntu1, 1.10.6-2ubuntu1.1), libudev1:amd64 (237-3ubuntu10.3, 237-3ubuntu10.4), libnss-myhostname:amd64 (237-3ubuntu10.3, 237-3ubuntu10.4), systemd-sysv:amd64 (237-3ubuntu10.3, 237-3ubuntu10.4), libpam-systemd:amd64 (237-3ubuntu10.3, 237-3ubuntu10.4), systemd:amd64 (237-3ubuntu10.3, 237-3ubuntu10.4), libnss-systemd:amd64 (237-3ubuntu10.3, 237-3ubuntu10.4), network-manager-config-connectivity-ubuntu:amd64 (1.10.6-2ubuntu1, 1.10.6-2ubuntu1.1)


I had the same issue. It has to do with your graphics card. On your grub page, you can boot using "nomodeset" instead of the "no splash". This might help, although you can do it from grub as well (LiveCD not needed). That way you will get basic functionality so you can change your drivers.

My issue was resolved when I upgraded to 11.10, even though the ATI drivers were the same. I'm assuming Unity was fixed, so I suggest you work with the generic drivers for a time until Ubuntu releases more updates.


Can I use dd to back up a mounted partition?

Yes but the whole idea of using a live session is to prevent someone or something writing to the partition while you are doing the disk dump. If there are changes the result is a disk dump that might not be the exact same. Mind also that a disk dump of the root system will also dump virtual filesystems. You normally do not want to dd those.
rsync might be a better option: rsync the 1st time takes all files but the 2nd time it will only copy differences. On the other system you only have to extract the differences.

If you add pv | (pv = pipe viewer) before gzip you get to see the progress of the dd commnand (sudo apt install pv).


How to create partition without formatting drive?

You can use Gparted (available in the Ubuntu Software Centre) to resize the 2TB down in 200GB and format those 200GB as FAT.

That process does not require you to format the previous NTFS partition, but its always a risk. There is no 100% safe process for that and a backup of your data is always the most responsible thing to do.

Instructions on how to install and use Gparted are here: How to resize partitions?

Just open the program, locate your hard disk, right click on the partition and select resize/move, give it some room on the right up to the amount you need and create a new partition on the new free space. After you applied the changes you will have 2 partitions on your disk: the old one containing your data, and a new formatted 200GB FAT32 partition.


Can I restrict access to websites (list of available) for myself?

You can just install one of the many browser add-ons that do exactly what you need.

I don't know which browser you're using, but here's a list of them for firefox (parental control category):
https://addons.mozilla.org/en-US/firefox/search/?q=parental+control&cat=all

and here is a particular one (first goole hit), maybe it's perfect for you:
https://addons.mozilla.org/en-US/firefox/addon/blocksite/

EDIT:
Of course, if you use some other browser, use its add-on store (or whatever it's called) to find what you're looking for.


Suppose you have package A installed. There is a newer version of A, however the new version requires package B, which is not currently installed. Then A will not be automatically upgraded, because that would require installing a new package, which is considered a significant enough change that you need to explicitly allow it. (Whether that's a "correct" assumption is debatable.) The same is true if the new version conflicts with a currently installed package, which would then need to be uninstalled.


With the help of @steeldriver, I use LDLIBS in makefile and it works now:

LDLIBS=-lncurses

Obviously ubuntu and mac are different on processing makefile.


Error opening documents with WPS from ntfs disk

You can set it in the app store. Select the installed application, click permissions, allow the read drive.


How to set up accounts LAN jabber chat server?

Hey friend, I use Iptux for chatting on my home LAN.  Setup is quite simple.  Merely install the client on each desktop (no server software needed the clients detect each other.)  Iptux also includes file sharing capabilities.

On the ubuntu / debian based linux client machines use sudo apt-get install iptux

http://packages.ubuntu.com/lucid/iptux  (appears to have been in the "universe" repositories since karmic)

On the windows client machines install ipmsg.exe  (Iptux is a linux version of the windows ipmsg client or maybe the other way around.)

http://ipmsg.org/index.html.en

Also, be sure to open port 2425 on the firewall of each machine (and router if necessary) as that is the port that iptux / ipmsg uses.


want to extend root partition with gparted

The partition must not be in use so you will need to boot from live media containing GParted, for example GParted Live which includes the latest version of GParted (currently 0.24.0).

The linux swap partition (sda5) will need to be moved left so that the unallocated space is adjacent to the partition you wish to expand (sda10).  Then you should be able to expand the sda10 partition to the left which involves moving the partition and growing it.  Please note that you should have your Linux boot media handy in case you need to restore the ability to boot.  See the GParted FAQ for more details on restoring boot.

Before proceeding I highly recommend you make a back up of all your data in case anything goes wrong due to a power outage, hardware failure, or software bugs.


I can't get Ubuntu installation to start

Please visit the link https://help.ubuntu.com/12.04/installation-guide/amd64/boot-troubleshooting.html


I don't have a definitive answer for you, but I thought I'd link to a similar question I asked a while back. There were many informative answers and there is a lot of good samba-related information in that thread:
No access to Samba shares

I feel your pain, sir. I still haven't got Samba to work satisfactorily. I just gave up and use sshfs now.


How to make Epiphany (Gnome-Web) ask where to save a file

Seems to be impossible, even through dconf-editor or gsettings.


Why can't I browse network shares on 12.04?

Are you using Nautilus?

Try Go -> Location and type

smb://machinename.its.domain/share-name/

and if you want save it as bookmark

Hope it helps


System wide proxy settings are just another consolidated place for proxy settings. It actually modifies the places where different apps' config files. Have you noticed, system wide proxy setting asks for password 2 times? This is mainly because of the modification of two admin files which corresponds to config file.

And yes, from 10.10 and 11.10, some apps have been left out of system wide proxy setting most notable among them is the synaptic.

and moreover, apps can bypass the system wide setting and make use of their own setting again most notable synaptics and Mozilla Firefox(which contains system settings option as well).


Installing Ubuntu from a USB Stick, from Windows10

Ubuntu Install Quick Start
The guide that you used is not the best guide. Following the screen shots, such as using Free Dos, can create problems. The following step by step guide is as simple as it gets:

Download Ubuntu 20.04 https://ubuntu.com/download/desktop

Start with a USB of at least 4GB formatted FAT32.

If using Windows, download Rufus. https://rufus.ie/.

Double click the Rufus .exe file. (No need to install).

Select USB Device and Ubuntu ISO file for Boot Selection.

Stretch the Persistent partition size slider about half way.

Confirm your Rufus looks exactly like the screen shot except for the Device name and position of the Persistence slider.

Select START.

When Rufus is done you can use USB to install Ubuntu to BIOS or UEFI machine.


how to remove best-deals-products.com from firefox

The problem is a plugin in Firefox somewhere is doing this.  We have to identify and remove that plugin.  There's two ways to go about that.

The destructive method:

This is essentially trying to kill a fly with a huge weapon instead of a fly swatter.

Burn (aka delete and reset) your Firefox profile, and remove all addons. Then install NoScript, and try again and see this happens. If not, then something in your profile (addons, etc.) was involved.  (WARNING NOTE: Burning your firefox profile will remove all your configurations, cookies, favorites, addons, etc.)

The not-so-destructive method:

This is systematic identification and removal of the plugin causing issues.

Alternatively, a less destructive option is to disable your addons one at a time until you find the addon that is doing this, then disable/remove that addon.  This will save your favorites and such.


Drivers for the Tenda twl541u wireless card?

Ok, so I did make it work. It was quite hard to find the driver. I did a lsub command in terminal to find witch manufacturer made my card and it turns out was Marvell. After that I found that was a 88W8338 card. Googled it and found a driver named D00000055_87, downloaded it, and after that (since my ubuntu is a 64 bit one) used the driver 64 bit in the file, with ndiswrapper. Then, violá!, wifi with ubuntu.


I hope this helps: https://askubuntu.com/a/492745

I would suggest using xinput test and simply pressing the buttons you want to change. Once you know the actual button ID you can remap it temporarily with xinput on the CLI, or permanently by writing a custom ~/.xsessionrc as shown in the above answer.


Install oracle-java7-installer through apt-cacher-ng

I was just battling with this, here are my findings for Ubuntu 14.04 Trusty Tahr.

The installer uses apt-config to determine which proxy to use. Specifically if Acquire::http::Proxy::download.oracle.com returns DIRECT to determine whether to use the default proxy of to download directly.

Specifically the install runs

# use apt proxy
APT_PROXIES=$(apt-config shell \
http_proxy Acquire::http::Proxy \
https_proxy Acquire::https::Proxy \
ftp_proxy Acquire::ftp::Proxy \
dl_direct Acquire::http::Proxy::download.oracle.com \
)

And later on

if [ "$dl_direct" = "DIRECT" ]; then
    unset http_proxy
    unset https_proxy
    unset ftp_proxy
fi

If you use the following apt config then the installer with download directly:

Acquire::http::Proxy "http://my.proxy.com:3142";
Acquire::http::Proxy {
        download.oracle.com DIRECT;
};

While this works it is somewhat annoying as the download takes forever and that somewhat defeats the purpose of the proxy.

I found that the installer checks a debconf variable to check whether to use a local file. The property checked is oracle-java8-installer/local and it is a string.

Specifically the installer runs:

db_get oracle-java8-installer/local
if [ -d "$RET" -a -f "$RET"/$FILENAME ]; then

    echo "Installing from local file $RET/$FILENAME"
    cp -f -p "$RET"/$FILENAME ${FILENAME}_TEMP
    mv -f ${FILENAME}_TEMP $FILENAME
else # no local file

So if you have the JDK downloaded and in a directory /jdk/dir then you need to run the following command before running the installer:

sudo debconf-set-selections <<< 'debconf oracle-java8-installer/local string /jdk/dir/'

Note the trailing / on the directory - this is required.


Python3:ImportError: /usr/lib/python3.7/cv2/cv2.so: undefined symbol: PyInt_Type

Unless you specifically need to have it installed through pip3, you can uninstall the opencv module you installed, then reinstall it through the Ubuntu package python3-opencv.

To reverse the effect of pip3 install opencv:

pip3 uninstall opencv

Or if you had actually run pip3 install opencv as root (perhaps with sudo), then run:

sudo pip3 uninstall opencv

Then, to install the opencv module for Python 3 using Ubuntu's package manager:

sudo apt update
sudo apt install python3-opencv


Is there GUI software that can show how much bandwidth a user on my home network is using?

You can't (per se) do this from your computer itself without some network topology alterations or similar. As those are complicated and a lot harder to set up and maintain, we can look at your actual SoHo router.

Most modern routers come with very rich GUIs that allow you to access a very large amount of information, including exactly who is using how much bandwidth. Ideally, you can just use this.

To access your router's web interface, open your Network menu in the top right, and select "Connection Information". Select the connection you're working with (if there are even multiple networks), and look for Default Route (in this example, 192.168.0.1). Open your web browser and navigate to http://192.168.0.1 (or whatever it was) and log in. Your default password will be in your router manual, or written on the router itself if you have not already set it.

If your router does not offer bandwidth tracking, you can try to flash custom firmware such as DD-WRT or Advanced Tomato or any similar custom firmware that provides this feature. Note, however, that flashing custom firmware is always rather risky (although it offers amazing rewards) and should only be done with a backup router nearby while carefully following instructions.

Alternatively, you can set this up on your home computer, but this only will work if the following conditions are met:

You have a decently fast computer
You are willing to leave this computer at home and on 24/7
You have some way to broadcast WiFi that's not your computer (like a WAP)

If all of these conditions are met, congratulations! You effectively are going to set up a server that hosts DHCP, DNS, acts as the firewall, and does all the routing-related stuff. This is complicated and painful, but you'll be able to get whatever reporting metrics you want. However, Ubuntu isn't exactly suited to being a router (as opposed to specialized software like pfSense), so you might have performance issues. Plus, you'll need at least two network cards and an Ethernet switch.


Can't connect to a specific WiFi network (Lubuntu 16.04 LTS)

Create a new file /etc/modprobe.d/ath9k.conf:

sudo nano /etc/modprobe.d/ath9k.conf

Add the following line to it:

options ath9k nohwcrypt=1

Save and reboot


I can't install any new software, i keep getting this message

You should:

open Software & Updates (or software-properties-gtk from terminal)
then in the area named Installable from CD-ROM/DVD uncheck the Cdrom with Ubuntu 18.04 (Bionic Beaver).

make sure that you do not have checked Cdrom with Ubuntu 18.04 'Bionic Beaver' on Other Software tab:

to keep your system secure on Updates tab enable security updates (bionic-security, bionic-updates, bionic-backports):


Example of Procedure for NAS Storage Auto-Mounting

Something was wrong with my samba install.

sudo apt-get remove samba
sudo apt-get install samba

Then, this is how I mapped the drives

sudo gedit /etc/fstab

Added:

//192.168.0.13/GoFlex\040Home\040Personal/Pictures /home/brandon/Pictures cifs sec=lanman,file_mode=0777,dir_mode=0777,username=USER,password=PASS,iocharset=utf8 0 0
//192.168.0.13/GoFlex\040Home\040Personal/Music /home/brandon/Music cifs sec=lanman,file_mode=0777,dir_mode=0777,username=USER,password=PASS,iocharset=utf8 0 0


Running Crusader Kings II with wine, some textures are wrong

Install the latest version of Wine.  From https://wiki.winehq.org/Ubuntu:

If your system is 64 bit, enable 32 bit architecture (if you haven't already):

sudo dpkg --add-architecture i386

Add the repository:

sudo add-apt-repository ppa:wine/wine-builds

Update packages:

sudo apt-get update

Then install (example for the development branch):

sudo apt-get install --install-recommends winehq-devel

If you prefer to use the Staging branch, replace winehq-devel with winehq-staging in the line above.

The version of Wine in the Ubuntu repos is still 1.6, while the latest version is 1.9. It is very likely that the problem has been fixed in Wine already.


Errors auto mounting google-drive-ocamlfuse

You can't use mount to reconnect the remote Google Drive storage (essentially, a small cloud storage bucket) to the local mount point.  Instead, you must use the google-drive-ocamlfuse that you installed when you originally set this up.  Remove the fstab entry; it's invalid, as your error message shows.  Instead, include google-drive-ocamlfuse /home/user/google-drive (obviously, replace /home/user/google-drive with the actual path and folder you used when you first set up google-drive-ocamlfuse) in a file that gets executed at startup.  Use the full path, rather than the ~/ abbreviation, because the abbreviation may not be valid yet at the time your startup commands get executed.

No special privileges are needed; that is, you don't need to included sudo in the command line -- and once you've completed the initial setup, you won't need to relog to Google Drive again.  I haven't tested whether that remains true if you log your browser into a different Google account, but I suspect it does, because google-drive-ocamlfuse stores the connection tokens that were downloaded in the initial setup process.


Turns out, after digging thru all of the Links Posted to me here, The answer to my question (Just to be sure, Grub should be installed on the Ubuntu HD during installation, not the Windows HD correct?) and solution to my problem is:

Yes. Install GRUB onto the Windows Partition. So if you're having this same issue and have tried everything except for installing GRUB onto your Windows HD, Try that. It's exactly what worked for me.

Thanks for your help and links everyone!


Set up Oracle Virtualbox LAN-ONLY Network

The only way I can think of to solve this is to set the DNS addresses of those VMs nics to 127.0.0.1
If they are WIN OS then go to network adapter settings and if they are Ubuntu based OS then go to /etc/network/interfaces to change the dns address
update
OK I have just tried this out and it works!
You can access the LAN only and there is no internet for those machines. In windows just set the NIC settings like this. (sorry it's on german but I think you will know where to find these settings)

I will update it for linux OS (ubuntu based) as soon as i get to my pc


Will Unity be the only interface for 11.04?

As things stand today, every foreseeable Ubuntu release until the end of the GNOME 3.x series will feature GNOME 3.x, minus GNOME Shell. GNOME Shell is just one part of the GNOME stack.

This is GNOME Shell:

http://live.gnome.org/GnomeShell/

This is GNOME 3:

http://live.gnome.org/ThreePointZero


Reboot right after suspend/sleep, if system is left in S3 mode for long enough

I found out that my old power supply looked like it was aging, to the point where 5V SB seemed to not work anymore. Replacing it with another one returned things to normal. Turns out that nothing else but an aging/faulty power supply can cause suspend/sleep to not work properly.


Broadcom wireless card only works when the power is plugged in

pm-powersave helps your battery life by powering down stuff (including your wireless) when AC power goes away. See Why is wireless down/strange after switching to battery or closing/opening the lid?


Simple, configure your host as server for AptCacherNg tool following this https://wiki.debian.org/AptCacherNg and configure the VMs as clients, you will get what you wanted.


Overscan is a function of the monitor - you should be turning this off on the monitor, not on the PC.

Graphics drivers do sometimes have facilities to correct for overscan in the monitor but these are intended only for monitors where it's impossible to disable overscan, which is basically CRT monitors.  On digital flat panels (LCD etc) you will get a much poorer (blurry) display quality if you do this because the image will have been re-sized twice - once by the graphics card and once by the monitor.  Instead, you should output full-frame from the graphics card and disable overscan on the monitor.

On most monitors this "just works" because signal hints it receives over HDMI tell it that the signal is coming from a PC, and from this the monitor can infer that it shouldn't use overscan.  In some monitors (particularly those designed as televisions) it may be a manual option in the monitor settings however.

Some monitors may refer to this as enable/disable overscan, but at least one some (including my Samsung TV) the no-overscan mode is referred to as "screen fit".


Error installing virtualbox-6.1 dpkg error

Read output. "dependency problems"
libqt5opengl5
libqt5printsupport5
libsdl1.2debian
...
etc.
sudo apt install -f -y


How to prevent an unintended resume from suspend (Lenovo x240)?

I installed Ubuntu 15.94 from scratch and do not have any problems.

It seems there was something configured or installed before that caused the problem. However as it seem not to be an issue to many people I consider it as solved (unreproducible). If the problem happens again I will add information to the question and mark this answer not as solved any longer.


Open the Contacts window (empaty itself).
In the application menu you have Edit-Blocked contacts.
There is the list of blocked contacts. Select one and click on minus button below the list.


unable to boot or login after successful installation of Ubuntu

I figured out the problem was due to the fact that I was using nouveau drivers instead of Nvidia drivers (as of this writing, using the latest version of Nvidia 384.x solves the issue).


Updated to 20.04, no change in interface

I solved this problem was by going to 'Software and updates' and in the 'Updates' Tab, changing the 'Notify me...' option to 'For any new version'. Afterwards I ran sudo apt dist-upgrade which updated the OS. I let it run without any interruptions and my computer was updated to Ubuntu 20.04 completely.


Can't get menus to show up in custom indicator

You should call gtk_widget_show_all(indicator_menu) (at least I guess that's the way doing it in C, I'm using Python).


Thinkpad W510 gets slow after 5 mins of regular activity (CPU thread fully loaded)

I just bought one of these used a few weeks ago and have run into a lot of trouble with performance. Make certain you are not using a 90W power supply as the ThinkPad will throttle itself substantially. A 135W power supply was standard and ought to avail the unit's full power to you.

Mine came with a 90W supply and I noticed a dramatic increase in performance by unplugging it and running from battery power.


Using CLI, how do I change the user's profile picture?

That is not stored in Dconf.

See the contents of ...

/var/lib/AccountsService/
/home/$USER/.face

the 1st will have a desktop styled file
the 2nd holds the image taken from a webcam in case you used that

To change the 1st check the desktop file for the dir at Icon= and replace the file it points to (make sure yours is the same size). The second just requires you to move a file to it (probably in the same size and format).

If you want to remove the picture altogether and default back to no profile picture, remove the property that says Icon=, or if you want one single command to do it for you:

sed -i '/Icon/d' "/var/lib/AccountsService/$USER"


Thinking of switching to Linux, a few questions..

In general this is what live CD are for, you boot it up and see if your hardware works.

You can check various online lists for supported hardware if you like, but, such lists are for the most part user maintained and support is going to vary by kernel version.

If you are purchasing hardware, definitely check compatibility lists.

http://www.h-node.org/

Linux supports RAID, but you will have to do some reading.

Other then that, come back if you have a specific question about a specific issue. Broad open ended questions do not do so well on this site.


This sounds like https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1001138

Try moving aside the file ~/.config/compiz-1/compizconfig/config and then logging in again.

mv ~/.config/compiz-1/compizconfig/config ~/.config/compiz-1/compizconfig/config.backup

If you can login fast now, then you can put back the file and try to just delete these lines as described in the bug comments:

+[gnome_session]
+profile =

Or you can just leave it and use the freshly generated confg.


Mouse permanently stuck on left side of screen

Your hint on monitors solved the problem for me.

I put the 2nd monitor I had back. I suppose that you have a problem with having two screens, I don't mean 2 physical monitors, but two defined screens in your Xorg.conf (probably in /etc/Xorg/Xorg.conf, I'm not on a Linux PC now).

Try and remove the sections pointing to your broken monitor or to you having two monitors.


how to add ubuntu router's network to a wireless router to expand its network

Depending on the capabilities of your wireless router, you might be able to configure it as a switch, thus extending your LAN that way.
On my LAN my main Ubuntu server is the router / dhcp server / firewall. My wireless router is configured as a switch, taking care of all the wireless requirements, while the devices themselves get their IP address from main DHCP server, and everything is on one sub-net. So that I can still connect to the administration web interface of the wireless router (switch), it has a static IP address on the same local sub-net, but outside of the pool of addresses reserved for dynamic allocation.So, I have:

WAN <--> Ubuntu Server <--> switch <--> wireless router configured as a switch


How to actually start a disk wipe with nwipe?

At the bottom of the screen, it shows S=Start.

This will sound dumb, but press SHIFT-"S", not just "s". I infer this is a precaution to avoid wiping drives by accident.


You need to use sudo for all apt-get commands, but I'll assume that you're doing that...

You can find out what's locking those with lsof|grep /var/lib/dpkg and lsof|grep /var/lib/apt.  That will show you anything that's accessing those files + directories.  You can then kill those processes (and use lsof as needed to see if anything stays open).  If killing them doesn't work, try a kill -KILL <pid> to send a SIGKILL, which should do the trick.

If you post what processes are locking those files, we can shut them off.  For my personal system, I prefer to update my system with sudo apt-get update && sudo apt-get upgrade on my own on a daily basis.

edit, also try fuser - this may be an easier way for most, but keep lsof in your pocket as a must-know Linux command.  Always use sudo for process-related commands, because you might miss out on something that you don't own.

me@me:/tmp$  sudo fuser /var/cache/debconf/config.dat
/var/cache/debconf/config.dat:  8112
me@me:/tmp$ ps aux|grep 8112
root      8112  0.0  0.0  71276 15984 pts/5    SN+  May13   0:00 /usr/bin/perl -w    /usr/sbin/dpkg-preconfigure --apt


Xscreensaver turns on after leaving sleep mode

I have contacted the author of Xscreensaver himself, and he responded that this behavior is not possible to disable, since "it's basically impossible to tell "we were just asleep" apart from "the machine was just slow for some random-ass reason" ".


Fingerprint sensor not being recognized in Asus S430UA

This is because the fingerprint sensor on the Asus notebooks is not yet supported in the libfprint library.  (It's the Elan Microelectronics reader)

See https://bugs.launchpad.net/ubuntu/+source/libfprint/+bug/1641290 and please add your vote by clicking the "yes, it affects me too" indicator at the top of the bug report.  The more people show that they are affected, the greater the chance that this gets assigned to somebody to fix.

Because the hardware is not known, it doesn't even show in the lshw listing.


Why don't I get Unity as an option when logging in?

The sessions typically are listed on the login screen if they are read from .desktop files provided in /usr/share/xsessions folder.
On my system ( default Unity desktop ) I have the following ubuntu.desktop file :

[Desktop Entry]
Name=Ubuntu
Comment=This session logs you into Ubuntu
Exec=gnome-session --session=ubuntu
TryExec=unity
Icon=
Type=Application
X-LightDM-DesktopName=Unity
X-Ubuntu-Gettext-Domain=gnome-session-3.0

I suggest you add the following file , but remove the Icon= part and perhaps X-LightDM-DesktopName=Unity


I think the main thing you're getting at is the creation of the NTFS partition rather than how to install Windows 7.

Your best bet would be to re-size your partition using gparted to free up space for windows. Then put your windows disc in and go through a custom install. There will be an option to create your new NTFS partition there in the empty space.

Just be aware that windows will wipe out your boot info for Ubuntu so you will have to stick a ubuntu live disc in after installing windows 7 and repair your grub loader as per the instructions at here or here


For anyone facing the same problem, you need to run these commands and you have to make sure about the path of your device using df -h where in my case, it is /dev/mapper/ubuntu--vg-ubuntu--lv
sudo -s
sudo fsck.ext4 -f /dev/mapper/ubuntu--vg-ubuntu--lv
mount -n -o remount,rw /


How can I force the phone screen to stay on

Either, on the device in the terminal app issue the command:-

stop powerd

Alternatively from a computer connected to the device, with the android tools installed issue:-

adb shell stop powerd


NO 3D after installing updates on fresh Ubuntu 12.04

A few days ago I had the same issue with another Radeon graphic card and I deactivated the proprietary drivers: 3D came again.


Setup a cronjob for PHP script in ubuntu 16.04 & PHP 7.0

crontab -e should not have the root part, which specifies the username (crontab -e already edits a specific user's crontab).

If you want to run as root, do sudo crontab -e,  and use:

* */2 * * * php /var/www/html/script.php

or create a file in /etc/cron.d containing:

* */2 * * * root php /var/www/html/script.php


How does Ubuntu handle file-system fragmentation?

Most Linux file systems avoid fragmentation to begin with*, so you don't need to defrag Ubuntu under normal circumstances.

*This is accomplished in the way files are written to the disk. Mostly files are written in such a manner that they remain contiguous, with some filesystems arranging the inodes to avoid fragmentation, and when it occurs, to keep it to a minimum. Even when files are modified a lot, moved around etc, the filesystem uses the same principles to avoid fragmentation.

See here: https://secure.wikimedia.org/wikipedia/en/wiki/File_system_fragmentation#Preventing_fragmentation


Ubuntu 14.04 64 bit - Unmet Dependencies (skype, steam, samba)

For Skype and Steam, the packages come from the Canonical partner's repo, for which the correct line is:

deb http://archive.canonical.com/ubuntu trusty partner

There's an ubuntu at the end of the URL, missing in your list.

Try again after an apt-get update after making this change. You should use the  software-properties-gtk program for selecting from such pre-listed repositories. You can run it by typing Sources in the Dash.

I'm not sure of samba. In this case, the error is that you have held broken packages. I suggest an apt-get install -f.


How can I install phpmyadmin on Ubuntu 19.10?

It's a bit hard to help without knowing what you already tried, but I see you tagged apt so I'm gonna start there.

First of all, you need to update apt metadata by running

sudo apt update

After that you can try

apt search 'phpmyadmin*'

Notice the * wildcard. Also I wrapped the search term with '' single quotes so Bash will not expand * (if it happens to match anything) before APT sees it.

If this doesn't help, then the package is not available in your repository right now. In that case you have these options:

Wait - find some info about why it is missing and when it will be back. This is out of scope of this answer, for more info see the related question.
Install the package from a PPA:

sudo add-apt-repository ppa:phpmyadmin/ppa
sudo apt update
sudo apt install phpmyadmin

Try an alternative. I personally prefer Adminer which should also be available through apt.


Please read the forum post before doing anything here, to prevent the corruption of your system.

According to here, this command might fix it.

find /home/$SUDO_USER ! -user $SUDO_USER -exec chown $SUDO_USER:$SUDO_USER '{}' \;

Apparently, this occurs because of the bad ownership of your directory.


Lost all the data after installing Ubuntu 12.10

You may use testdisk.

First and foremost stop using the system!

Boot a live DVD or live USB, install testdisk and run it. Try the Recover partitions option.

It's your best bet.


Wireless drops on HP ENVY dv6 with RT3290 wireless, worked without problem prior to upgrading to Ubuntu 13.10, can it be fixed?

Installation of the kernel update on Ubuntu 13.10 with 4 simple commands as documented in Linux Kernel 3.12 Released, Install it in Ubuntu... appears to fix the RT3290 wireless problem for now.

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.12-saucy/linux-headers-3.12.0-031200-generic_3.12.0-031200.201311031935_i386.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.12-saucy/linux-headers-3.12.0-031200_3.12.0-031200.201311031935_all.deb

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.12-saucy/linux-image-3.12.0-031200-generic_3.12.0-031200.201311031935_i386.deb

sudo dpkg -i linux-headers-3.12.0-*.deb linux-image-3.12.0-*.deb

11/14 Update - Been running for days on the 3.12 kernel and have not had a single wireless problem!


Non-ASCII characters show as boxes in textbox of VB.Net application under Mono

I assume the VB.NET application is using Microsoft's .NET GUI stuff and not the Gtk or Qt bindings for .NET?  Just guessing, but maybe the problem is related to the fact that Windows (and maybe .NET too?) uses UCS-2 (or UTF-16?) and (most) Xorg applications use/expect UTF-8?

Anyway, looks like there is a bug somewhere, and like you say, something gets converted one time too many...


How can I use history command in a bash script?

history is disabled by default in non-interactive shells by bash. You have to enable it.

The script should look like this:

#!/bin/bash

HISTFILE=~/.bash_history  # Set the history file.
HISTTIMEFORMAT='%F %T '   # Set the hitory time format.
set -o history            # Enable the history.

file="/media/saleel_almajd/Study/linux/my_scripts/history.txt"

history >> $file          # Save the history.
history -cw               # Clears the history of the current session.

Reference:

History command inside bash script
“history” stops working when run inside bash script


BT Mouse disconnects after upgrade to 12.04

I have the same problem with a HP625-Laptop.

In the System-Log you can see the following:

...kernel....[....] usb 5-4: USB disconnect, device number 21
...kernel....[....] Bluetooth: hci0 urb ffff880089af0480 submission failed
...bluetoothd[992] Adapter /org/bluez/992/hci0 has been disabled

I think, that is a problem with the kernel.

The problem is solved:

De-Installing fglrx-Driver
De-Installing broadcom-sta-wlan-driver

After that everything works fine.
Now you can install the fglrx-Driver again.

The kernel supports the broadcom wlan- and blutetooth-device!


Just for the record, the SSD "is used only as a cache under Windows" on my laptop as I found out searching for the model name. So it is most likely safe to use it as a swap partition under linux as well in a dualboot setup.


How should I give access to a PHP script on a local host-only server?

Ok, so you can solve this in two ways:

If you want to access your website through 192.168.0.100/mantis/admin/install.php then all you have to do is: mv /var/www/mantis /var/www/html/
If you want to access your website through a specific alias like  192.168.0.100/MantisPortal/install.php then you have to do:

sudo nano /etc/apache2/sites-available/mantis.conf
Copy all the contents from the sample file you uploaded except that you must take the quotes off the directory paths and also don't specify the filename in the directory path.
Save that and then do: ´a2ensite /etc/apache2/sites-available/mantis.conf´
And now restart apache and you should find your website in 192.168.0.100/MantisPortal/install.php


ubuntu 18.04 no sound output from any audio device, following bluetooth connection

I had a similar issue once and what solved it was resetting Pulseaudio to default settings.

You may try: mv ~/.config/pulse ~/.config/pulse.bak and rebooting or logging out and then in again.

If sound returns, then you may delete the pulse.bak file rm ~/.config/pulse.bak


What are the equivalent Ubuntu 20.04 packages for these Ubuntu 18.04 packages?

Maybe you are trying the same.
libgfortran3 -> libgfortran5
gudev-1.0 -> gir1.2-gudev-1.0
libusb-1.0.0-dev -> libusb-1.0-0-dev
libfluidsynth1 -> libfluidsynth2
libnettle6 -> libnettle7
libopenexr22 -> libopenexr24


/dev/sdb SATA-disk does not even show up in syslogs if I plug it in while machine is running

dmesg did not show any messages, but this info helped greatly:

http://www.makestuff.eu/wordpress/sata-hotplug-in-ubuntu/

In short: We have to tell the SATA controllers to rescan:

echo "- - -" | sudo tee -a /sys/class/scsi_host/host2/scan


How to cycle through grub background images every boot

Short Answer

#!/bin/bash

CURR_FILE=$(cat /etc/default/grub | grep BACKGROUND) # Get grub current line
CURR_FILE=$(cut -d "=" -f 2 <<< "$CURR_FILE")        # File name only
CURR_FILE=$(echo "$CURR_FILE" | tr -d '"')           # Remove double quotes

for ALL_FILES in /home/rick/Pictures/Wallpaper/640x480*; do # Loop through every file
    if [[ "$FIRST_FILE" == "" ]]; then
        FIRST_FILE="$ALL_FILES"
    elif [[ "$MATCH_FILE" != "" ]]; then
        NEXT_FILE="$ALL_FILES"
        break # We've got it!
    fi
    if [[ "$CURR_FILE" == "$ALL_FILES" ]]; then
        MATCH_FILE="$ALL_FILES" # We found our current file entry
    fi
done

# If $NEXT_FILE empty we hit end of list so use First file name
if [[ "$NEXT_FILE" == "" ]]; then
    NEXT_FILE="$FIRST_FILE"
fi

# replace background file name in grub source file
sed -i "s|$CURR_FILE|$NEXT_FILE|g" /etc/default/grub

# replace background file name in grub configuration file
# Backup... just in case :)
cp /boot/grub/grub.cfg /boot/grub/grub.cfg~
# Short cut so we don't have to run `sudo update-grub`
sed -i "s|$CURR_FILE|$NEXT_FILE|g" /boot/grub/grub.cfg

Credits
After much googling this morning along with trial and error the problem was 90% solved. Then with incredible assistance in chat room from Pilot6, Terdon and Zanna the hardest part for me (using sed) was solved.
Considerate comments were also posted by cl-netbox and Byte Commander making Ask Ubuntu's chat room the friendliest most homogeneous technical chat room I've frequented in my two decades on the net.
Call script every boot with cron
Create the file /etc/cron.d/cycle-grub-background containing:
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
@reboot   root    /usr/local/bin/cron-reboot-cycle-grub-background

NOTE: create file using sudo powers. No need to mark it as executable but doing so won't hurt either.
Long Answer with debug and variable declarations

#!/bin/bash

# NAME: cron-reboot-cycle-grub-background
# DATE: February 18, 2017. Modified April 9, 2017.
# PATH: /usr/local/bin/

# DESC: Cycle through available wallpaper for grub background

CURR_FILE=$(cat /etc/default/grub | grep BACKGROUND) # Get grub current line
echo "Grub line:    $CURR_FILE"

CURR_FILE=$(cut -d "=" -f 2 <<< "$CURR_FILE") # File name only
CURR_FILE=$(echo "$CURR_FILE" | tr -d '"')    # Remove double quotes

echo "Current file: $CURR_FILE"

FIRST_FILE=""
NEXT_FILE=""
MATCH_FILE=""

for ALL_FILES in /home/rick/Pictures/1600x900/*; do # Loop through every file
    if [[ "$FIRST_FILE" == "" ]]; then
        FIRST_FILE="$ALL_FILES"
    fi
    if [[ "$MATCH_FILE" != "" ]]; then
        NEXT_FILE="$ALL_FILES"
        break # We've got it!
    fi
    if [[ "$CURR_FILE" == "$ALL_FILES" ]]; then
        MATCH_FILE="$ALL_FILES" # We found our current file entry
    fi
done

# If $NEXT_FILE empty we hit end of list so use First file name
if [[ "$NEXT_FILE" == "" ]]; then
    NEXT_FILE="$FIRST_FILE"
fi

echo "First file:   $FIRST_FILE"
echo "Match file:   $MATCH_FILE"
echo "Next file:    $NEXT_FILE"

# replace background file name in grub source file
sed -i "s|$CURR_FILE|$NEXT_FILE|g" /etc/default/grub

# replace background file name in grub control file
# Backup... just in case :)
cp /boot/grub/grub.cfg /boot/grub/grub.cfg~
# Short cut so we don't have to run `sudo update-grub`
sed -i "s|$CURR_FILE|$NEXT_FILE|g" /boot/grub/grub.cfg

# Now next reboot will have new background image
exit 0

A few notes
The long version answer uses a different picture directory name than the short version. In either case you need to update to whatever directory your images are stored in.
sed usually uses / as a delimiter however our path/file names contain / so we use | instead.
The conventional method after changing /etc/default/grub is to run sudo update-grub. However this takes 12 seconds on my machine the machine could be rebooted while this lengthy process was being run. Given that systemd-inhibit would have to be used.
The short cut uses sed to search and replace within /boot/grub/grub.cfg. A backup of the file is made just in case something goes wrong. The way cron reboot is setup on this machine however the process is completed by the time the login password is typed and a terminal window is opened to check on the update.


A bit late but... just for future reference.

I already met this very same issue, just with a different key: you probably have a double org.gtk.Settings.FileChooser.gschema.xml file installed on your filesystem.

You should remove that file (I just uninstalled the culprit package) to solve the issue. Check this question for further details.


Adding another partition to 14.04 - what mount-point/settings needed?

Create and format the partition using the 'Disks' system application.  Note the 'Device' id and 'Type' of the partition.
sudo mkdir /games
sudo vi /etc/fstab
The first column will be the device id, the second column, will be where you want the partition mounted, the third column is the 'type', the fourth column are different options (see "man fstab" for more information), the fifth and sixth column are sometimes used by different backup utilities (again, see "man fstab" for more information)

The final fstab entry might look something like this:

/dev/sdb1       /games ext4    defaults       0       0

If you choose to use ntfs as another poster mentioned, then you might have a couple more options.  Here's what the fstab line might look like.

/dev/sdb1       /games ntfs    defaults,umask=007,gid=46       0       0

If you already have your windows drive mounted/available to see, you might already have a line like that in your file.  I would copy that line and use the same options.


Accidentally typed sudo chmod 666 /dev/*

If you're on a modern kernel using the udev (devtmpfs) filesystem, just reboot.  The /dev nodes in such systems are populated by the kernel and will be reinitialized with the proper permissions at boot.

You can tell if this is the case for your system with mount | grep 'on /dev':

udev on /dev type devtmpfs (rw,nosuid,relatime,...,mode=755)

Unless your Ubuntu is very old (2012? 2013?), or you've specifically reconfigured your system to use static device nodes, rebooting should fix you right up.


Minimize window with Docky conflicts with Unity

I tried looking up this problem in other forums but none helped. So I came up with my own alternative method.

1) Change Unity Launcher's position to bottom

That can be done by running the following command in terminal

gsettings set com.canonical.Unity.Launcher launcher-position Bottom

2) Make sure auto-hide is enabled for the unity launcher and set its sensitivity to the lowest

(http://i.imgur.com/snzNQrA.png)

3)Press super key and add random apps to the unity launcher until it line ups with the docky placement.

(http://i.imgur.com/QbJc7Fu.png)

And now it should work :)

Note: If you open an app that you used as a random app in step 3, it may not minimize perfectly to docky


The application compiz has closed unexpectedly

This is a known bug in 12.10 but it may be exacerbated by the graphics sub-system on your motherboard, assuming you have a motherboard with integrated graphics from the chipset's north bridge.

It appears that the error is caused by some sort of a disconnect between Unity and certain graphics hardware. A great many people are running into this bug.

The short answer is that you need to go back to 12.04. When I gave up on 12.10 and went back to 12.04 I no longer got this error. Someone in another thread had suggested that using 2D graphics in 12.04 would fix the compiz problem but I had no issues with 3D in 12.04, in fact 2D didn't work properly.

What made no difference:

Upping the shared graphics memory: Still got the error in 12.10 but not 12.04.
Using 2D in 12.04: Actually didn't work at all, graphics was all screwy.

This error happens only with certain graphics cards.


According to official documentation for pre-packaged SUMO the following setting is correct:

export SUMO_HOME=/usr/share/sumo

If it works, then you can add it to ~/.bashrc or ~/.profile.

Please note, that examples are located in /usr/share/doc/sumo-doc and available from sumo-doc package.

You can start sumo-gui with simple hello network /usr/share/doc/sumo-doc/tutorial/hello/data/hello.netccfg .


Stop apt upgrade from replacing .desktop file

One can put replacement desktop files in /home/[username]/.local/share/applications/. They override the ones in /usr/share/applications/ and aren't touched by updates.

(Thanks to AlexP for letting me know that this works in Ubuntu as well as Lubuntu)


#!/bin/bash

printf "Type an integer number: " && read NUM
if [ $NUM -gt 0 ]
then
   while [ $NUM -ge 0 ]
   do
      if [ -f /usr/bin/banner ]
      then
         /usr/bin/banner "$NUM"
      else
         echo $NUM
      fi
         NUM=$(($NUM-1))
         sleep 2
   done
fi

output:

:~$ ./countdown.sh
Type an integer number: 10
10
9
8
7
6
5
4
3
2
1
0

explanation:
⠀1. line 3 prompts the user to input an integer number and reads it into the variable NUM.
⠀2. Changed the -gt in line 6 to -ge so that it counts down to zero.
⠀3. The output is displayed in banner format if sysvbanner is installed or else as text if it isn't.


Login loop after activate proprietary controllers

Finally I managed to boot my system normally (but without nvidia drivers). I think all the credit should be given to here, but it was hard to me to figure out how to do some things. I'll try to give some important details.
The steps I took are:

Enter recovery mode or 'BOOT into GRUB'

I only have Ubuntu on my install, so no GRUB menu appears on booting. Instead had to press only once 'esc' key, right after the bios logo dissapeared (prior to 16.04 the key has to be left 'shift')

At the begining, as AndroidDev suggested I dissabled secure boot in the BIOS, but later I enabled it again and could enter in recovery mode without any problem, so I would say it has nothing to do.

Once I entered in the GRUB menu, was easy to boot in recovery mode, just have to look around until you see the option that explicits 'recovery mode' (I had several, I suposes each of them references one version of the kernel, so I booted with the highest (latest).

Uninstall nvidia drivers

I then choose the root console and issued

sudo apt-get purge nvidia-*

but finally it didn't do anything, because filesystem was readonly.
So first I had to run fsck, from the previous menu (not from console).
After that, I rerun the purge command.

Deleting .Xauthority

Somewhere in the process deleted /home//.Xauthority with sudo rm /home/<user>/.Xauthority

I'm sure only this didn't do the trick, but is something more to try.

Installing the proprietary drivers

I tried once again to install the nvidia drivers, but this time from the terminal... as soon as drivers were installed and restarted, I got stucked in the same login loop ... so had to purge the drivers again.


How to autostart gui application cross desktop?

Put your application's .desktop file in ~/.config/autostart.


What do I have to read to understand the manual and help documentation?

It would be way better if you have stated what problem you have tried to solve and failed using official ubuntu documentation.
Many pages are about completely unrelated topics which means they have to use different formatting and have to be read differently.
Few hints:

if there's a word you don't understand do not lookup the dictionary or google translate, search the phrase with a context so you know the word actually means that word and is not a code name for a project (like "twig" which is a templating system)
do not try to read the whole documentation, but rather search for a specific problem.
the documentation is big. So do not assume it is always up to date (is a problem for any open source project).
Try to read software manuals if the Ubuntu manuals fails to answer your question. Use search engine or man packagename in Ubuntu terminal.
for any documentation, read about formatting software it is using, so you know when a text is a quote and when it's just a note. (For Ubuntu it is here: https://help.ubuntu.com/community/WikiGuide )
if any of the above fails, there's askubuntu site when you should ask about your issue
remember to create submissions to the official documentation if you see it should be updated and you know how