Backing up files from specific folders in rsync

You can use --include and --exclude options or for a backup process you may want to use --include-from so you can list the folders you want to back up in a file.

For example your file may be called includes.txt and save in your home directory.
It would contain

  inc1/
  inc2/

And the rsync command to back up folders inc1 and inc2 in your home directory would be

rsync $HOME --include-from=~/includes.txt /home/backup/

rsync is very flexible, you are best off consulting the man page first and if you get stuck asking a more specific question.


After installing mysql-server, and doing $mysql, mysql won't start. Mysqld.sock missing

By default MySQL seems to only listen on a TCP socket, rather than a unix domain socket.

Your client is trying to connect to the server over the (faster) domain socket.

You need to enable the unix socket like so:

Edit the file:

/etc/mysql/my.cnf

Uncomment the line:

socket          = /var/run/mysqld/mysqld.sock

Then run:

service mysql restart


Wacom Bamboo crashes gnome-shell on Ubuntu 20.04 LTS on tablet button press, proximity

After few days, I found the workaround. The facts are as follows:

The bug lies in x11 backend, which somehow does not properly handle wacom tablet events
This crashes gnome-shell
The bug has been reported, but it seems there is no activity aimed to fix it

The workaround is simply to change display backend from x11 to Wayland. As soon as I did that, the crashes stopped. Be aware though that this may bring other issues, as Wayland is apparently still not a perfect replacement.
Exact methods how to replace x11 with Wayland in Ubuntu vary, so it is best to find a tutorial that works for you. At the end, the final check whether you are using Wayland or x11 is to print out the following variable:
echo $XDG_SESSION_TYPE


Firefox 33 does not display specified fonts

Same problem here! You can use a quick but dirty fix... just prevent firefox using "other" fonts.

Preferences, Content, Advanced, and finally uncheck Allow pages bla bla bla...
(sorry, I don't speak english and have firefox spanish version, but I uploaded an screenshot)


Why does my systemd service shut down immediately after running?

Are you still having this issue? This is more of a comment than an answer, but I apparently don't have enough points or whatever to comment...

I'm having a somewhat related issue on 18.04. Are you on 16.04?

I notice that you have an error in your After= section. should be:

After=network.target auditd.service

Not sure you really need the auditd.service there, but I think it should be ok. Also, you have:

type=Simple

which I believe needs to be:

Type=simple

The ExecStart line may also be having a problem with the equals sign (try deleting the preceding space), but I'm not sure how systemd handles the spaces, so that may be fine.

Lastly, I think you may want this to be Type=forking, since you are calling a child process in screen that will not exit upon completion.

Edit:

I also just realized that you're not using absolute paths in your script (i.e. /usr/bin/program instead of just program). Try that too.

I also would like to throw in a suggestion to use tmux instead of screen. In my experience screen is not very robust and often crashes, and tmux is a much better implementation of the same service. The commands are different though, so read up on those if you do decide to try it.


If you right click on your VM in the Vbox manager and go to settings (1st option on the menu), you can confirm your I/O APIC setting (system->motherboard tab) and network device (in network in the advanced (click to open) section).


Ctrl+Alt+T brings up Trash folder, not a Terminal?

I found it to be compiz doing the things - I did some customization and at first I wanted ctrl+alt to bring up my launcher - but setting this in compiz makes ctrl+alt+t bring up trash instead of terminal, I bound my commands otherwise and worked around the issue, but I'll leave this post open for future people with the same issue. Or maybe to get the problem solved, or at least an explanation to why it behaves at it does!
Compiz seems buggy anyhow - lot of CPU usage etc. so I guess there's a good chance this is some compiz bug too.


Retrieving files from unbootable Ubuntu drive

Step 1:  Boot from live media (CD/DVD/USB)

Step 2: mount the partitions that contain the files you need (NTFS if they are from Windows 8)
See this and try to apply the solutions there for Windows 8

Then if you have permissions problems accessing the files open a terminal and issue the command

gksu nautilus which will open the file browser with administrative rights (AKA root access) allowing you to copy off the files as needed.


convert (sed or awk, or anything) file containing the following:

AWK you can do using variables like below.

awk -F ':' -v q='"' '{print q $1 q " "  q $2 q}' example1.txt

-F Defines the field separator. That is how it divides two columns into $1 and $2.

-v Helps us to define a variable which is q. q contains the double quote.

" " Extra space here gives space between prints.

Printing the first field:

$ awk -F ':' '{print  $1}' example1.txt
1.2.3.4
172.16.1.2
192.168.5.4
192.168.10.1

Printing the second column

$ awk -F ':' '{print  $1  $2}' example1.txt
1.2.3.421
172.16.1.280
192.168.5.4443
192.168.10.17007

Adding the space in between.

$ awk -F ':' '{print  $1  " " $2}' example1.txt
1.2.3.4 21
172.16.1.2 80
192.168.5.4 443
192.168.10.1 7007

Adding double-quotes.

$ awk -F ':' -v q='"' '{print q $1 q " "  q $2 q}' example1.txt
"1.2.3.4" "21"
"172.16.1.2" "80"
"192.168.5.4" "443"
"192.168.10.1" "7007"

Above command will only print it. If you want to save it to a file you can run below command.

$ awk -F ':' -v q='"' '{print q $1 q " "  q $2 q}' example1.txt > example2.txt
$ cat example2.txt
"1.2.3.4" "21"
"172.16.1.2" "80"
"192.168.5.4" "443"
"192.168.10.1" "7007"

Moreover, below command can give you the same result too.

$ awk -F':' '{print "\""$1"\""" ""\""$2"\""}' example1.txt
"1.2.3.4" "21"
"172.16.1.2" "80"
"192.168.5.4" "443"
"192.168.10.1" "7007"


GRUB doesn't boot Windows after the Fall update, boots into itself instead

The Windows boot loader file, which is normally EFI/Windows/Boot/bootmgfw.efi, must exist on the ESP for Windows to boot. You say you replaced this file with a copy of grubx64.efi, but you don't say what you did with the original file. If you overwrote it, then Windows can't boot unless/until you restore the original file. (You can restore the file to another name, as described shortly.) If you've got a backup, you can restore it from that. If not, then I suggest you ask on a Windows forum about restoring the original file. You can then start over, being more careful with that original file.

If you renamed the original file, you should be able to edit GRUB's configuration to launch the file using its new name. The best way to do this, if you stick with GRUB, is to edit /etc/grub.d/40_custom to include something like this:

menuentry "Windows" {
    insmod part_gpt
    insmod chain
    set root='(hd0,gpt1)'
    chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}

You must change the partition ID [(hd0,gpt1) -- that is, the first partition (gpt1) on the first hard disk (hd0)] in this example to match your ESP. You must also change the boot loader filename, which this example shows as the default filename, which of course you've changed.

After creating or editing /etc/grub/40_custom, you must type sudo update-grub. This transfers these changes, along with other GRUB settings, to /boot/grub/grub.cfg. (You could edit that file directly, but then your edits will be wiped out whenever GRUB updates its configuration, such as after an automatic kernel update.)


DisplayPorts in ThinkPad USB-C dock are not detected

I find this solution for with Lenovo T480s, Ubuntu 19.04 and dockstation Thinkpad 135 W.

As a root user create a file 20-displaylink.conf under:

/usr/share/X11/xorg.conf.d/

with the following content:

Section "Device"
  Identifier "DisplayLink"
  Driver "modesetting"
  Option "PageFlip" "false"
EndSection

Steps to do it:

To create the file:

cd /usr/share/X11/xorg.conf.d/

touch 20-displaylink.conf

sudo nano 20-displaylink.conf

paste the content

Section "Device"
Identifier "DisplayLink"
Driver "modesetting"
Option "PageFlip" "false"
EndSection

then

control + O

to save

then

control + x

to exit nano.

Then reboot to be effective.

Keep using "modesetting" driver, and disabling page flipping is necessary.

Source:
https://support.displaylink.com/knowledgebase/articles/1181623-displaylink-ubuntu-driver-after-recent-x-upgrades

Displayport ubuntu troubleshooting page
https://support.displaylink.com/knowledgebase/topics/103927-troubleshooting-ubuntu

P.S.: I am using IO adapters from DVI (monitor) to dport (dock).


Ubuntu bq Aquaris 3g always showing roaming is on

Can you report a bug about that on https://bugs.launchpad.net/ubuntu/+source/indicator-network/+filebug ?


usb-modeswitch
We can try if a reset of our USB device helps resurrecting it. We first need to find out the vendor ID, and the product ID easiest by
lsusb

This will give information e.g. like follows:
Bus 003 Device 002: ID 04f9:0224 Brother Industries, Ltd

In this example the vendor ID is 04f9, product ID is 0224 (right, its my printer).
To reset the device we may then issue
sudo usb_modeswitch -R -v <vendor ID> -p <product ID>

For more options read the manpage or the project homepage.


Does LibreOffice have an "Outline View" similar to Microsoft 2010?

LibreOffice Writer does not have any feature that is exactly like the outline view in MS Office 2010 (only Impress has that), but you can still use the Navigator, which is much more useful in my opinion.

To open it, just go to View>Navigator in the menu or press F5.

When you first open the Navigator it will be a floating Window.

If you drag the window to one side of the LibreOffice parent window, it will offer to dock the floating Navigator window.

To make it float again if it's docked, hold ctrl and double click on the Navigator (in any non-button area), and it will pop out again.


Swap Left Alt with Left Win in Saucy (13.10)

The layout options can be changed in gnome-tweak-tool, in the "Typing" section. The setting to configure "Alt/Win key behavior" is the last one in the list.


How to detect & configure a upnp USB to serial adaptor for RXTX development in Java

I think a simple answer is:

dmesg | grep tty

to identify the device.

At this point I was able to use minicom to communicate with my external devices on /dev/ttyUSB0.


how to remove ubuntu compleletly from my laptop and install windows?

You remove an OS by installing another one over it.

If you want to install Ubuntu during the installation process you get asked where to install Ubuntu and you can then remove partitions and recreate them for that installation. This removing also removes the currently present operating system.

Windows has a similar method (but how that works has no relation to Ubuntu).


Xubuntu 14.04 install fails on Dell Inspiron B130 with Broadcom 4318

Why do you need internet connection to install Xubuntu or any Linux distro?
I always install Linux OSes without internet and then I a run total system update. These two methods are same actually.


You have NCQ errors.
Jun 27 12:49:22 topic1 kernel: [37586.367036] ata1.00: failed command: READ FPDMA QUEUED
Jun 27 12:49:22 topic1 kernel: [37586.367056] ata1.00: cmd 60/08:c8:f0:97:eb/00:00:12:00:00/40 tag 25 ncq dma 4096 in
Jun 27 12:49:22 topic1 kernel: [37586.367056]          res 41/40:00:f7:97:eb/00:00:12:00:00/40 Emask 0x409 (media error) <F>
Jun 27 12:49:22 topic1 kernel: [37586.367067] ata1.00: status: { DRDY ERR }
Jun 27 12:49:22 topic1 kernel: [37586.367073] ata1.00: error: { UNC }

Native Command Queuing (NCQ) is an extension of the Serial ATA protocol allowing hard disk drives to internally optimize the order in which received read and write commands are executed.
First we fsck...

boot to a Ubuntu Live DVD/USB in “Try Ubuntu” mode
open a terminal window by pressing Ctrl+Alt+T
type sudo fdisk -l
identify the /dev/sdXX device name for your "Linux Filesystem"
type sudo fsck -f /dev/sdXX, replacing sdXX with the number you found earlier
repeat the fsck command if there were errors
type reboot

Then we patch NCQ...
Edit sudo -H gedit /etc/default/grub and change the following line to include this extra parameter. Then do sudo update-grub to write the changes to disk. Reboot. Monitor hangs, and watch /var/log/syslog or dmesg for continued error messages.
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash libata.force=noncq"

Then we bad block...
Note: do NOT abort a bad block scan!
Note: do NOT bad block a SSD
Note: backup your important files FIRST!
Note: this will take many hours
Note: you may have a pending HDD failure
Boot to a Ubuntu Live DVD/USB in “Try Ubuntu” mode.
In terminal...
sudo fdisk -l # identify all "Linux Filesystem" partitions
sudo e2fsck -fcky /dev/sdXX # read-only test
or
sudo e2fsck -fccky /dev/sdXX # non-destructive read/write test (recommended)
The -k is important, because it saves the previous bad block table, and adds any new bad blocks to that table. Without -k, you loose all of the prior bad block information.
The -fccky parameter...
   -f    Force checking even if the file system seems clean.

   -c    This option causes e2fsck to use badblocks(8) program to do
         a read-only scan of the device in order to find any bad blocks.
         If any bad blocks are found, they are added to the bad block
         inode to prevent them from being allocated to a file or direc‐
         tory.  If this option is specified twice, then the bad block scan
         will be done using a non-destructive read-write test.

   -k    When combined with the -c option, any existing bad blocks in the
         bad blocks list are preserved, and any new bad blocks found by
         running badblocks(8) will be added to the existing bad blocks
         list.

   -y    Assume an answer of `yes' to all questions; allows e2fsck to be
         used non-interactively. This option may not be specified at the
         same time as the -n or -p options.

Update #1:
After reviewing the SMART Data, it looks like your HDD is toast. If you look at image #1, overall assessment, you'll see it says 2840 bad sectors. That's not good. Also the read error rate and the relocated sector count and current pending sector count are all real bad.
Boot to a Ubuntu Live DVD/USB and backup whatever files you can to an external HDD, and then replace the drive.


I solved my problem through following steps:

go to terminal
type sudo pppoeconf
it will ask some question, press yes
when you want to start internet just type  sudo pon dsl-provider  to connect to internet
type this to turn it off  sudo poff


The simplest solution I found was to simply call gnome-terminal as a startup program which will then execute it's .bashrc script.


"Network configuration timed out: please verify settings"

Dell PowerEdgee R610 may require additional, custom firmware. The installation should complain about the missing firmware with relevant messages, that may tell you what you're looking for.

If such messages does not show up, then you may want to try to use lshw to find your service tag.

sudo lshw | less

You should see something like:

product: PowerEdge R610
    vendor: Dell Inc.
    serial: XXXXXXX

Your serial will be there. You can copy it and paste at https://www.dell.com/support/ to find proper drivers.

You will not find Ubuntu drivers on Dell site probably, but you're looking for .bin files reated to Network devies.


Glitching and delayed output when recording PulseAudio loopback

Rather than creating a loopack sink with pulseaudio-module-loopback in most sound card harwares we have the possibility to merge a source with a sink by using a duplex audio profile.

To switch to a duplex profile we can run pavucontrol  to select the "Analog Stereo Duplex" profile for our soundcard in the "Configuration" tab.

We can also change sink output profile from the command line with <index> and possible <profiles> of cards listed with

pacmd list-cards

To change the card profile we may then issue

pacmd set-card-profile <index> <profile>

To combine output sinks we may run paprefs  which give us an option for a "Simultaneous output device":

This combined device can also be loaded from the command line by loading the module module-combine-sink.


I figured out my problem. After looking at the error, I realised the problem was that mkmf was not installed. To fix this, I ran the command, sudo apt-get install ruby1.9.1-dev. After that, everything worked like a charm.


How can I get the Unity interface to work on my netbook?

If you can't get unity to work on your netbook, try to install package "ubuntu-desktop" (sudo apt-get install ubuntu-desktop) and login to Ubuntu Desktop instead of Ubuntu Netbook. But If you really want a unity interface you have to wait for Ubuntu 11.04 to be released, because Unity in Ubuntu 10.10 use mutter which doesn't support a lot of graphic cards.


How do I make the Settings bar always show me the settings instead of the title

You can achieve this in the: System settings --> Appearance --> Behavior Select the option in the window's title bar under the Shows the menus for a window. I believe this is where you get that done...


Not able to mount network drive on ubuntu

Add the share name of the drive after the URL like

  sudo mount -t cifs //192.168.1.1/share-name /mount-point -o [options]


How can I pause/resume download in youtube video?

You can do that with -c option. For instance, if you previously started a download using:

youtube-dl <some_youtube_URL>

You may, if it was stopped or interrupted, resume that download later with:

youtube-dl -c <some_youtube_URL>


Unable to resize boot partition kubuntu 16.04

You need to first shrink LVM logical volumes and only then you can shrink LVM physical volume.

For that you need at least KDE Partition Manager 3.0.x (available in Kububtu 17.04 or various other Live CDs). No  version of gparted can resize LVM logical volumes.

P.S. 12 MiB free space is exactly the space not taken up by LVM logical volumes, it is not the free space inside LVM logical partitions.


Getting errors trying to mount a share with windows

This method works just fine in 20.04 LTS.  My answer below is written from 20.04.

First off, the smb: before the rest of the server name is not needed.  When mounting a samba mount on another computer you need to make sure that the mount has the proper permissions on the server.  Check on the server the /etc/samba/smb.conf file for the mount and the permissions.
Here is what my share looks like in my smb.conf file:
[storage]
   path = "/media/storage"
   directory mask = 0775
   create mask = 0775
   writeable = yes
   guest ok = yes
   admin users = terrance

Then to mount that share from the server to the local computer you use the following format of the command to mount it.
sudo mount -t cifs -o username=<username>,password=<password> //ServernameOrIP/sharename /path/to/local/mount

Make sure that the username and password that you are using are the same credentials you use to access the samba server.  The reason for ServernameOrIP is that sometimes you don't have the server name in DNS or specified in the /etc/hosts of the local system.
Here's an example of how I mount it on my system from my server:
sudo mount -t cifs -o username=terrance,password=sambapassword //10.0.0.220/storage /cifs

Hope this helps!


Screen Tearing while scrolling chrome xubuntu

This may be caused by Chrome falling back to software rendering which is not vsync'ed.

Check chrome://gpu/ and see if hardware acceleration is enabled (shows green for all features). If it's not, enable the chrome://flags/#ignore-gpu-blacklist flag. Check chrome://gpu/ again to see if hardware acceleration is enabled now.


How to install python3.6 (dev) on Ubuntu 16.04 without colliding with python3.5 (dev)

virtualenv fixed the problem, but there were quite few bumps along the way.  Here's what I did:

Uninstalled cython3: (apt-get remove cython3)
Installed Py3.6 and dev: (apt-get install python3.6 python3.6-dev)
Installed VirtualEnv: (python3.6 -m pip install virtualenv)
Launched VirtualEnv: (source $HOME/python3.6/bin/activate)
Built and installed sip-4.19.13 and PyQt5_gpl-5.11.3 from source.
Installed python-trezor and electrum from source.
Launched electrum from VirtualEnv

Most of my problems were related to python3-* distribution packages, and the fact that wheels for 32bit linux are getting more and more rare.  This is what predicated the need for me to build PyQt5 and sip.  I had them in a distribution package, but those packages always landed into the 3.5 tree, since 3.6 isn't officially supported on Ubuntu 16.04 LTS yet.

I've included the ubuntu16-electrum-git-build.sh script if anyone is interested.


Resources on setting up my local network

Sorry everyone, it was my fault. There was a typo in the /etc/hosts file and I did not see it. Once I fixed it, the problem went away! I think if the rlogin had failed, I would have caught it faster.


Installing Broadcom driver failed to install Acer AspireOne

I also had the same issue with ubuntu 11.10, 12.10.Problem was that Wifi was not working on bcm43142 sony-vaio-fit-15e. BUT when I tried to install ubuntu 13.10 , I checked the option of " Install this third party software " and it worked for me !!

See step 2 in this link: http://www.ubuntu.com/download/desktop/install-desktop-latest


Warning popping up in terminal window when Gedit is opened

I had the same problem with running the geany editor. I had to install the full package:

sudo apt install adwaita-icon-theme-full


How to set gtk-style and background in GDM3

This has something to do with Xauth.... Actually running

xhost +SI:localuser:gdm

as root (or as admin account) let gdm accept gsettings set commands

Actually the solution for setting gtk-theme or background is

as root (or admin account) xhost +SI:localuser:gdm
as root (or admin account) sudo su gdm -s /bin/bash
as gdm execute in sequence

gsettings set org.gnome.desktop.interface gtk-theme GTK3_THEME

gsettings set org.gnome.desktop.interface icon-theme ICON_THEME

gsettings set org.gnome.desktop.interface cursor-theme CURSOR_THEME

gsettings set org.gnome.desktop.background picture-uri 'file://FILE'

for example:

gsettings set org.gnome.desktop.background picture-uri 'file:////usr/share/backgrounds/JardinPolar_by_CarmenGloria_Gonzalez.jpg'

Another important thing to check is that gdm has rw permissions to its home folder, i.e. /var/lib/gdm

!!!IMPORTANT!!!
exit to exit from being logged in as gdm followed by

xhost -SI:localuser:gdm as root or admin user after setting above parameters to deny access to gdm (otherwise it may create problems)


Mouse shortcuts get confused with keyboard keys in Kubuntu

I would simply use xbindkeys , it can bind nearly anything to a key/button press ( if you combine it with xautomation can make mouse button clicks from keyboard for example).

If you feel uncomfortable with config files maybe you can try using xbindkeys-config (GUI).

Also if your mouse buttons are not recognized, you probably need to use the evdev driver. Check this Ubuntu wiki page for more info.

Hope it helps.


Try opening a Terminal window and run these commands:

sudo apt-get remove --purge vlc
sudo apt-get install vlc


Without having swap partition how to hibernate using only "SWAP FILE"

Try installing USWSUSP package.... I hope this will work....


How to integrate Pidgin with Ubuntu "Online Accounts" (14.04)

Currently there is no way to do so without or with plug-ins. Pidgin doesn't communicate with any external configuration and authentication data providers and uses its own database only.


Download the zip-folder from the github-page by clicking on the green button (Code) and choose download as zip-folder.
Navigate to the folder which contains the zip-folder, extract it.
In the terminal direct the command line into the extracted folder location (which ends with /qbirthday-master) with

cd >extracted folder's location<

In older Ubuntu versions, python 2.7 is the default for pip, you have to install pip3:

sudo apt-get install python3-pip

And then install Qbirthday (being still in the folder's location):

pip3 install qbirthday

I had to restart the computer to be able to use Qbirthday from the command line.
If you want to see the indicator in the panel, you may have to install or activate the GNOME extension gnome-shell-extension-appindicator:

One click on the indicator icon: Reveal indicator menus upon.
Double clicking an icon will activate the application window.

You have to probably create a desktop-file (see other answer) with the content to be able to use it from a launcher:
[Desktop Entry]
Name=QBirthday
Exec=qbirthday
Type=Application
Categories=Office;
Icon=qbirthday
_Comment=Birthday reminder
Name[en_GB]=QBirthday

And place it in the folder .local/share/applications, make it executable.
Adding it to the Startup Applications is also handy, just qbirthday as new entry.
PS: Two issues were found, maybe somebody can help to solve them:

Pop-up window from panel indicator/icon too much to the left, not fully visible, see also launchpad bug report.
Workaround: Reduce the numbers of displayed birthdays in the preferences until the window is not anymore too tall for the screen and the window is fully visible.
Double click needed to open birthday list
Maybe the Qbirthday app can be forked to be a Gnome extension.
Update 2021 Jan: In Ubuntu 20.04 no double click needed anymore, one left click opens the list, right click opens the menu.


CPU Fan not working on acer 4755G i3 ubuntu 12.10

i used to have this problem on my acer aspire 5720z

i could get the fan to work by logging into the computer then putting it to sleep then turn it on and unlock it and the fan would turn on they fixed the problem a couple weeks later in an update

try this

if it doesnt work try to re-install windows on it (if you have a disk) if you don't then try the recovery oem partition (you may need to look up the button you press while the computer turns on)


This is a well know issue, you can read here in the topic Ralink Card

Indicates trouble connecting to (some) wireless-n networks out of the box
connection instability
doesn't connect to 802.1x network

Drivers

Some threads have reported success using newer or older drivers from the ralink website (as of writing at 2.4.0.0 compared to the 1.8.0.0 version in the Ubuntu/Debian repository).

A method of installing a new driver is here.


In gparted you need to create a partition of atleast 512 MB and flag it as boot, esp. XFS file system for the boot partition is preferred.

Also you need to create a linux-swap partition and trun swap on. Ideally it is twice the size of your physical RAM.

Further partitions you can create in either gparted or during installation. the second method makes thing easier. if you prefer creating partitions in gparted, then also it is fine. You have to go to Something else --> Select an already creaated partition, click change and give mount point.

Else you can directly go to something else option without first making further partitions in gparted. Change the 512 MB partition and give it mount point /boot. Leave the swap partition as it is. These two parrtitions are essential. The other partitions are optional. The file format of the other partitions should be either ext4 or btrfs.

At this stage you can either create a single partition using the entire remaining disk space and give it the mount point / make the boot loader device /dev/sda (assuming sda is your primary disk) and continue with installation or make further partitions. If you chose to make further partitions then do the following:

/opt partition is meant for installing third party  directly from internet and not via repoitory. Create a partition of aabout 50 GB and give it mount point /opt

/var partition is meant for installing system files. Make a partition of about 80 GB and give it mount point /var

/root partition is meant for storing personal files for root user. Create a partition of about 50 GB and give it mount point /

/home partition is meant for storing your personal files. I think creating these many partitions are enough. Create this partition using remaining unallocated space and give it mount point /home

Now device for installation of boot loader is by default /dev/sda. If not make it.

Then proceed with installation as usual.


How do I override a dll (without using the winecfg gui) in WINE?

Firstly, try using winetricks on the command-line to revert just your winecfg dll settings back to defaults with:

winetricks alldlls=default

If this doesn't solve the problem, you can use WINEDLLOVERRIDES; it is an environmental variable that can be used with wine to specify the dll overrides you want (or don't require). As stated on the manpage, WINEDLLOVERRIDES

  Defines  the  override  type  and load order of dlls used in the loading process for any dll. There are currently two types of libraries that can be  loaded  into  a  process'  address  space:  native  windows  dlls
                (native),  wine  internal dlls (builtin).  The type may be abbreviated with the first letter of the type (n,
                b).  The library may also be disabled (''). Each sequence of orders must be separated by commas.

You can either export the environmental variable, or use env and specify the variable to be used with the wine command (if you don't specify a WINEPREFIX it will use the default):

env WINEDLLOVERRIDES="rpcrt4=b,n" wine exe_to_run

This will specify that the builtin version should be tried, then the native version. If you instead use "rpcrt4=", then that dll will remain disabled and wine will not run at all.

If you want to export the value to the shell for that session, you can run

export WINEDLLOVERRIDES="rpcrt4=b,n"

This will not affect the settings in winecfg, and they will remain the same. This environmental variable, and many other useful ones available with wine are only temporary and merely affect the shell in which they are used, either by exporting the variable or using env each time to state the variable and then run wine with that variable as it launches your program. You could also specify environmental variables in a bash script that launched your wine programs.

For more information, please see man wine, the Ubuntu manpages online, and the useful wine FAQ.


Can I share a precompiled binary from an Ubuntu VM to a remote server

Solution: use Docker to build online and then download image and execute on VMs


Install ubuntu server edition into a chroot

Debootstrap installs a very, very basic system, only the absolutely essential packages. There is virtually nothing to be removed and is certainely not a full installation of Ubuntu. So just install all the software you want to use there.


I'm going to assume missing details. You did not state what steps you took to delete the legacy USB.

I assume you have a live installation DVD which has a little option of a look at Linux which is there so a Windows user will fall in love and switch.

It can also be used as a rescue disc. (I have rescue discs but I haven't used one.)  I don't mean reinstall.  You have not stated how the USB legacy was disabled.  Again, I'm going to guess.  It may be a file in /etc/modprobe.d/ with a .conf extension.  Look thru those and see if you can find the one the locks out the USB.

Then run update-initramfs -u and reboot.


Black spaces around windows and control panels - Ubuntu 14.04 - Unity/Compiz/Metacity

I have the same problems after add xorg-edgers and upgrade all.
I fixed it by follow command:

sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core xserver-xorg-video-nouveau

Hope that will solve you problems.


Need help for installing Ubuntu with Windows 7

When installing you will be asked what what you want to do with tree option, erase everything and install ubuntu, install ubuntu on you 2nd partition, or do something else.
In principle the 2nd should be good for you, but if you have doughs you can do something else and define yourself the partitions.

For this you need to create in that empty space a swap area, about the size of your memory, and a mount point for "/" with ext4 format. You can do more but this is the bare necessary.

Also, because you are installing from a usb, don't forget to change the boot to your hdd. I believe that by default it goes to your usb.

I hope this helps, and enjoy ubuntu ;).


VSCode Live Share, Cannot log in with GitHub, "user code" command is missing

Well, that's irritating. I had an instance of VScode open in another workspace. The answer is (yet again) close all instances of vscode, and when you restart, the "user code" will be available in your Command Palette.


preseed/late_command ubuntu server 15.04

My guess would be that the url you're trying to retrieve is getting redirected to https:// and at least one of the certs in the chain isn't trusted in the installation environment. The installation environment is different from the target environment; the installation environment is the temporary kernel and initrd you point to during boot, and the target environment is that kernel and file systems that actually get installed.

At the point at which the preseed/late_command is ran, the target environment is mounted at /mnt/target and to run commands there, you'll need to chroot into it via chroot /mnt/target. Once you've done that, all commands you run will effect the target environment, not the installation environment. Now the kicker is that debconf provides you with the in-target command which chroots to the target, runs the given command, then exits back to the installation environment. Thus:

d-i preseed/late_command string apt-get install -y htop

tries to install htop in the installation environment (not the "Finished" target environment), while:

d-i preseed/late_command string in-target apt-get install -y htop

tries to install htop in the finished target environment.

So now that we're installing to the right place, it might also be that the cert still isn't trusted, in which case you can either fix the trust issue with some more in-target commands, then do the wget or throw caution to the end and disable wget's trust checking with something like this:

d-i preseed/late_command string in-target wget -O /tmp/post-install.sh "https://foo.bar/postinstall.sh" --no-check-certificate; in-target chmod +x /tmp/post-install.sh; in-target /bin/bash /tmp/post-install.sh;


Ubuntu Software center in Ubuntu 13.04 crashes when opened

Run this command in terminal. It will re-install the software-center and reset your settings.

sudo apt-get install --reinstall software-center

But for reconfigure a program you can use:

sudo dpkg-reconfigure software-center --force


nvidia-settings ImportError: No module named 'dbus'

I had the same problem because I had another python version on my PATH. Removing that path entry to make sure that python points to /usr/bin/python solved the problem.


Stuck on Ubuntu Installation & Trial - Started Dispatch Password Requests

Add intel_idle.max_cstate=1 as a boot parameter.

(This assumes you're trying to install Ubuntu 16.04 and your laptop has an Intel Bay Trail processor.)

Source: A thread on Ubuntu Forums.

I ran into this too installing Ubuntu Server 16.04 on an Intel NUC NUC5CPYH with a quad-core Bay Trail processor. I edited boot parameters by following these instructions and it booted all right after that.


You have to change file settings through the file properties.

Fill the "Allow executing file as program", then double click on binary file to execute.


What mail software allows archiving (rather than deleting) like in Gmail?

Mozilla Thunderbird is one package that will let you archive mail (See: https://support.mozilla.org/en-US/kb/archived-messages).

You can also combine messages from different POP accounts in a global inbox (See: https://support.mozilla.org/en-US/kb/unify-your-pop-email-accounts-global-inbox).


You’ll need to right-click the .xlsx file, and select Properties. Then, go to the “Open With” tab, and select LibreOffice Calc from there. Click the button that says “Set As Default” to always open that file type (.xlsx) with LibreOffice Calc.


Disable sound effect when Adjust volume with hotkeys

Try the following in the command line:

gsettings set org.gnome.desktop.sound event-sounds false


The tutorial you referenced is outdated, it assumes you're on an older version of Ubuntu with Upstart as the init system (init systems control startup applications). Newer versions of Ubuntu use systemd as the init system.

You need to create a new file at /lib/systemd/system/x11vnc.service and put this inside the file:

[Unit]
Description=Start x11vnc at startup.
After=multi-user.target

[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/bryan/.vnc/passwd -rfbport 5900 -shared

[Install]
WantedBy=multi-user.target

After you have created that file you need to enable and reload the service using systemctl by issuing these commands:

sudo systemctl enable x11vnc.service
sudo systemctl daemon-reload

I recommend restarting your system after running those commands.

Reference: http://c-nergy.be/blog/?p=8984

Note: to anyone else having the same issue and creating this file. Be sure to change the ExecStart line to point to your password, i.e. change /home/bryan/.vnc/passwd to /home/yourusername/.vnc/passwd


I resolved this by turning off tap-to-click in dconf-editor (/org/gnome/desktop/peripherals/touchpad/tap-to-click).

However, although this was already set to false, it was still responding to taps on the touchpad. To resolve this, I followed the instructions from here.

Run:

apt list --installed | grep xserver-xorg-input

look for the following packages:

xserver-xorg-input-libinput  (keep this)
xserver-xorg-input-synaptics (remove this package)

Reboot.


Rather than removing fwupd, just stop/disable the service... to be start/enable at a future date...

systemctl status fwupd

sudo systemctl stop fwupd

sudo systemctl disable fwupd


How can I check the version of libusb-1.0 running on ubuntu 14.04?

You can use

dpkg -l libusb-1.0*

or

apt-cache policy libusb-1.0*


This is very simple to fix.

invoke-rc.d(Invoke an init script) is unable to find the initscript /etc/init.d/modemmanager

invoke-rc.d: unknown initscript,/etc/init.d/modemmanager not found.

Simply touch /etc/init.d/modemmanager To create it.


When you are looking at the CPU% or Load factor you have to divide by the number of CPU Cores x Hyper Threading. So if you have a quad core processor with hyper threading it's in interpreted as 8 CPU's.
If your CPU% shows 200% and it is 8 CPUs then your real CPU usage is 25%.
If your load factor show ".92" and you have 8 CPUs then your real load factor is ".115". In your Conky you would massage your load factor (for 5 minutes, 10 minutes and 15 minutes) by using:
${execpi .001 (awk '{printf "%s/", $1}' /proc/loadavg; grep -c processor /proc/cpuinfo;) | bc -l | cut -c1-4} ${execpi .001 (awk '{printf "%s/", $2}' /proc/loadavg; grep -c processor /proc/cpuinfo;) | bc -l | cut -c1-4} ${execpi .001 (awk '{printf "%s/", $3}' /proc/loadavg; grep -c processor /proc/cpuinfo;) | bc -l | cut -c1-4}

The Real CPU percentage can never go over 100% and the Real load factor can never go over 1 so you have to mentally do the math dividing by the number of CPUs or use Conky for accurate results instead of Top or whatever program you were using.

Conky vs top screen example
Comparing top CPU% to Conky's CPU%:

Firefox is consuming the most CPU%. In top it is listed at 27.8% in Conky it is listed at 3.37%. Taking Conky's percentage and multiplying by 8 (the number of CPUs) yields 27%.


Black screen after rebooting following upgrade to 18.10

Do you happen to have nvidia graphic card on that computer?
If you so it might be the cause of your problems.

You can try by reinstall it from command line. For me it was this, but you might have an other version.

sudo apt remove nvidia-396
sudo apt install -f nvidia-396

An other cause might be an incomplete update.


how do you change the OS to ubuntu on a MacBook

The Installer will allow you to Format the disk if it can be detected. If you already have a backup of your Mac then you can try to install from the Live instance. Be sure that your processor matches, and perhaps use an older version of Ubuntu since your device might not be supported.
If it turns out that it doesn't work then Fedora might work better. Ubuntu has stricter packaging requirements, whereas you can take an old Fedora image that is compatible or LTS and upgrade with backports. Ubuntu is the most popular and has the majority of desktops, but Fedora is no hassle to the point that Linus uses it.


How to get the head field of ps command?

You can try to use -e flag to grep, to ask it to find extra pattern in the first row, like this:

ps -el | grep -e systemd -e "TIME CMD"


My computer like Disk Usage Statistics bar in Ubuntu

What you're looking for is Disk Usage Analyzer

Disk Usage Analyzer comes pre-installed with Ubuntu, and allows you to view detailed breakdowns of your disk usage.

It can be launched by searching for Disk Usage Analyzer from the Dash, or by using the command baobab in the Terminal.


Will UBUNTU work smoothly with 1Gb ram and intel atom dual core processor?

I have a Asus 1005 EEEpc, and since Unity as desktop enviroment it won't work fluid. Best performance I've achived is with Lubuntu (with LXCE) or using Linux Mint too. The problem is properly the desktop enviromenment you use.


I recently had a problem just like yours (I had Windows 8.1). Not showing the "Install alongside Windows" is probably because either you have too many partitions (4) or the disk you're trying to install on is a Dynamic disk (Not MBR), and my case was the latter. Since you say you haven't got all 4 partitions then I'm assuming (although I can't really tell, it would have been much better if you had put some screenshots) that your disk is a dynamic one. To check if that is true:

1) Go into Windows 7

2) Search for "Create and format hard disk partitions" in the start menu and open it

3) After some waiting, the window will open and display all your disks and drives. At the bottom of the window you will see like "Disk 0" (see which one is the SSD drive) and under that it has either written "Dynamic" or "Basic"

4) If the SSD you want to install Ubuntu was Dynamic, proceed:

5) Using a software like AOMEI Partition Manager (Home edition) you can select that disk and convert it to a Basic one without loss of data. (I did that and my Windows still worked. However I had to delete one of my volumes which had normal files in it; I copied them elsewhere).

6) After that, you can now run Ubuntu and you will probably see that option

I hope this helps!


When is there a newer version of Samba 4?

You are on 14.04 or 16.04 (both use 4.3.11). Those 2 will never receive a newer version; they will only get patched (that means it gets updated but the version number will never change) if there is a security issue.

You have at least 2 options to get a newer version:

17.10 uses 4.6.7; 18.04 will use 4.7.3
You can use the samba team nightly to install the newest version.

sudo add-apt-repository ppa:samba-team/ppa
sudo apt-get update

to add the PPA.


Ubuntu Font Family and Mac OS X confusing font name and font

As indicated in the comments, this sounds like a known problem with the Ubuntu Font Family. I would suggest filing a bug on Launchpad against this project so the developers know and can try doing something about it.


If grub menu is not showing up for you when booting from ubuntu drive you can try force it to update as explained in this question:
https://unix.stackexchange.com/questions/49989/let-grub-re-scan-disks/49998
but a short summary is:
run
sudo update-grub

and you should be getting os selection when booting linux.


Is it possible to play imm4-codec videos?

The imm4 codec is a restricted codec - covered by patents, so for some countries you should check if you are covered to run this decoder.

note I've tested this on 11.10

Install the restricted Medibuntu repository:

sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update

Now install mplayer and w32codecs

sudo apt-get install mplayer w32codecs

Now the important part - mplayer is coded to look for the windows DLL VCMIMM4.dll, however, medibuntu installs a lowercase version that mplayer would not recognised out-of-the-box.  Thus to fix this, create a VCMIMM4.dll file in the codecs folder.

sudo ln -s /usr/lib/codecs/vcmimm4.dll /usr/lib/codecs/VCMIMM4.dll

Now play your video - e.g.

mplayer http://samples.mplayerhq.hu/V-codecs/IMM4/200707170736151.avi


After 15.10 -> 16.04, desktop-file-utils can't be configured

I ran into this error, but with a different package name.

First, it looks like you have some partially installed / configured packages in the way. Run dpkg --configure -a to try to resolve those issues. Watch the package names listed if any errors occur. You'll need to remove those and re-install them completely once you're done with your target package.

What helped me was to purge the offending package, clear the cache, and install it again.

    # apt-get purge <partially installed/configured packages>
    # apt-get clean; apt-get update
    # apt-get install <package name(s)>

You can also download the individual package, and install via dpkg -i  check http://packages.ubuntu.com/xenial/

    # wget http://mirrors.kernel.org/ubuntu/pool/main/d/desktop-file-utils/desktop-file-utils_0.22-1ubuntu5_amd64.deb
    # dpkg -i desktop-file-utils_0.22-1ubuntu5_amd64.deb


How to fix 'Dummy Output' (No Sound) problem on Asus E200HA laptop?

There are no audio drivers for this laptop. Apparently someone developed a new kernel and that also is not perfect. Check this out:

https://github.com/Grippentech/Asus-E200HA-Linux-Post-Install-Script


Why do I get redirected to a weird Chinese site for non-existent websites?

This can be caused by a few things:

A DNS server is injecting false responses (try setting your DNS to 8.8.8.8, Google's server)
A proxy at your ISP (that'd be quite weird, almost malicious)
Your router injecting false DNS responses

That's all I can think of now. I would bet it's not caused by any Ubuntu software.

You can check your DNS provider's integrity by typing this into a Terminal:

dig siadfiosjdfosjdfsifjs.co.nz | grep ANSWER

The result should say ANSWER: 0.


Ubuntu 12.10 dual boot windows 7 not working

Idk if this will be helpfull, but the way I set mine up was; I already had Windows 7 and I booted from the Ubuntu disc I burned, Used the "install alongside windows 7" option and partitioned the free space on my HDD for 60 Gigs, just enough to run the system and download some stuff. The mistake I made at first was partitioning part of the HDD that was not allocated as free space. again, idk if thats helpful, but it might be.


How to fix the black gradient on the top bar when windows are maximixed?

After several trail and errors found this code is required to add at the bottom of your Zorions gnome-shell theme file gnome-shell.css..

/* panel color */
#panel.solid {
  background-gradient-direction: vertical;
  background-gradient-start: rgba(255, 255, 255, 0.5);
  background-gradient-end: rgba(255, 255, 255, 0.5);
  text-shadow: none;
}

the rgba color I have got from the text entry /* TOP BAR */ with in the gnome-shell file. You can change what ever color you want..

/* TOP BAR */
#panel {
  background-color: rgba(255, 255, 255, 0.5);
  /* transition from solid to transparent */
  transition-duration: 500ms;
  font-weight: bold;
  height: 2em;
  font-feature-settings: "tnum";
  box-shadow: none; }

My Customizations for windows normal and maximized..


Installling a brother printer in Ubuntu 12.04 (MFCJ6510DW)

The Gdebi package installed should be enabled by default on your system. If not, go to the synaptic package manager and install it. Search for 'gdebi' and mark for installation or reinstallation then complete the process.

Next, since you have downloaded the correct .deb files required IE: LPR driver and cupswrapper driver from HERE it should be straight forward.

Right click on the downloaded file(s) and install using Gdebi. If all the  dependencies are satisfied it will install to the proper location(s).

In your browser you should be able to type localhost:631 and enable the CUPS printer from there. Find printer drivers, add printers and classes from the Administrator tab.


I have remapped super+L but it still locks my screen instead of doing what I want

You probably just need to unset the lock screen shortcut first:

Just click on the right side of the shortcut, and when it says 'New Accelerator', press Backspace to unset it


Edit

After a bit of work, I wrote up a more complete and easier-to-use solution than is found below. You can download the program on GitHub. You'll also need to install the dependencies:

sudo apt install xdotool xprintidle

Original Answer

After Jacob Vlijm pointed me toward a partial solution, I combined a modified version of his script with bits of Caffeine and some of my own code and came up with a replacement for Caffeine.

Instructions

Make sure the necessary packages are installed. Note: caffeine-plus is used only for icons. If you don't care about proper icons, you don't need it.

sudo apt install caffeine-plus xprintidle xdotool

Save the below script somewhere and make it executable.

#!/usr/bin/python3
# coding=utf-8
#
# Copyright © 2016 Scott Severance
# Code mixed in from Caffeine Plus and Jacob Vlijm
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

import argparse
import os
import signal
import time
from subprocess import Popen, check_output, call
import gi
gi.require_version('Gtk', '3.0')
gi.require_version('AppIndicator3', '0.1')
from gi.repository import GObject, Gtk, AppIndicator3

class SleepInhibit(GObject.GObject):

    def __init__(self):
        GObject.GObject.__init__(self)
        self.inhibited = False
        self._add_indicator()
        self.inhibit_proc = None

    def _add_indicator(self):
        self.AppInd = AppIndicator3.Indicator.new("sleep-inhibit-off",
                                                  "sleep-inhibit",
                                                  AppIndicator3.IndicatorCategory.APPLICATION_STATUS)
        self.AppInd.set_status(AppIndicator3.IndicatorStatus.ACTIVE)
        self.AppInd.set_icon ("caffeine-cup-empty")

        self._build_indicator_menu(self.AppInd)

    def _build_indicator_menu(self, indicator):
        menu = Gtk.Menu()

        menu_item = Gtk.MenuItem("Toggle Sleep Inhibition")
        menu.append(menu_item)
        menu_item.connect("activate", self.on_toggle)
        menu_item.show()

        menu_item = Gtk.MenuItem("Quit")
        menu.append(menu_item)
        menu_item.connect("activate", self.on_quit)
        menu_item.show()

        indicator.set_menu(menu)

    def on_toggle(self, menuitem):
        self.inhibited = not self.inhibited
        self.flip_switch()

    def on_quit(self, menuitem):
        if self.inhibit_proc:
            self.kill_inhibit_proc()
        exit(0)

    def _set_icon_disabled(self):
        self.AppInd.set_icon('caffeine-cup-empty')

    def _set_icon_enabled(self):
        self.AppInd.set_icon('caffeine-cup-full')

    def flip_switch(self):
        if self.inhibited:
            self._set_icon_enabled()
            self.inhibit_proc = Popen([__file__, "--mode=inhibit-process"])
        else:
            self.kill_inhibit_proc()
            self._set_icon_disabled()

    def kill_inhibit_proc(self):
        self.inhibit_proc.terminate()
        self.inhibit_proc.wait()
        self.inhibit_proc = None

def inhibit():
    seconds = 120 # number of seconds to start preventing blank screen / suspend
    while True:
        try:
            curr_idle = check_output(["xprintidle"]).decode("utf-8").strip()
            if int(curr_idle) > seconds*1000:
                call(["xdotool", "key", "Control_L"])
            time.sleep(10)
        except FileNotFoundError:
            exit('ERROR: This program depends on xprintidle and xdotool being installed.')
        except KeyboardInterrupt:
            exit(0)

def parse_args():
    parser = argparse.ArgumentParser(description='''Indicator to prevent
        computer from sleeping. It depends on the commands xprintidle and
        xdotool being properly installed on your system. If they aren't
        installed already, please install them. Also, the icons are taken from
        caffeine-plus, so if it isn't installed, you will probably see a broken
        icon.''')
    mode = '''The mode can be either indicator (default) or inhibit-process. If
        mode is indicator, then an indicator icon is created. inhibit-process is
        to be called by the indicator. When sleep is inhibited, it runs,
        preventing sleep.'''
    parser.add_argument('--mode', type=str, default='indicator', help=mode)
    return parser.parse_args()

def main():
    args = parse_args()
    if args.mode == 'indicator':
        signal.signal(signal.SIGINT, signal.SIG_DFL)
        GObject.threads_init()
        SleepInhibit()
        Gtk.main()
    elif args.mode == 'inhibit-process':
        inhibit()
    else:
        exit('ERROR: Invalid value for --mode!')

if __name__ == '__main__':
    main()

Run the script.


Is there a power-management like OpenSuse?

Battery Applet/Indicator

This is designed as a replacement for the original battery indicator which will give you more information and options including 4 power levels

Power Save
Ondemand
Normal
Performance

It shows the charge level of your battery and whether you are using the battery or mains. It can be used as an indicator or a gnome applet so can be used on Ubuntu 11.04, 10.10 and older

To install you will need to add there ppa
 - ppa:iaz/battery-status
A guide for adding additional ppa sources is available here -
what is a ppa and how do I use them - after you have aded it an updated your system you can install battery-status from the Software Centre by searching for it.

Hope this helps


Random restarts on Intel NUC with Ubuntu 20.04

I had this issue with a NUC5i7RYH with a Crucial NVME drive. I was advised to set BIOS to boot Legacy rather than UEFI when installing an NVME drive as a boot drive.
Resetting the drive to Legacy Boot did require a complete reinstallation of OS but did resolve all issues with performance. Linux or Windows OS resolved.
This same method did NOT resolve random reboot issues on a NUC6i5SYH.
It seems that for all Intel NUC6 (any CPU) and above require the latest BIOS revision and to disable "Watchdog" (uncheck) in the system visual BIOS regardless of UEFI or Legacy choice at startup.


The error you're getting is happening because you don't have an eth0 interface.  You do have a wlp1s0 interface.  You'll have to edit the program to use the device you have (or install a new hardware device).

Looking at the github site there is a sample node.cfg file where this is configured.

Change the line in the node.cfg file:

Change from:

[bro]
type=standalone
host=localhost
interface=eth0

Change to:

[bro]
type=standalone
host=localhost
interface=wlp1s0


Uninstalled unity and installed lubuntu; now its showing: failed to load session ubuntu; none of the given solutions working

You can backup your files simply by using an Ubuntu Live CD or DVD.

1 - Plug in the CD

2 - Boot into live mode

3 - Mount your partitions

4 - Copy your files to an USB drive or something

If your filesystem is extended3 you can download a plugin so Windows Explorer can access your Ubuntu partition-

Or you could use some program like Total Commander with an extendedFS plugin to access your Ubuntu partitions.

For fixing your computer, the best is to do a new LUbuntu installation, by removing Unity you simply removed the most core graphical applications.

And you need an Internet Connection if you want to use apt-get (non-local repositories).


Finding lines not starting the same, and editing those. (sed/vim)

The following command in vim does what has been asked:

:8,$s/^\([1-5].*\t\)\(.*\n[^\1].*\)/\*\1\2/g


What audio drivers do I have to install?

You need to install alsa drivers package, though not necessary because in most of the systems things work but in  case you are facing problems you should try alsa drivers for sound


Removing ubuntu-desktop through Software Center

Each Ubuntu derivative has its own "desktop". For example,

Unity has the ubuntu-desktop
Lubuntu has the kubuntu-desktop
Kubuntu has the kubuntu-desktop and
Xubuntu has the xubuntu-desktop

Each of these "desktops" is a metapackage, decribed in detail in MetaPackages. These metapackages contain nothing but a list of software that give you the corresponding desktop experience. Installing lubuntu-desktop, for example, on Unity, will pull in all the software associated with Lubuntu and afford you the choice of running either Unity or Lubuntu at the time of logging in.

There are times, when, as you have observed, that you want to delete a piece of software for whatever reason and you maybe be warned that doing so will remove  ubuntu-desktop (or some other desktop depending on your environment.)

In fact, Synaptic has this caution regarding the ubuntu-desktop:

  This package depends on all of the packages in the Ubuntu desktop
  system

  It is also used to help ensure proper upgrades, so it is recommended
  that it not be removed.

Based on the Synaptic comment, removing the ubuntu-desktop now may be detrimental at some future date.

On the other hand, Synaptic says the same thing about lubuntu-desktop whereas community documentation on Lubuntu assures Lubuntu users that there's nothing to fear.

  When you want to remove a program from lubuntu, you may be told that
  by doing so it will remove lubuntu-desktop. The package
  lubuntu-desktop is only used for the installation of lubuntu and can
  safely be removed.

  Lubuntu-desktop is what is called a meta-package which, simply put, is
  just a list of what to install. It is a design decision that all
  packages included in lubuntu-desktop depend on it, so as to be able to
  use --no-install-recommends option when the initial installation
  occurs, thus preventing non-essential programs being installed.

  The lubuntu-desktop would just need adding back in for the update from
  10.04 to 10.10, after that it can be safely removed again.

Even though the quote above refers to 10.04 and 10.10, more recent posts elsewhere have similar opinions. You could look at [Lubuntu-desktop] lubuntu-desktop metapackage - Recommends vs  Dependencies and the responses. Again, IMO, even though the desktop being talked about is Lubuntu, the same observations apply to Unity.

In my case, I no longer have lubuntu-desktop because I chose to remove a package of games, aces-of-penguins, and lubuntu-desktop went with it. I must mention that I will be doing a clean install from 12.10 to 13.04 and not an upgrade.


How do I manage session options (sound in my case) when starting program with xinit?

Try to have something along the lines of:

start on stopped rc RUNLEVEL=[2345]
stop on starting rc RUNLEVEL=[016]

That is the rough equivalent of $all in LSB init scripts. If it really is an ordering problem, then this will probably fix it.

But first, set the xbmc job to "manual" then start it after the boot is over to see if it is an ordering issue (if you still get no sound then the start and stop on are fine).


Cannot run Update-Manager 1:18.04.11.10 + Segmentation fault

You can find the Crash.log there.

https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1834055


How to make Ubuntu dual-boot reinstall with zfs-on-root?

The easiest way to install Ubuntu with root as zfs I have come up with so far is this:

Do a default zfs install (with full disk erasure) on a virtual machine
Erase your two old partitions on the physical computer
create two new partitions on the physical computer which start at the same starting points as the old ones and have sizes equal to the sizes of the corresponding rpool and bpool partitions on the VM
Copy the two partitions from VM to physical computer with dd over network or removable media
Adjust UUIDs in /etc/fstab on the physical computer according to the new values
Boot into new Ubuntu, probably manually specifying root and linux parameters at the grub> prompt
Make sure /boot and /boot/efi are mounted correctly
grup-install && reboot
Use parted to expand partitions to their full size (or however large you want them to be)
Use zpool online -e to expand the pools to the full partition size
Done


touch is not able to create directories, you need mkdir for that.

However, mkdir has the useful -p/--parents option which creates a full directory structure.

From man mkdir:

   -p, --parents
          no error if existing, make parent directories as needed

So the command you need in your specific situation is:

mkdir -p ~/Desktop/a/b/c/d/e/f/g/h/ && touch ~/Desktop/a/b/c/d/e/f/g/h/1.txt

If you think you will need this more often and don't want to type the path twice every time, you can also make a Bash function or a script for it.

Bash function (append this line to ~/.bashrc to persitently have it available to your user, otherwise it will vanish again when you exit your terminal):

touch2() { mkdir -p "$(dirname "$1")" && touch "$1" ; }

It can be simply used like this:

touch2 ~/Desktop/a/b/c/d/e/f/g/h/1.txt

Bash script (store it in /usr/local/bin/touch2 using sudo to make it available for all users, else in ~/bin/touch2 for your user only):

#!/bin/bash
mkdir -p "$(dirname "$1")" &&
    touch "$1"

Don't forget to make the script executable using chmod +x /PATH/TO/touch2.

After that you can also run it like this:

touch2 ~/Desktop/a/b/c/d/e/f/g/h/1.txt


Bash

  Bash is the GNU Project's shell. Bash is the Bourne Again SHell. Bash
  is an sh-compatible shell that incorporates useful features from the
  Korn shell (ksh) and C shell (csh). It is intended to conform to the
  IEEE POSIX P1003.2/ISO 9945.2 Shell and Tools standard. It offers
  functional improvements over sh for both programming and interactive
  use. In addition, most sh scripts can be run by Bash without
  modification.

  The improvements offered by Bash include:

Command line editing
Unlimited size command history
Job Control
Shell Functions and Aliases
Indexed arrays of unlimited size
Integer arithmetic in any base from two to sixty-four.

Source:1

  Dash

  Dash is an acronym for Debian Almquist shell (dash). It is a Unix and
  Linux shell which is much smaller than bash but still aiming at
  POSIX-compliancy. dash is a POSIX-compliant implementation of /bin/sh
  that aims to be as small as possible. dash is a direct descendant of
  the NetBSD version of ash (the Almquist SHell), ported to Linux in
  early 1997. It was renamed to dash in 2002.

  dash is the standard command interpreter for the Linux system. The
  current version of dash is in the process of being changed to conform
  with the POSIX 1003.2 and 1003.2a specifications for the shell. This
  version has many features which make it appear similar in some
  respects to the Korn shell, but it is not a Korn shell clone. Only
  features designated by POSIX, plus a few Berkeley extensions, are
  being incorporated into this shell.

Source:2

  RBash

  If Bash is started with the name rbash, or the --restricted or -r
  option is supplied at invocation, the shell becomes restricted. A
  restricted shell is used to set up an environment more controlled than
  the standard shell. A restricted shell behaves identically to bash
  with the exception that the following are disallowed or not performed:

Changing directories with the cd builtin.
Setting or unsetting the values of the SHELL, PATH, ENV, or BASH_ENV variables.
Specifying command names containing slashes.
Specifying a filename containing a slash as an argument to the . builtin command.
Specifying a filename containing a slash as an argument to the -p option to the hash builtin command.
Importing function definitions from the shell environment at startup.
Parsing the value of SHELLOPTS from the shell environment at startup.
Redirecting output using the ‘>’, ‘>|’, ‘<>’, ‘>&’, ‘&>’, and ‘>>’ redirection operators.
Using the exec builtin to replace the shell with another command.
Adding or deleting builtin commands with the -f and -d options to the enable builtin.
Using the enable builtin command to enable disabled shell builtins.
Specifying the -p option to the command builtin.
Turning off restricted mode with ‘set +r’ or ‘set +o restricted’.

  These restrictions are enforced after any startup files are read.

  When a command that is found to be a shell script is executed (see
  Shell Scripts), rbash turns off any restrictions in the shell spawned
  to execute the script.

Source:3

  sh

  sh is the command name of the Bourne shell, the standard command
  language interpreter of Unix and many Unix-like operating systems,
  including Linux. sh is a command language interpreter that executes
  commands read from a command line string, the standard input, or a
  specified file.

  The Bourne shell was developed in 1977 by Stephen Bourne at AT&T's
  Bell Labs in 1977. It was the default shell of Unix Version 7. Most
  Unix-like systems contain the file /bin/sh that is either the Bourne
  shell, or a symbolic link (or hard link) to a compatible shell.

Source:4


"no root filesystem defined, please correct from partitions menu."

During the partition part you MUST mark 1 partition as /. That is the root partition where the system is going to be installed.


Disable ATI Radeon graphics card and use intel graphics (switcheroo unavailable)

http://ubuntuforums.org/showthread.php?t=1930450

have you tried that one?

Josvanr


Can I revert to a normal Google broswer instead of the streamlined 'Ubuntu Start Page'

you just have to go to edit -> preferences

On the general tab set the start page to http://www.google.com


As it's on chrome, there's no difference.

Open chrome and copy / paste the following into the top bar:

chrome://extensions

And then use Ctrl + F and search for part of the name (e.g. "New Tab").

Then click the dustbin next to it:

And it should be removed.


Multiple applications crash on 17.10 with "Not a JPEG file: starts with 0xff 0xff" with samsung scannner

Not connected with the scanner, but I found this question through searching on the "murrine-scrollbar" error.

/usr/share/themes/Ambiance/gtk-2.0/apps/mate-panel.rc:30: error: invalid string constant "murrine-scrollbar", expected valid string constant

This seems to trigger when opening any gui program from the terminal.

As reported in this bug report: https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1724078/comments/4 , edit the mentioned file at line 30, replacing murrine-scrollbar with scrollbar.


How to keep ubuntu snaps on a separate partition?

In the past when disks were small it was very common to put /var (and indeed /usr) on another partition / disk. It's fallen out of favour among most, as default installs tend to put everything on one disk, and disks are large. However, with the advent of SSDs which were initially small, and got expensive very quickly if you went large, you sometimes need to split directories to separate disks.

So in short, yes, it's perfectly fine to move /var to another disk There is a simple guide here which should get you started.


Drag the icon from the Dash into a Terminal. You'll get something like

application://mplayer.desktop

Now search for a file named mplayer.desktop in $HOME/.local/share/applications/ and /usr/share/applications. In that file search for a line starting with Exec=. After the = there's the command to run, maybe with something like %f or %U instead of the file name.

Or install Arronax, open it and drag the icon into the window. The command will be in the Command field.


Drag & Drop files & folders on GNOME Window manager Launcher Icons

At the moment such a feature isn't implemented by Gnome and as far as I know Gnome has no plans to implement it in the near future. Also, I don't think that there is an extension that can provide this capability.


May be the key that you were trying to add got expired i.e. not available on the server now.
Or
the key is entered wrongly

Check this link:
How do I fix the GPG error "NO_PUBKEY"?

Btw,
you can manually delete keys by going into Synaptics.

About mouse.
I doubt if it has anything to do with the above error.
Check mouse settings in preferences and settings.
Something wrong there like pointer speed and acceleration.

Hope this helps.


Skype for Business - Is there any python, bash, nodejs sample available?

There are several ways to do it. Here is a link to a blog post for native ways via Pidgin.

http://www.lyncinsider.com/lync-mobile/lync-linux-access-lync-services-linux-computers/

You can also use "Wine" and install the .exe

Personally, I just use the Chrome app.


Ubuntu 64-bit 12.04 installation dvd boot problem blank screen

I'm running a GT 630 now with 12.10 64bit

I got a 'blank screen' well, I got a large looking login screen, then when I logged in, I got a single (I have dual monitors) screen with nothing on it but the background. I figured out later I must have been in 640X480 mode or something...

I ended up logging in with my laptop, killing lightdm (wich stops the X server), unstalling noeveau and installing the 310.19 version of the driver I downloaded from nVidia.

I seem to be running OK with 2 screens. I'm not sure if all the nifty GLX capabilities are supported though...I got a realy poor fps on glx gears, but the displays seem fairly ok.

OR...you could check out this tactic...this also might have worked for me instead of ssh into my box from my laptop.

https://askubuntu.com/a/204788/113252

Hope this helps.


Top-Bottom panels are not showing up on startup in classic Gnome in Ubuntu 11.04

Gnome is independent of other programs installed in your system. So it has nothing to do with their removal. Try removing and reloading gnome-shell.


Custom keyboard shortcut for workspace switcher

You can use CompizConfig Settings Manager . Go to Desktop > Expo, select Bindings tab and change the value of Expo key as you wish:

Generally, if you want to find quickly a keyboard shortcut which is set in CompizConfig Settings Manager, you can use Advanced Search option (Settings value must to be selected):


Disable second screen on the login screen but enable once login has completed

You could try http://cornerofattention.com/post/44651232151/ubuntu-12-10-disable-second-monitor-while-on-login . This works fine for me.

Here are steps from link above.

Find the name of the display that you are trying to shut off while the greeter is displayed.

user@ubuntu:~$ xrandr | grep connected

Create a script to disable the second monitor. I put mine in /etc/lightdm/ but it can go anywhere as long as it has sufficient permissions.

sudo nano /etc/lightdm/monitor1-off.sh

The contents of the script will be similar to

#!/bin/bash
xrandr --output HDMI1 --off

Replace HDMI1 with your display’s name and save it.

user@ubuntu:~$ sudo chmod +x /etc/lightdm/monitor1-off.sh

Edit /etc/lightdm/lightdm.conf and add the following line to the file

greeter-setup-script=/etc/lightdm/monitor1-off.sh

Save the file and restart your computer.  When the greeter starts, the display you chose should shut off. On my computer the display starts again on its own as soon as I log in.


Ubuntu don't remember my brightness settings

Try this command:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=Linux acpi_backlight=vendor"


libkmod: ERROR ../libkmod/libkmod-config.c:656 kmod_config_parse: /etc/modprobe.d/rtl8723de.conf line 1: ignoring bad line starting with '“options'

I've opened the file, and removed the string that starts from "options". (The file became empty).
nano /etc/modprobe.d/rtl8723de.conf

It helps me.


Ubuntu Server can not connect to Internet; External network can not connect to Ubuntu server

After replacing the Network Card the server began to function normally. It turns out there was a blown chip following a power surge.


How to add a location to "Places" instead of "Bookmarks" in Nautilus/Ubuntu's File Manager?

You can't simply add a new location to Places like you add to Bookmarks. This because those locations are hardcoded into Nautilus. You can change the name or location of the directories or you can hide the directories by pointing them to Home by editing ~/.config/user-dirs.dirs file, but you can't add new locations.

So, to add a new location to Places you have to edit the Nautilus source code. You can do this even if you are not a programmer by following carefully all the steps from this answer (many thanks to Roman Raguet for it).


Same issue here. Yes, it's DRM garbage. Pipelight is likely your only hope for native-like playback, otherwise a virtual machine just for your streaming sports.


How do I get Ubuntu 15.10 to show the desktop version

If you have installed Ubuntu Desktop, use the command:

sudo apt-get install ubuntu-desktop

If it's Ubuntu Server,  I suggest installing lighter version of Unity desktop using the following command as it will exclude extras (e.g LibreOffice,...) of Ubuntu Desktop.

sudo apt-get install --no-install-recommends ubuntu-desktop

Restart Ubuntu once done

sudo reboot


How do I remove a virus that ClamAV has found?

It looks like it's http://www.cvedetails.com/cve/CVE-2015-5123/. Run rm /home/tony/.cache/opera/Cache/f_005fb6 then clear the Cache in opera settings. No guarantee there are not more on your system. My advice is to switch to a flash-less browser like chromium. Flash is full of bugs that will never be fixed and most things work without it now. If you need flash you can always use a virtual machine to be secure.


curl cannot connect to HTTPS sites in 18.04

It turns out I had installed my own version of openssl a long time ago (2 years) that was being considered as newer than the one provided by the default repositories. Simply reinstalling the correct version fixed my issue.


mistakenly deleted the Ubuntu partition

Then re-install Ubuntu on that empty partition and problem will be solved (Ubuntu will re-write grub).

If you do not want Ubuntu anymore try search for answers on internet how to fix mbr using Windows CD (cause I'm not expert in that).


What do you use to edit Microsoft Word documents (docx)?

LibreOffice is the replacement for OpenOffice and does the same job.


Because you didn't quote the cp -r string, the -r is getting passed as an argument to grep, resulting in it searching for the string cp recursively within the current directory. If you want to search for literal string cp -r within your shell history, you can use

history | grep 'cp -r'


You are looking for the pstree command.
pstree by itself will list all the processes in a tree form (like lsblk does). You can use the -p flag to get the PIDs listed as well, and the -s to show parent process as well:

$ pstree -p 602
udisksd(602)-+-{cleanup}(607)
             |-{gdbus}(605)
             |-{gmain}(603)
             `-{probing-thread}(606)

A (probably) POSIX-compliant way of getting the child PIDs (that I'd mentioned in the comments elsewhere):

ps -o ppid= -o pid= -A | awk '$1 == <some pid>{print $2}'

This tells ps to write the parent PID and PID of all processes (without headings), and then uses awk to see which lines have the given PID in the first field (the parent PID), and prints the corresponding second field (the child PID).


This has been reported as a bug
https://bugs.launchpad.net/ubuntu/+source/linux-meta-lts-trusty/+bug/1558489

It appears to be an issue with kernels above 3.19.0-51.  I have exactly the same problem. The solution (for now) is to boot using kernel 3.19.0-51, as explained in How can I boot with an older kernel version?


How do I convert my Ubuntu installation into a Live-USB or Live-CD?

I recommend using Remastersys.

This will create a hardware-independent LiveCD ISO backup of your system; you can then use a tool such as Unetbootin to "burn" the ISO to a USB and create a LiveUSB.

Remastersys includes both command-line and GUI front-ends. Note that the author recommends starting with a "clean" install and then customizing it to maintain the highest compatibility for the LiveCD/LiveUSB. There is also a 4GB final size limitation, which means that your Ubuntu install should be around 8GB at most, and you should not include any media files, deb files, etc.


Just solved the issue. Went to System Settings -> Screen Display and checked the "Mirror Displays" box. For some reason the thing never happened again after that.


How to compare performance between desktop graphics card and laptop graphics card?

If you don't have the card,

Research through internet. Read reviews and compare the posted benchmarks.

A list is over here - http://www.notebookcheck.net/Comparison-of-Laptop-Graphics-Cards.130.0.html


How can I make my primary partition larger?

You may need to use gparted live or boot your ubuntu live disc and install gparted to resize the partition, so that no partitions are mounted whilst you are working on them.


As you quote it, your dhclient.conf lacks a terminating semicolon after each supersede statement.


systemd-resolve does not forward DNS requests to stated DNS server

Looks like this is by design. Pottering closed the issue https://github.com/systemd/systemd/issues/2514 with a wont-fix.

dig @127.0.0.53 shadowbox

systemd-resolved does not support simple names over DNS, only fqdn, and ignores the search directive.


Vivid apt-get update huge Package files in /var/lib/apt/lists/partial

Sounds a bit like a proxy problem. I once had a problem with maven that the proxy replaced a jar by a html page containing a virus warning. The html got saved as .jar but because it was broken nothing worked anymore.

Anyway: it's safe to delete everything from the directory /var/lib/apt/lists/partial/ (and also from /var/cache/apt/archives/partial/).

For troubleshooting, I recommend the following steps:

Try another mirror, eg. http://de.archive.ubuntu.com/ubuntu/ instead of http://ch.archive.ubuntu.com/ubuntu/ or even the main archive http://archive.ubuntu.com/ubuntu/
Try another protocol: ftp:// instead of http:// - the rest of the path remains for default mirrors
Try to analyze the transfer using wireshark (use the context menu option 'Follow TCP stream'). Interesting are both HTTP headers and content. If you get answers with HTTP status code 200 (which means ok) but human-readable content, something is seriously wrong on your proxy. A regular bzip2 file shouldn't contain any human-readable text.
Use wget or curl for checking what you get from the server when downloading without apt-get.


You can use this:

ssh -t username@host "/usr/bin/bash"

The -t is necessary, to create a pseudo-tty for the shell to use as an interactive shell.

Source


Sometimes wireless card doesn't detect anything. Toggling wireless doesn't help. Any fixes (excluding restarts)?

Okay I found a solution.

For anyone else out there with same problem as me, try this:

Go to terminal
Type: sudo systemctl restart network-manager

Problem should be fixed.


QCA9377 Drops Out and Can't Even Open WiFi Settings

Had the same issue, resolved it by replacing the buggy firmware - here is the solution.
Download
Then remove firware-5 and firware-6 (save them somewhere safe just in case you need them) from /lib/firmware/ath10k/QCA9377/hw1.0/ and rename the downloaded file firmware-5 and place it in the /lib/firmware/ath10k/QCA9377/hw1.0/ folder. Reboot. Sorted.
You need to do this every time you update the kernel.


Migration from ecryptfs to full-disk encryption

My recommendation would be to backup all of our data and re-install Ubuntu using the alternate DVD and select LVM Encryption. This will encrypt all of the contents of all of the partitions that are part of your LVM. You will be required to enter your passphrase before the system is booted, so once your system is in that state it is no longer encrypted.

I would then supplement this with the use of TrueCrypt for encrypting the contents while the system is fully booted. I'm including a link to a Ubuntu community document that outlines how to install it and it should guide you to its basic use.

So why am I recommending two encryption solutions?

LVM Encryption - This will protect your system from theft if the machine is lost or stolen while in a powered off state.

TrueCrypt - This will protect your data while the machine is powered on.

*Caution: As soon as you decrypt any of the filesystems by mounting them they are at that point in cleartext. There is no way around this and you still need to exercise good security practices such as least privilege, strong passwords, firewall rules, etc.. *

Truecrypt Ubuntu Community Documentation

Ubuntu LVM Encrypted Filesystems Howto


Distinct overwrite/insert cursor in GNOME Terminal or shell

The terminal doesn't have the concept of insert vs. overwrite mode. It's only known by the application running inside (e.g. shell, text editor...).

Some terminal emulators (including gnome-terminal) allow the cursor shape to be set via escape sequences.

So what you need is to modify the desired application to set the cursor shape according to its state.

As far as I recall, neovim does this.


Error when Installing Ubuntu alongside Windows

You can't simply install Ubnutu on a GUID Parted Table that is GPT in short which is commonly used by Windows 7, 8... If you want to install Ubuntu on a GPT disk (you can check it via the sudo parted -l command), you will need either an EFI partition (if your BIOS is setup in EFI mode) or a BIOS-Boot partition (if your BIOS is setup in Legacy mode). How to create a boot partition provided in this documentation.


Monitor setup and desktop background lost on restart

At the moment, it appears the best solution is:

Not rebooting with the VGA cable plugged in
Saving the xrandr commands to a .sh file to run on startup

I suspect the answer is to get a more modern monitor.


You can install gnome-sushi which provides quick file previews.

To use it, select a file in Nautilus and then press the SPACE bar. It actually doesn't depend on Nautilus so other file managers can make use of it.It is capable of previewing documents, PDFs, video and audio files.

To install, open a terminal and run the following command:

sudo apt-get install gnome-sushi

For more information and a demo video, visit http://www.ubuntugeek.com/gnome-sushi-quick-previewer-for-nautilus.html.

Off-topic: In case you're wondering how can you use nautilus scripts and what scripts are available, this link has 125 different scripts that can enhance your experience: http://www.ubuntu-unleashed.com/2007/09/125-nautilus-scripts-to-simplify.html.


BIOS contains WGDS but no WRDS: what's happening?

Example of output of sudo dmesg | grep WRDS:
[    4.803894] iwlwifi 0000:52:00.0: BIOS contains WGDS but no WRDS
[ 3323.493255] iwlwifi 0000:52:00.0: BIOS contains WGDS but no WRDS
[ 4427.419793] iwlwifi 0000:52:00.0: BIOS contains WGDS but no WRDS

This message is related to information stored in the BIOS about the wifi device; It seems that WGDS and WRDS are related to geolocation and radio transmission power limitations.
The message sometimes appear during boot or, in some cases upon coming back from a sleep state, depending on the BIOS implementation. source


Fresh install of Ubuntu doesn't boot, UEFI. Boot-Repair doesn't help

There are several odd things about your setup:

Your /dev/sda (a Toshiba MQ01ABD075_Y216FCTCS) is present, but doesn't appear to have a partition table or filesystem. This might be expected and harmless, depending on what that device is, but it's unclear what's causing this oddity.
Your /dev/sdb (a Samsung MZMPC032HBCD) is partitioned using the Master Boot Record (MBR) partition table, but EFI-bootable disks normally use the GUID Partition Table (GPT).
Your EFI System Partition (ESP) is a logical partition on /dev/sdb (it's /dev/sdb6, to be precise). This might work, but only if your firmware isn't too finicky and if the NVRAM contains a pointer to the boot loader or if it's installed as EFI/BOOT/bootx64.efi. At best, this is highly unusual.
The Boot Repair script turned up no evidence of any EFI boot loaders on /dev/sda or /dev/sdb. (/dev/sdc seems to be your emergency boot USB drive.) This is probably a bug in Boot Repair, but it makes it hard to judge what's actually booting.

Overall, I'd say you need to repartition /dev/sdb to use GPT. (You can completely repartition it or use gdisk to convert it from MBR to GPT.) The Ubuntu installer should use GPT when it's fed a blank disk for an EFI-mode installation; however, it might stick with MBR if it's fed a pre-partitioned MBR disk. (I've not studied what the Ubuntu installer does in such a case -- and it might do different things depending on the Ubuntu version.) Alternatively, you need to mount /dev/sdb6, figure out where your boot loaders are, and adjust their paths appropriately; or use efibootmgr to create an entry that points to the boot loader. You might want to read my page on EFI boot loaders, and especially the sub-pages on EFI boot principles and installing EFI boot loaders, for more information. The inline links earlier provide background information, and so are worth reading, too.


17.10 upgrade: Drag & drop on touchpad doesn't work

I had a similar issue, and installing xserver-xorg-input-synaptics did the trick (found it here).


How to install ubuntu on new preloaded dos system?

I suggest you should install Ubuntu first without connecting to the internet, what I mean to say is skip the Download updates while installing and Install third-party software. Once the installation is complete, reboot and then update/upgrade your system, install the applications/software that you need.

After you log-in to the Ubuntu Desktop, connect your ethernet cable. If you're still unable to connect to the internet, start troubleshoot.

When you're connected to the internet, open a terminal (press Ctrl + Alt + T) and enter the following to update and upgrade:

sudo apt-get update && sudo apt-get upgrade


Add lock rotation button to Ubuntu Budgie

I solved this thanks to the guys from the IRC #ubuntu-budgie

The right command to solve this for Ubuntu Budgie 17.04 is:

  gsettings set org.gnome.settings-daemon.peripherals.touchscreen
  orientation-lock true

The one that M. Becerra mentioned, for what I've read, worked just fine in Ubuntu Budgie 16.04, in case you are using that version the path to type into your console is:

  gsettings set org.gnome.settings-daemon.plugins.orientation active false


How do I enable syntax highlighting for groovy in Vi?

To enable syntax highlighting in vim you have to enable it through .vimrc.
Add:

syntax on

to your .vimrc.

Here is the typical script for groovy. I do not know if it is compatible with vi or not because I am also novice to vi/vim. You can install the full vim with:

sudo apt-get install vim


Ubuntu 16.04 LTS - Steam "Fatal Error: Failed to load steamui.so"

Change the settings here:

Additional Driver → Change another driver for your graphics card.


how can I send file to playbook via USB?

Blackberry Playbook it seems does not work out of box with USB transfers on Ubuntu but you can still connect via USB Network Share

Firstly, you need to connect Playbook to your Ubuntu laptop/PC via USB.
Now, in your Playbook, goto Settings - Storage & Sharing and set USB Connections to Connect to Windows and File Sharing to ON
Now, goto Settings - About and choose Network from the dropdown menu and write down the IPv4 address.
Goto your Ubuntu 12.04 desktop now and select Connect to Server option from File menu in the top panel.
Enter the IP (you noted down)  and change the "Type" item to Windows Share from Public Share. And hit Connect.
That's it. Blackberry Playbook is now connected to your Ubuntu 12.04 LTS as a network shared folder and now you can have all the file transfer you want between Blackberry Playbook and Ubuntu/Linux without a hitch.

Hope this helps and I'm on my phone so I can't post pics but you can visit the link below for illustrations:

www.techdrivein.com/2012/05/how-to-connect-blackberry-playbook-with.html?m=1


Just put the disk in and install it . In the install dialog it will ask if you want to keep windows,  choose yes and Ubuntu will be installed alongside Windows 8.1 with Ubuntu asking as your Boot Manager....I've done this a few times and it always works...Ubuntu is awesome at working with Windows (7 and 8 and 8.1 I know for sure)


If I have Ubuntu installed along side Windows, does the firewall on Windows work along with the antivirus system?

No I don't think so, it is a different operating system so those applications won't startup.  You'll need to install the linux equivalents if you want an anti-virus and firewall.


Applying configuration from NetworkManager

Restart Your Network

It might be the case that you didn't restart your network. To do so, open a terminal (Ctrl+Alt+T) and run the following command:

sudo /etc/init.d/networking restart

If this doesn't work, try the next option.

Editing /etc/network/interfaces File

Open a terminal (Ctrl+Alt+T).
Open the /etc/network/interfaces file.

sudo vim /etc/network/interfaces

Find and remove the following entry:

iface eth0 inet dhcp

Assuming the required settings are as follows:

Host IP address 192.168.1.100
Netmask: 255.255.255.0
Network ID: 192.168.1.0
Broadcast IP: 192.168.1.255
Gateway/Router IP: 192.168.1.254
DNS Server: 192.168.1.254

Add the new network settings to the file:

iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.254

Save and close the file. Restart the network:

sudo /etc/init.d/networking restart

Now, we need to define the new DNS servers. Open the file /etc/resolv.conf:

sudo vim /etc/resolv.conf

You need to remove old DNS server assigned by DHCP server:

search myisp.com
nameserver 192.168.1.254
nameserver 202.54.1.20
nameserver 202.54.1.30

Save and close the file.

Source: http://www.cyberciti.biz/tips/howto-ubuntu-linux-convert-dhcp-network-configuration-to-static-ip-configuration.html.


By default, sudo searches for programs using its own secure_path that is defined in the /etc/sudoers file. From man sudoers:

 secure_path   Path used for every command run from sudo.  If you don't
               trust the people running sudo to have a sane PATH environ‐
               ment variable you may want to use this.  Another use is if
               you want to have the “root path” be separate from the “user
               path”.  Users in the group specified by the exempt_group
               option are not affected by secure_path.  This option is not
               set by default.

Note that in spite of the last line there, the default Ubuntu /etc/sudoers does set it:

Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"

so neither the invoking user's PATH nor root's PATH will effect whether programs are located when using sudo.

If you really want programs in locations such as /opt to be executable via sudo, you will need to either

use the full path e.g. sudo /opt/somepath/bin/prog
modify the sudoers secure_path to include the locations - if you decide to do this, please use sudo visudo to catch any syntax errors (else you risk locking yourself out of sudo altogether).

However, you should probably read Why should users never use normal sudo to start graphical applications? before proceeding.


Port 27005 closed - how can I force it to open?

what do a remote and local nmap probe look like?
$nmap localhost -p 27005-27020

Starting Nmap 6.40 ( http://nmap.org ) at 2014-08-01 16:59 CDT
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00013s latency).
Other addresses for localhost (not scanned): 127.0.1.1
PORT      STATE  SERVICE
27005/tcp closed flexlm5
27006/tcp closed unknown
27007/tcp closed flexlm7
27008/tcp closed unknown
27009/tcp closed flexlm9
27010/tcp closed flexlm10
27011/tcp closed unknown
27012/tcp closed unknown [...]

Netstat: netstat -aunt output?
For instance,
$ netstat -aunt | grep 2700
tcp        0      0 0.0.0.0:27005           0.0.0.0:*               LISTEN

netcat aka nc : Use something like netcat to test your system and firewall.
Set netcat to listen on port 27005.
Local terminal or process:
    $ nc -p 27005 -l
Remote and local access test:

    $ telnet localhost 27005
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    ^C^]

If you're blocked remotely and not locally, this could be a firewall issue.
Did flushing IP tables really do what you wanted?  See this thread, e.g., https://unix.stackexchange.com/questions/61957/does-iptables-f-permanently-delete-all-iptables-rules .
Does this thread help? (OVH Open ports)
Have you tried iptables entries for both 27015 (quoted here, from the forum thread) and 27005?
iptables -A INPUT -p tcp --dport 27015 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A INPUT -p udp --dport 27015 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A INPUT -p tcp --dport 27005 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A INPUT -p udp --dport 27005 -m state --state NEW,ESTABLISHED -j ACCEPT

Also see this thread about port-forwarding.
There are a number of good port-forwarding guides on the net (top hits in Google searches have worked in the past), if that sounds like your problem.


Apache 2.4.7 doesn't load all .css files

I just found a solution from another question. Everything works if I add a ./ before the path in index.html.

<link rel="stylesheet" href="./css/style.css" type="text/css"/>
<link rel="stylesheet" href="./css/modalCustomization.css" type="text/css"/>


TIP: Don't forget to export your bookmarks, just in case you want to import those in some other browser you want to use.

I had to do this all:
sudo apt remove brave-browser
sudo apt purge brave-browser
rm -rf ~/.config/BraveSoftware
rm -rf ~/.cache/BraveSoftware

Reference


can not sign in to remote server using hostname but with ip address

Your mac doesn't resolve your remote server's /etc/hosts unless you are already signed into the server using ssh. Before you log in, you are resolving through whatever your mac uses to resolve (possibly a hosts file, I'm not familiar with that aspect of OSX).
If the server is on your local network, you can resolve through a local resolver, usually on your router. Sometimes, the local resolver will honor hostnames set by the server. Other times, you have to set local host names on the router or local resolver.
You can use the following command on the server to show your current hostname:
hostnamectl

If you want to set or change the hostname for your server to use on your local network, you can use the following command:
sudo hostnamectl set-hostname localhost.lab.group

This assumes that you want to set the host name for your server to "localhost.lab.group" and this will be the hostname or "machine name" used on your local network. Most of the time this will work. Other times, you will have to also set this domain name for the server through your router settings or with the network administrator.
If you are not on your local network, I think you would have to register a domain name so that other DNS servers will assign the domain name to your address. Alternatively, you could do this through your OSX settings but I'm not sure how to do that.
more info on linuxize.com


how to write a shell script that copies an entire subdirectory structure as the structure of another subdirectory?

You can copy directory structure with cpio:

$ find -depth -type d -print0 | cpio -0 -pvdm ../target

Or

$ find source -depth -type d \
  -printf %P\\0 | cpio -0 -pvdm -D source target

script.sh:

#!/bin/bash

shopt -s extglob

[[ $# != 2 ]] \
      && exit 1

[[ ! -d $1 || ! -d $2 ]] && exit 1

find "$1" -depth -type d \
  -printf %P\\0 | cpio -0 -pvdm -D "$1" "${2%%+(/)}"

$ ./script.sh source/ target/


the problem is solved by applying the following command before the commands mentioned in the question. Also, the following page helps in understanding the problem.
command

sudo apt-get install software-properties-common

webpage
What are PPAs and how do I use them?


Return only line number, if pattern 'Exist' and 'Not Exist'. using 'grep' command

You need to add the -w option

$ grep -wn 'xyx' file | cut -d: -f1
2
4

From man grep

   -w, --word-regexp
          Select  only  those  lines  containing  matches  that form whole
          words.  The test is that the matching substring must  either  be
          at  the  beginning  of  the  line,  or  preceded  by  a non-word
          constituent character.  Similarly, it must be either at the  end
          of  the  line  or  followed by a non-word constituent character.
          Word-constituent  characters  are  letters,  digits,   and   the
          underscore.

To invert the match, add the -v switch i.e.

grep -vwn 'xyx' file | cut -d: -f1


Sceen goes blank when using browser for certain tasks using 16.04

problem was the monitor and or the HDMI to dvi converter.
I replaced monitor with one that supports HDMI and re-installed 16.04.
 display & driver working properly


Scaling HiDpi Full HD screen on Ubuntu Gnome (and multi monitors)

You can use the experimental feature 'fractional scaling' of gnome 3.26 (which is part of ubuntu 17.10) and set it to 125%.

You can set the scaling of each monitor separately. To use this feature you have to use Wayland instead of xorg

http://www.omgubuntu.co.uk/2017/09/enable-fractional-scaling-gnome-linux


Make sure you remove all bootable media from devices.  This could include DVDs, SD cards, microSD cards, etc.  That way you cannot boot Ubuntu setup.

Thanks for confirming the microSD presence.  Please remove it and mark this answer accepted if it's right so that others can benefit from this question.

Moral of the story: Before you get turned on, check all the holes.