How to change/customize Copy.com Nautilus overlay icons?

Follow these steps customize the Copy.com Nautilus overlay icons...

First install the Copy.com Nauilus overlay emblems...

sudo /usr/share/copy/x86_64/CopyCmd Overlay install

(Replace /usr/share/copy/ with the location where you installed Copy. Also, replace x86_64 with x86 if you have a 32 bit computer).
Replace the default emblems with custom icons.  In this example, I've used the icons from the Humanity icon theme, which were used by UbuntuOne...

sudo cp /usr/share/icons/Humanity/emblems/24/emblem-ubuntuone-unsynchronized.svg /usr/share/nautilus-copy/emblems/emblem-overlayerror.png
sudo cp /usr/share/icons/Humanity/emblems/24/emblem-ubuntuone-synchronized.svg /usr/share/nautilus-copy/emblems/emblem-overlayinsync.png
sudo cp /usr/share/icons/Humanity/emblems/24/emblem-ubuntuone-updating.svg /usr/share/nautilus-copy/emblems/emblem-overlaypending.png

(If you like, you can also replace the progress bar icons located in /usr/share/nautilus-copy/emblems/).
The overlay icons in Nautilus should automatically change; if they do not, you can refresh your Nautilus view by pressing F5.

Finally, if you found this useful, and are so inclined, kindly use my Copy.com referral link (https://copy.com?r=dbRPen) to register for this service -- both you and I will get an extra 5GB of storage space.

Tip...

You can get pretty creative with these overlay emblems.  Here is an example using the Copy.com crane logo.  Note that the icon image does not have to be a specific pixel size, because it will automatically be scaled to fit.  Also, you can use other image formats such as *.png or *.svg.  The icon used in this example is 256x256 pixel PNG image and was automatically resized by Nautilus accordingly...

To revert your overlay icon changes and return to the default Copy.com emblems, simply execute...

sudo /usr/share/copy/x86_64/CopyCmd Overlay install


How do I force writing of metadata out to files in Banshee?

Using Banshee 2.4.0, There is a setting:

Additionally, you could:

Right click on All Artists then click Edit Track Information
Go to the second tab, Extra, and fill out as follows:

This will take a long time, depending on the size of your library, but will edit every single song (unless the id3 comment tag is already a space, in which case, you could put something else there if you thought it necessary).

If, after this is all said and done, you are still unhappy about the state of the metadata (id3 tags) of your music collection, you could download Musicbrainz Picard. This program queries the Musizbrainz server and fills in and attempts to fix the metadata. I have had mixed luck with it. Check youtube for tutorials.

sudo apt-get install picard


Cannot switch Bluetooth earphones to A2DP on Ubuntu 20.04

Found the answer here: PulseAudio fails to set card profile to 'a2dp_sink'. How can I see the logs and figure out whats wrong?
Basically, add this line:
Enable=Source,Sink,Media,Socket

under [General] in /etc/bluetooth/main.conf
Then restart bluetooth (or just restart the computer):
systemctl restart bluetooth


Wine applications have no sound after moving drive_c folder

Run winecfg and go to the audio tab then click OK (you don't have to do anything, wine configure audio automatically when you open that tab)


How to enable user shell theme extension in latest Ubuntu 17.10?

I did a fresh install of 17.10, and the User Themes shell extension wasn't installed by default.

You can install the extension by downloading it from here on the GNOME Shell Extensions site.

After installing the User Themes extension from the website, enable it via the Tweak Tool (if not already enabled) and close/reopen the Tweak Tool. Then the option to change the shell theme should be available on the first page.

On my system, I couldn't install shell extensions from the website because the GNOME Shell Integration connector wasn't installed. You can install that by running this at a terminal:

sudo apt install chrome-gnome-shell

If you have to install the connector, refresh the extension page in your browser before you attempt to install the extension.


ubuntu core 18 first ssh login fails on raspi 4 fails

Ubuntu Core requires BOTH a local keyboard/display (or serial console) AND a working network connection during it's first boot. It will keep repeating the first boot until both are satisfied.

The local connection is needed so you can input your Ubuntu One username to the Ubuntu Core system.
The network connection is needed so the Ubuntu Core system can download your SSH Key from Ubuntu One.

Then the Ubuntu Core system will reboot to apply the new settings. During reboot, you can disconnect the local keyboard/monitor.

If you leave the local display/console attached, you will see that subsequent boots will merely display the Ubuntu Core system's IP address; a convenience so you can connect using ssh. You won't be able to login using the local console by default (you can enable that feature).

One super-easy way to learn about Ubuntu Core first boot is to try it in a disposable KVM Virtual Machine.

Tutorial: How to install Ubuntu Core on Raspberry Pi


I am getting this Error: while I am trying to install the Firmware for linux kernel Drivers

First remove the bt-dw1705-firmware using

sudo apt-get purge bt-dw1705-firmware

and then execute

sudo apt-get install -f

OR
(not safe)

You can also overwrite the existing file with the new one without removing any installed package with following command

sudo dpkg -i --force-overwrite /var/cache/apt/archives/linux-firmware_1.79.18_all.deb

and then execute

sudo apt-get install -f


In terminal run

lspci |grep Network

If output is similar to this:

Network controller: Broadcom Corporatrion Device 4365 (rev 01)

or another Broadcom chipset 43xx series, follow this solution:

How do I install BCM43142 wireless drivers for Dell Vostro 3460/3560?


How do I change the input method in guest session?

Please see the tutorial Customize Guest Session. As regards language input, the line

echo 'setxkbmap se,us' >> $HOME/.profile

in /etc/guest-session/prefs.sh is an example of how the keyboard layout for the guest sessions may be specified.

Edit:

From your comment I understand that you need to use e.g. IBus. I'm pretty sure it can be done, but I'm on 13.10 now, where the input method configuration works differently, so I can't easily figure out the details.

What's most important, I suppose, is to make sure that IBus is started automatically when you launch a guest session, so that the IBus icon shows up on the menu bar. That should be the case if Chinese is your system wide display language.

Edit II:

Assuming that your system default display language is en_US, you may want to try these steps:

Create the folder /etc/guest-session
Create the file /etc/guest-session/prefs.sh and give it the following contents:

# start the IBus daemon automatically
mkdir -p $HOME/.xinput.d
ln -s /etc/X11/xinit/xinput.d/ibus $HOME/.xinput.d/en_US
chown -R $USER:$USER $HOME/.xinput.d

Hopefully that will make the IBus icon show up on the menu bar when you launch a guest session.

Edit III:

I have just rewritten the previously mentioned tutorial. With the new approach to customizing the guest session feature, this question (and many similar questions) are answered much more easily than before.

So a version neutral answer to this question may now be:

Create a special purpose user in accordance with the tutorial.
When logged in to the special user account, change the input method settings (and possibly the keyboard layout settings too) to your liking.
Done.

I tested this successfully on Ubuntu 14.04, and I believe the chances are good that it works fine on 12.04 as well.


Reboot ubuntu without a complete hardware reboot

Try  kexec command it seems to do exactly what you need.

kexec -l kernel-image --append=command-line-options --initrd=initrd-image

from kexec manpage :

kexec is a system call that enables you to load and boot into
    another kernel from the currently running kernel. kexec performs
    the function of the boot loader from within the kernel. The primary
     difference between a standard system boot and a kexec boot is that
     the hardware initialization normally performed by the BIOS or
    firmware (depending on architecture) is not performed during a kexec
     boot. This has the effect of reducing the time required for a reboot.
...
Insert the command-line parameters that must be passed to the new kernel into command-line-options. Passing the exact contents of /proc/cmdline into command-line-options is the safest way to ensure that correct values are passed to the rebooting kernel.

Never tried kexec myself (except maybe during crashdump to load the dump kernel, but it was an automatic process), I would go to single user mode first to stop all the processes before running kexec .


Why Ubuntu always force itself to be in 1440x900 resolution?

To give you specific answers:

Either the kernel or the X video driver (for most modern machines the kernel) queries your monitor to find out what resolutions it supports, tries to figure out which one is preferred (most of the time the highest resolution the monitor says it will do, for most modern graphics devices using kernel mode switching, this is done in driver/gpu/drm/drm_edid.c). The kernel or X then sets that mode as the default. You see the rest of the modes in the output from xrandr. Most people prefer the highest resolution their device will do.

This EDID communications is a two way transaction over a couple of the wires of most modern video cables, including HDMI. It doesn't work for hookups using only composite video cables, for example.

So the quick answer to your title question is that your monitor says it can do 1440x900 and both the kernel and X tell it to do so. I don't know why Windows chooses a lower resolution mode.

Assuming your xrandr output says you have a mode called "1024x768" you can do the following:

Modify the grub linux line you boot from to add video=1024x768@60. That overrides the kernel's choice. You may also have to delete the "gfxmode" line in grub, or modify it to 1024x768. You should interrupt the boot process at the grub menu and press e to edit the choice you want to use. I got this working on my test system (which sets gfxmode to "text" because I don't use the splash screen). You only need to change this if you really care about the resolution of those shutdown messages.
Add the following to /etc/X11/xorg.conf.d/10-resol.conf:

Section "Screen"
    Identifier      "Default Screen"
    SubSection "Display"
        Modes         "1024x768"
    EndSubSection
EndSection

You can use gksudo gedit /etc/X11/xorg.conf.d/10-resol.conf to do this.

That will restricts lightdm and the desktop from start with any but the mode you want. lightdm will start X which respects the mode this file specifies.

Once you have all this working you can add "video=1024x768@60" to the GRUB_CMDLINE_LINUX line in /etc/default/grub. You may need to uncomment and set the GRUB_GFXMODE line to "1024x768" as well. After making changes to /etc/default/grub you need to run sudo update-grub to put them into effect for the next boot.

Again, this isn't needed for lightdm or the desktop, only for the shutdown messages, so you may only want to go through with item 2.

If you are trying to get larger, more readable text there are probably better options available.


Some USB HDDs have firmware that forces them to sleep after periods of dis-use. Maybe this is your problem too.

Automounter is able to wake devices (https://help.ubuntu.com/community/Autofs).

I hope this will help you.


Opening a terminal, running a command, and leaving an interactive terminal open

Install expect and write the following expect script:
#!/usr/bin/expect
spawn bash
expect "$ "
send "yourcommand\r"
interact

(If your shell prompt ends with something different than "$ " - eg. you plan to run this from root - change it appropriately in the third line.)
Configure your GNOME or MATE terminal profile to run this script instead of the shell and start the terminal using that profile (eg. gnome-terminal --window-with-profile=PROFILENAME - make a shortcut to run this command).
That should do what you want: you will see the command being run and should be able to retun to it with up-arrow, and the terminal stays interactive after the command ends.


Install Ubuntu 18.04.1 on external Thunderbolt 3 SSD connected to Dell XPS 15 9570

I've just tried to boot Ubuntu 20.04 from the same Thunderbolt 3 disk and it works.

The machine (Dell XPS 15 9570) is running BIOS version 1.15.0.


How to boot Linux on hard drive from live cd/usb loader

The Ubuntu ISO, by default, does not come with GRUB as bootloader, but it does have GRUB installed and you can use it to install a bootloader in your main disk. To do it, boot from the Live CD, open a terminal (by hitting Ctrl+Alt+T) and run the following commands:

sudo mount /dev/sda5 /mnt

sudo grub-install /dev/sda --root-directory=/mnt/

sudo chroot /mnt

sudo update-grub

exit

Now reboot and your main disk should have a bootloader (GRUB) with the option to boot into Ubuntu.


I had exactly the same problem and this worked for me:

sudo apt-get install cups --reinstall
sudo service cups restart


As a temporary solution, i suggest you put that line into your .bashrc. The only problem is that it will run every time you open up a terminal.


My approach for replacing current Ubuntu with newer

First of all, do backups. They are never extras. Then check twice and thrice what you are doing. Verify that the partitions you are removing are the ones you want to remove, by the way, is not necessary that you remove the partitions, just format them.

If you want, you can reuse the old /home just unticking the format option in the Something Else dialog. That will save you a step. Don't use btrfs for /boot, but ext4. BTRFS is still experimental and may have problems if you use it for GRUB.


Write this off as failure to RTFM... The problem in question was a missing "/" in the file:///...

Would be nice if the error message was a bit more descriptive.


Accidentaly deleted /etc/X11/xorg.conf.original, and now log in no longer works

First terminate the X using:

sudo /etc/init.d/gdm stop

Then reconfigure you're driver using:

sudo dpkg-reconfigure xserver-xorg

And restart GUI:

sudo /etc/init.d/gdm start


OpenStack deployment with MAAS, Juju and Autopilot

Landscape queries MAAS to determine which nodes have multiple network devices. Does MAAS show at least one of the nodes as having two or more MAC addresses connected to networks e.g. if you go on the node page, it should say something like 'AA:BB:CC:DD:EE:FF (on maas-eth1)'

If your nodes are on a secondary network which is not MAAS managed, you will have to manually add that network and associate the MAC addresses with it. See the MAAS docs for help on doing that.


It seems every ScreenCaster on Ubuntu saves in ogg format. You could easily convert your videos with ffmpeg, but if you don't want to do it (why?), you have probably only one alternative: vnc2flv.

There are a couple of requirements (they could be easily installed from official repos):

1) x11vnc

2) Python (2.4+)

Download the package from the developer at http://www.unixuser.org/~euske/python/vnc2flv/index.html#install, extract the archive and (as the developer explains on his site), use python to install the app as:

python setup.py install

And you're done. The app run only by command line. You may find useful instructions on developer's site or by watching this tutorial: http://www.youtube.com/v/DcijI6EagYI&hl=en_US&fs=1&rel=0


Weird SMB mount issue - cannot mount from fstab

OK, solved it. I needed to add

sec=ntlm

to the mount options in the fstab line.


The workaround solution for this problem can be found in the bug-report for the issue.
As posted by user rememberthemer:

I've had the same issue and have found the solution.
The cgi module in apache is not enabled by default or is improperly enabled.
Enabling cgi resolves this issue.
You can use the apache tools:
sudo a2enmod cgi
sudo service apache2 restart
This really should be enabled by default - anyone installing dwww will expect it to work.


Help installing Ubuntu alongside Mac in an external drive (using rEFIt)

If you only have one partition on the external drive (the one you want for Ubuntu), then go with /dev/sdc WD 5000AAV External (500.1 GB) (External).


How to back to the initial minimal installation of libraries

For a dangerous super clean downgrade and then upgrade the system. It's probably more than you want and might require some fixing, but it will be like a new installation.

More likely what you want is a simple removal or purge.

To keep your settings, for subsequent reinstallation:

sudo apt-get remove package_name

To remove the package, when you won't be reinstalling or want to start from scratch:

sudo apt-get --purge remove package_name

After doing the above, for each package to be removed, do the final cleanup:

sudo apt-get autoremove


Why my options in the files in sysctl.d are not permanent? I need to run `sudo sysctl -p` often

There is a reported problem affecting up to Ubuntu 16.04, at https://bugs.launchpad.net/ubuntu/+source/procps/+bug/50093 in which procps.sh which applies the sysctl.conf variable is run too early, and some settings are not applied.

An alternate method for disabling ipv6 is to use a kernel boot parameter as outlines in https://askubuntu.com/a/337736/283721

sudo nano /etc/default/grub

Find the line that contain "GRUB_CMDLINE_LINUX_DEFAULT":

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Add "ipv6.disable=1" to the boot option, then save your grub file:

GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"

press ctrl+o to save, and ctrl+x to exit nano. Finally, update grub:

sudo update-grub

and reboot to load the changes.


Logitech R400 on Lenovo T440s, Ubuntu 14.04 not properly recognized

Create new hwdb file:

sudo nano /etc/udev/hwdb.d/70-keyboard.hwdb

Put this in it:

keyboard:usb:v0E00p0111d*dc*dsc*dp*ic*isc*ip*in00*
KEYBOARD_KEY_070029=f5
KEYBOARD_KEY_07004b=left
KEYBOARD_KEY_07004e=right

Ctrl+O to save then Ctrl+X to exit.
Update udev database

sudo udevadm hwdb --update

Reboot


Questions and Answers

  1) I assume the linux SSD will not come formatted as ext4 from the
  store. So what format should this be from the store, and how do I then
  make it ext4?

SSDs meant to be setup as internal drives are shipped empty. That means you will have to first initialize it with a system of partition tables called GPT or MBR. For Windows 10 more modern GPT is required for UEFI. I prefer to have GPT in all drives rather than mix GPT and MBR drives.

An empty new SSD can be initialized as GPT either from Windows 10 using the disk management utility, or after booting from the Ubuntu Live USB using the The Try Ubuntu without Installing option and then opening the app Gparted.

You can also create partition(s) and format them as ext4 from Gparted, but that is not necessary.

If the SSD is initialized as GPT and left unformatted Ubuntu installer will format it during default installation.

If this is the only disk connected during installation the Ubuntu installer will give you an option to erase everything and format it for you during installation.

If you choose the "Something Else..." (expert mode) you can partition and format the disk during installation.

  2) What format should be the shared HDD so both Ubuntu and Win10 can
  read and write files? My largest files do exceed 4gb, but those could
  be worked on in SSD, and stored on an external drive if need be.

NTFS is the native format for Windows. Ubuntu can read and write to NTFS formatted partitions out of the box.

exFAT is another possibility as the Linux kernel 5.4 (the default kernel in Ubuntu 20.04) supports this format. However, since this is rather new to Ubuntu, there may be some issues. For example, 20.04 and exfat

  3) What format should the swap partition be?

Modern versions of Ubuntu uses a swap file by default. So you don't need a swap partition. A swap partition is not created during default install process. Linux-Swap has its own format in case you want to create one beforehand or during expert mode installation.

  4) Is there a preferable format for external drives so the files can
  be accessed on all linux, windows and mac?

NTFS seems to work in all three OSes.

  5) Any advantages/disadvantages to dual booting separate drives, as
  opposed to split partition?

If you have one fast drive and one slow one (say NVMe and SATA SSDs) then it makes sense to put both OSes in the faster drive. Thanks oldfred's comment above.

To be clear, not all SSDs are equally fast. Particularly, SSDs that use NVMe protocol are faster than SSDs that use SATA protocol. If your computer has an m.2, PCIe, 2280, NVMe SSD, then that may be faster than the 2.5" SATA SSD.

If you have two NVMe SSDs, then put Windows in one and Ubuntu in the other.
If you have two SATA SSDs, then put Windows in one and Ubuntu in the other.
If you have only one NVMe SSD and the other SATA SSD, install both Windows and Ubuntu in the NVMe SSD using the install Ubuntu side-by-side Windows option.
If the choice is between SSD and HDD, install both Windows and Ubuntu in the SSD using the install Ubuntu side-by-side Windows option.

The only disadvantage of putting both Windows and Ubuntu in the same SSD is that some future Windows updates/upgrades may overwrite the Ubuntu bootloader in EFI System Partition (ESP). When that happens the computer will boot straight to Windows. You will need to run boot-repair from an Ubuntu Live USB to fix it.

Putting the two OSes in two SSDs allows you to have two separate ESPs, one in each SSD. This way Windows has its own ESP and Ubuntu has its own.

  6) Does the USB need a specific kind of formatting for the Ubuntu
  install?

Ubuntu reads most USB out of the box just fine. Just plug and play.

Two Related Questions

Dual Booting win 10 and Ubuntu 18.04 on two separate physical ssds

Ubuntu Studio on Seperate Hard Drive

Hope this helps


UMTS/HSDPA Data SIM Card on Ubuntu 14.04

Go to System Settings - Software and Updates - Additional Drivers

I have gut feeling your module will be there and it will need to download additional drivers. (best doing of this is when you have some alternative connection available)


how to change directory to a local drive ..in terminal?

to change your current position to local drives or partitions in NTFS file format within the terminal.first open the terminal ctrl+alt+t and then follow following commands

$ cd /media
$ ls
check here for your user name and use change directoy command to move in your user name folder

$ cd /media/user-name

(again do list command and see all your local drive will be there)

I hope it will solve your query.


here are your possible solutions:

if you can't access the server (website) firstly try to ping it to get response:

ping twitter.com -c4

you must get e.g.:

ping twitter.com -c4
PING twitter.com (199.16.156.6) 56(84) bytes of data.
64 bytes from 199.16.156.6: icmp_seq=1 ttl=246 time=134 ms
64 bytes from 199.16.156.6: icmp_seq=2 ttl=246 time=132 ms
64 bytes from 199.16.156.6: icmp_seq=3 ttl=246 time=133 ms
64 bytes from 199.16.156.6: icmp_seq=4 ttl=246 time=133 ms

--- twitter.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 132.808/133.499/134.014/0.629 ms

that means everything is ok.

Other solutions install tor

sudo apt-get install tor

Then in Mozilla go to edit/preferences/advanced/network/settings choose manual proxy and enter in the Host tab 127.0.0.1 and port 9050 and press ok. Done.

Or install Tor-Browser bundle:

sudo add-apt-repository ppa:webupd8team/tor-browser

sudo apt-get update

sudo apt-get install tor-browser


Trimming variable text from string lines

You are close, but asterisk * in sed (or more accurately regexp regular expression in this context) means zero or more of the preceding character. A full stop/period . means any character so if you ran:
sed -i 's/>chr5.*/>chr5/g' file.txt
it means match zero or more of any character and would likely do what you are expecting.


Sometimes (Not every time) Kubuntu 13.04 fails to play sounds

I had similar issues and also with intermittent freezing then read on a post that the Oxygen theme coupled with GTK are problematic - went into sys prefs -> workspace -> desktop themes -> added glassified, sound is back and freezes appear to have evaporated for now. running plastik window decoration and oxygen white cursor.


Amith, this thing just happened with me too. I found my solution by myself, is just tip Ctrl+Alt+Tab and select the "File Operation" that you will get the copy-past progress window

I know that could be late to answer this, but I think that this answer can helps people with the same problem.

Edgar.


Upgrade from 10.04 to 11.04, must maintain minimum kernel 2.6.38

LZO compressed BTRFS volumes are not supported in 10.10. Therefore we cannot upgrade 10.04 to 11.04 with a modified kernel via the upgrade path from 10.10.

In your case I would backup /home before I proceed to avoid data loss.

We are able to perform a fresh install of 11.04 with the option to keep you /home directory untouched - that is the path I would recommend here.

The installer does give you an option to "Upgrade from 10.04 to 11.04" but this is in no way the upgrade you expect as it is unable to restore sources, user accounts and applications. You will have to backup these manually and reinstall later. All user settings from /home are preserved however.


Can't select Lucida Sans Typewriter as font for Konsole

How did you install the font ?

Here:

Donwloading the Lucida Sans Typewriter Regular font file (LTYPE.TTF) from the net.

System Settings > System Administration: Font Installer; Add.

The Lucinda Sans Typewriter is under the Personal Fonts.

And it is available for the Konsole.


NM broken on new install - not saving oVPN pwd or init mobile PPP

You've likely found a solution by now, but I ran into a similar issue and so I figured for anyone who might find themselves in a similar bind the issue I found related to this bug,

Launch Pad bug report

The solution being to remove the active GConf file for NetworkManager for the current user, so something like:

mv ~/.gconf/apps/nm-applet/%gconf.xml{,.bak} /var/tmp

Then log out of the user account and back in again and if this is the bug that you've fallen prey to you should be good to go ( this thankfully worked for me ).


What should look like example network configuration for maas/juju?

You can check out the documentation for MAAS online too if that helps. MAAS assumes you have several nodes, and the easiest configuration would be for these to be in a separate subnet with DHCP controlled by MAAS.

I'm not entirely sure what you expect a diagram to show you. If you could explain a little more what you are trying to do or what you expect a diagram to show, we may be able to help you further.


Install ubuntu alongside windows 10 with 4 partitions already present

Backup first, things can go very wrong when changing partitions.  Then it looks like you have "dynamic" partitions, instead of "basic", which is a problem -- those "dynamic" partitions need to be converted to basic first.  Then it looks like you have enough free space in the "G:" partition (59G) for a root and swap.  "G:" is 100% free, so looks like it may be deleted, then the Ubuntu installer can make the partitions needed in the free space (or do it yourself in "something else").

It isn't clear to me if this is a UEFI machine, or what disk partitioning (gpt or msdos) is used.  If msdos is used, then you will need an extended partition to hold the new logical partitions you create.  If gpt, then you can just make the new partitions.


Error installing Emacs 24 on Ubuntu 12.04

It seems like you have a package (ilisp) in your distribution that is having problems upgrading, and that makes the whole upgrade to fail.  Every file in your directory /usr/lib/emacsen-common/packages/install will be executed with emacs versions (new and old) as arguments as part of the upgrade process.  If one of them fails, the upgrade will fail.

You have two options here:

Debug the script ilisp at that location, find out why fails and workaround it.
Remove the script (or store it somewhere else) so that the upgrade does not fail.  This is the easiest solution, but a little risky (you always can take a look to the script to know what you would be missing).


KVM bridge guest can access Internet but LAN cannot access guest

Issue resolved!  As pointed out by @psusi this was a (slightly tricky) firewall issue.  The problem was the following: Windows Server firewall distinguishes between three network types: private, domain, public

As you might have guessed, the guest firewall rule I had created to allow pings was assigned to private by default, whereas the Ethernet adapter was automatically made a public network.  Therefore, the firewall was blocking all pings (except those made on the guest itself).

Solutions:

Add public profile to all relevant firewall rules in the Windows Firewall (in Properties > Advanced tab), OR:
Change network type to private (see this link )

I hope this helps anyone confronted to a similar problem in the future.


As of time of writing, I think you can't mount your google drive locally. The best bet is to use a program like google-drive-ocamlfuse, which allows you to access your locals locally at the same time sync said files if they weren't created via Google Drive.
Please note that requires you to use a ppa and use of the terminal.
Installation

sudo add-apt-repository ppa:alessandro-strada/ppa
sudo apt update && sudo apt install google-drive-ocamlfuse

Setting your Google Drive Folder
Make sure you have a web browser for this step.

google-drive-ocamlfuse
Follow the prompts that you will get.
mkdir -v ~/myGoogleDrive this will allow you to create a local copy of your Google Drive folders
google-drive-ocamlfuse ~/myGoogleDrive this will tell the program to mount the local copy
df -h to make sure it's mounted or you can cd to said folder and ls to see the contents


Same problem here. Solved by

purged nvidia*
did a sudo dpkg-reconfigure compiz

After that it worked for me.


Read the makefile for answers.
make is great, but it's not magical. The make application can only do what it's instructed to do (like any application). Those instructions are in the makefile.
If there are 'install' instructions in the makefile, then sudo make install will work, otherwise it will fail.
Similarly, make needs 'uninstall' instructions for sudo make uninstall to work.


Facebook Messenger app/notifications on Linux 2019?

There is an app called Caprine which can be used as Facebook  messenger. The software offers .deb, .snap, and .Appimage packages to make it easy to install.
According to their github page

  Desktop notifications

  Desktop notifications can be turned on in Preferences.


allow incoming calls to interrupt mobile broadband connection

OP has resolved the issue themselves,

  Sorry for the very long delay in responding. It may well be a problem
  with the phone. Sometimes it allows interrupts, sometimes not, and now
  that I think of it, this is the behaviour even under windows. (Nokia
  E63). It's just an issue I'll have to live with, I think.


I just installed Ubuntu Server 12.04, now I can't browse the internet

First of all you need to figure it out what's causing the problem. You may try in your browser to access a website not by a domain name, but by ip, ex: instead of google.com you could write 74.125.225.8 and if in this case it will work means that the problem is in the DNS. Otherwise you could see the configuration of your network interfaces by issuing the command ifconfig or ifconfig eth0 if assuming that your Ethernet card is eth0.

In order to find the dns server assigned to your server issue this command: nmcli dev list | grep DNS. If there is no DNS you could add one (ex. google's free dns 8.8.8.8). In order to add a dns you should add a line like the one below to /etc/dhcp/dhclient.conf

prepend domain-name-servers x.x.x.x, y.y.y.y; , where x.x.x.x or y.y.y.y is the dns server.


Can I connect the wifi and create hotspot with only 1 wireless card?

Also in Linux this should be possible.

In the terminal type in

sudo iw list

and look for the part, where interface combinations are mentioned.
This will tell you about the capabilities of your WiFi hardware/driver.
You get info about which modes can be used in parallel (if supported) and how many channels are available for this (on most standard HW you will be limited to a single channel).

I have not tried it myself, but here is one possible way to setup an AP in parallel to being connected to another AP in Ubuntu.


Start Ubuntu Live Session on a HP Pavillon G6

Here is what worked for me :

disable secure boot in the BIOS options
when the option Try Ubuntu without installing it appears, press E
in the second line ending with quiet splash ---. Delete quiet splash --- and replace with nomodeset acpi=off
after that I could see command lines on the screen while the system was starting. But then I got this message fired repetitively :

/init: line 7: can't open /dev/sr0: No medium found

The solution was just to change the usb port used for the stick! I did it following the advice found here on Launchpad. It was previously plugged on the USB port on the right side of the computer, and I switched to the one that is farthest from you on the left side.

And I could finally start the live session.


Ubuntu, The world's most popular free OS is always free.

Once its released you can download 14.04 free of charge.

It will be available in a Desktop version, Server Version, and Cloud version.

For more info take a look at Ubuntu.


Atom Editor Opens In Background By Default

You don’t have to start atom in the background because this command doesn’t start the atom process directly, but rather just a starter script. The /usr/bin/atom script evaluates CLI options and sets a bunch of variables before starting the real atom process in a background subshell, see line 180 et seq. (comments mine):

# start a subshell in the background (note “&” below!)
(
# start the Atom process with the current script’s PID redirecting its output to nohup.out
nohup "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@" > "$ATOM_HOME/nohup.out" 2>&1
# in case of any error, print the output and exit
if [ $? -ne 0 ]; then
  cat "$ATOM_HOME/nohup.out"
  exit $?
fi
) &

Let’s see which file is the real atom executable started here:

it starts $ATOM_PATH, which is set on line 163:

ATOM_PATH="$USR_DIRECTORY/share/atom/atom"

$USR_DIRECTORY is set on line 150:

USR_DIRECTORY=$(readlink -f $(dirname $SCRIPT)/..)

This equals:

USR_DIRECTORY=$(readlink -f $(dirname /usr/bin/atom)/..) # equals
USR_DIRECTORY=$(readlink -f /usr/bin/..) # equals
USR_DIRECTORY=$(readlink -f /usr) # equals
USR_DIRECTORY=/usr

Now we have the full path to the atom executable: /usr/share/atom/atom. The output of file confirms that:

$ file /usr/share/atom/atom
/usr/share/atom/atom: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/l, for GNU/Linux 2.6.32, stripped


WiFi slow in Ubuntu 20.10, but not in Windows 10

In your paste, we see: "disabling HT/VHT/HE as WMM/QoS is not supported by the AP" HT refers to high throughput and VHT to very high throughput; that is, speed! AP refers to the access point, in home networking, usually a wireless router.
Is WMM and/or QoS an available setting in your router?
Please see: https://en.wikipedia.org/wiki/Wireless_Multimedia_Extensions
A great many things work perfectly in Windows and less than perfectly or, indeed, not at all in Linux and vice versa. I believe that the wireless driver is completely different in each operating system.
Linux will, indeed, always have driver issues, but for several reasons that may not be apparent to all of us. First, new devices are developed and released every day. The manufacturers are in a constant arms race to have a better device with more features and, often, cheaper. In almost every case, they have no concern for the 3% or so of Linux users and therefor don't provide a perfectly working driver.
Second, most new Linux users come to the party with what they have now that they bought with working Windows drivers. That device may work well or not at all in Linux. Experienced Linux users always check the forums and are sure the device works in Linux.


I am not sure why your iptables configuration is not loading. It could be because you are using domain names, rather then ip address

IMO easiest "solution" is to use iptables-persistent

First, configure or load your rules (you will be asked to save the current set of rules as a part of the install)

Then run

sudo apt-get -y install iptables-persistent

For additional information, including modifying your rules in the future,  See
 http://www.microhowto.info/howto/make_the_configuration_of_iptables_persistent_on_debian.html

and (for ip address vs. domain name)

iptables-persistent doesn't load rules on boot


When you are using the listen mode -l you must specify port. For example:
nc -l 3000  # Listen at port 3000 to all network interfaces

nc -l4 3000  # Listen at port 3000 to all IPv4 network interfaces

nc -l6 3000  # Listen at port 3000 to all IPv6 network interfaces

So actually you do not need an additional option like -p to instruct the nc command at which port to listen. The examples that uses -lp option probably are based on an old version of nc or the writers didn't read the manual like you :) Also probably when the -lp combination is used the -p option is just omitted.
In addition, here is how to create a listen service, based on nc: How to listen new port Ubuntu Server from command line?


i suspect its either a kernel issue, I have a rx580 gpu and since a recent kernel update have suffered massive lagging issues when using.


Your KVM host is probably running the libvirt-bin service (the default Ubuntu way of running KVM guests). This service runs a dnsmasq instance for the virbr0 interface (default network configuration for libvirt). Dnsmasq is a service to provide DHCP and basic DNS recursion. So, basically, your KVM host is running a 'simple' DHCP server for the KVM guests in the virtual network named default (by default). In virt-manager it looks like this:

Firstly, dnsmasq will 'cache' the DHCP leases provided to clients (KVM guest in your case). So if a client asks for an IP again before the lease is expired, it will be assigned with the same one as before. This assignment is based on the MAC address of the client. The MAC address of the virtual network card of the KVM guest is set when you create/define a KVM guest with a network interface (or add an interface to an existing guest).
Secondly, your DHCP client caches the previous lease and in successive DHCP requests it will ask for the IP it got before (which will probably be honoured if the DHCP server client IP pool isn't exhausted).


Difference between Ubuntu and Xubuntu when deploy to Server?

If you are installing an Ubuntu server it doesn't by default have any of Ubuntu/XUbuntu desktop components. so there is no difference as such. I would like you to provide more information on what exactly you are trying to do. It will make it easier for people here to provide their suggestions.


How to build binary packages in Launchpad?

The following quote from the help page for packaging and using PPA makes it clear that the build machines at Launchpad.net automatically builds binary packages.

  Create your source package, upload it and Launchpad will build
  binaries and then host them in your own apt repository.

So, if you have properly packaged your source and the source is built without errors, then the Launchpad.net would have built binary packages for you and then send you an email when it completes. You can check the status of your packages on the following page:

https://launchpad.net/people/+me/+archive/ppa


Why is root user denied access to a file?

tl;dr if you run

export PATH=.:$PATH # wrong

then your above mentioned set of commands will ~~work~~ however avoid this solution ... Why ? ... when you run an executable giving it either a full path

/my/cool/binary

or relative path

./../cool/binary # notice this begins with a ./  period slash

you directly control where the executable is coming from ... however if by mistake or by some rogue process your env var PATH gets updated with a prepend of a dir(s) which contains (wrong or malicious) executables with matching names

export PATH=/wrong/dir:/hackers/own/dir:$PATH

and you just use

myexecutable_name  # using naked binary name

you could be running

/wrong/dir/myexecutable_name

when you intended to run

/actual/good/dir/myexecutable_name

which is why production code or anything run as root should explicitly spell out where the binary is coming from

Now going back to your original question ... your code assumes PATH includes current dir '.' which it should not contain for prod ids or root

export PATH=.:$PATH # wrong - bad for root or prod id yet handy for dev folks

instead execute using full path ... problem is you want to avoid possibility of running wrong binary which happens to be in your current dir when you intended to run binary from the standard dir as defined in your PATH

Not convinced ?  spend some quality time with critical infrastructure code especially which is at an intersection between responsibilities ... where team B binary is executing a binary from team A and you will always see full path used ... another inspiration is to beef up on namespace conflicts


The problem is that the app is serving files that reside inside home directory, which gets unmounted when disconnecting.

I've got the answer from golang-nuts group here.


Make sure the hardware switch is turned on when in windows. Then restart and it should work in ubuntu.


Can I connect my Ubuntu Desktop to Google Cardboard?

I've made a VNC app for Google Cardboard that you could try. It comes in a free version with ads and a paid version, but if you're up for it you could build it yourself since it's open source.

app: Cardboard VNC Free
source code: CardboardRemoteDesktop

To get the most out of it I recommend using a lower resolution (or large fonts) on your VNC server. I prefer using a wireless keyboard/mouse connected to the server, but you can also control the pointer with the headset/trigger and use a bluetooth keyboard.


What would be the consequences of uninstalling the net-tools package in a default Ubuntu system?

Nothing really, most of the important stuff either depends on the iproute2 package (ifupdown, isc-dhcp-client, …) or uses the kernel interfaces (through libnl-3-200) directly (network-manager, hostapd, iw, …).

Of course some older software (especially software installed from outside of the repository) might still expect net-tools commands to be present as they were available on most unixoid systems for a long time. If you uninstall this package, then that is something you should keep in mind.

Anyways: I just uninstalled net-tools myself… No issues yet!  If something does happen I'll try update my answer accordingly – it's pretty unlikely through.


I've had weird problems where the mic was muted and I had to use pavucontrol to unmute it. You can install the additional pulseaudio utilities:

sudo apt-get install paman padevchooser paprefs pavucontrol pavumeter

Check the input tab in pavucontrol and make sure its not muting your mic. You can also play with the configuration tab in case that is wrong, but note your initial setting first.

Keep in mind what arochester and Joao are saying, make sure pulseaudio is selected in the skype audio options.


Packaging jre 7 binary file license questions?

If you include the binary you will also need to include the new license (and abide by it yourself).
See also: http://www.java.com/en/download/faq/distribution.xml

Can I distribute Java with my software?
Yes, you can provide Java with your software provided you abide by the terms and conditions of Java binary code license.


As recommended here, try deleting the Adobe cache:

Close Firefox (or at least any tabs that are actively using Flash) and delete the Adobe cache using this command:

rm -rf ~/.adobe

You will need to do this for every user on the affected system. This will cause you to lose Flash cookies and other information, so Flash games like "Machinarium" will be affected.

If that concerns you, either back-up the important information or navigate into the cache and be more strategic on what you delete.


Replacing Mint with Ubuntu on a Dual Boot Laptop

You are on the right track.

Boot the Ubuntu liveDVD or liveUSB, during installation choose the something else option, select the Mint partition as your / mount point and select it for formatting to erase Mint. Select your current Swap partition to stay as swap (might be already selected, but it's better to check) and go ahead.

Ubuntu will replace Grub and you shouldn't have problems with Windows or data. However, since this is a major operation, I would recommend doing a backup to an external drive.


External monitor not detected on Ubuntu 18.04

I solved it by purging, then reinstalling the nvidia drivers

sudo apt-get purge 'nvidia*'
sudo add-apt-repository ppa:graphics-drivers
sudo apt-get update

Then using the Software & Updates tool's Additional Drivers tab and installing the latest nvidia drivers


What you're looking for here is powerline.

You can install it by following these steps :

sudo apt install powerline

then

gedit ~/.bashrc

and add the following to the end :

if [ -f `which powerline-daemon` ]; then
  powerline-daemon -q
  POWERLINE_BASH_CONTINUATION=1
  POWERLINE_BASH_SELECT=1
  . /usr/share/powerline/bindings/bash/powerline.sh
fi

now close and reopen your terminal.


General

The basic use of $ as in $USER is to tell the shell, that you talking about a shell variable.

See man bash and scroll to (or jump to)

Special Parameters
EXPANSION
Parameter Expansion

But it might be a bit difficult to digest the descriptions in man bash. You might find it easier to read some tutorial, that you can find via the internet, for example

Variables! Temporary stores of information
The bash-hackers wiki

Examples

The shell variable must be defined (either generally in the shell or specifically by you). For example USER is a general variable, but subnet is not defined in my computer, so I would have to declare it,

subnet="some-text-or-number-string"

Then it can be viewed by

echo "$subnet"

and used in other commands (like you want to use it).

IP is not defined in my computer, but standard variables use upper case, so it is a good idea to use lower case for your own variables to avoid conflicts.

ip=192.168.0.2

You can check it with

echo "$ip"

and remove it with

unset ip

Adding examples according to tips from @Terrance and @Jo-ErlendSchinstad

The command you are looking for with nmap can be done with ip route like so:

nmap -sP $(ip route | grep kernel | awk '{print $1}')

where $(a command line) lets you use the [standard] output of a command line in the shell context, explained with the following simpler example,

myusername=$(whoami)

Which can be viewed by

echo $myusername

A simple calculator for integers is created with double parentheses like so,

$ echo $((1+2))
3

$ r=5
$ area=$((r**2 * 314 / 100))
$ echo "the circle's area is approx. = $area"
the circle's area is approx. = 78


Do I have to use Thunderbird to get email notifications?

No, you can use a lot of other email clients like:

Unity Mail
Evolution
Geary

to get email notifications. There some more. The german Ubuntuusers Wiki has a nice list with email clients.


Starting Apache on Ubuntu 16.04: service doesn't and apache2ctl does work

My apache2.conf had a line

PidFile /var/run/httpd2.pid

but Ubuntu 16.04 expects the pid file to appear as /var/run/apache2/apache2.pid.

So my Apache started well, but the apache_wait_start() function in /etc/init.d/apache2 that gets used by service apache2 start never saw a pid file and thought the process didn't start.

apache2ctl apparently doesn't check if there is a pid file (or maybe reads the apache2.conf where it is).

After fixing the filename, all runs well now.


Power off / reboot fail - Lenovo IdeaPad 100

I tried with Ubuntu 14.04.3 64bit

-) GRUB_CMDLINE_LINUX_DEFAULT=""
-) GRUB_CMDLINE_LINUX_DEFAULT="quiet splash reboot=bios"
-) GRUB_CMDLINE_LINUX="reboot=efi"
-) GRUB_CMDLINE_LINUX="reboot=bios"
-) GRUB_CMDLINE_LINUX="reboot=acpi"
-) GRUB_CMDLINE_LINUX="reboot=pci"

nothing worked so i restored the default doc.

In the BIOS I changed at the Table "EXIT" "OS Optimized Defaults" to "Win8 64bit" and klicked "Load Default Settings". Saved and it works now with Kernel 3.19.0-51-generic

hope this helps


Toshibha Tecra wireless driver not detected

You will need backports for that card in 12.04

sudo apt-get install linux-headers-generic build-essential

wget https://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.19-rc1/backports-3.19-rc1-1.tar.gz

tar -zxvf backports-3.19-rc1-1.tar.gz

cd backports-3.19-rc1-1

make defconfig-iwlwifi

make

sudo make install

And you will need firmware

wget https://wireless.wiki.kernel.org/_media/en/users/drivers/iwlwifi-7260-ucode-23.15.10.0.tgz

tar zxvf iwlwifi-7260-ucode-23.15.10.0.tgz

sudo cp iwlwifi-*.ucode /lib/firmware

Reboot

If you realize that your wifi doesn't work in the future, it is likely that a kernel update occured and you will need to

cd backports-3.19-rc1-1

make clean

make defconfig-iwlwifi

make

sudo make install

Reboot for wifi


You have a few different options here:

If ntfs-3g is installed, then you can just use the following instead of mount:

$ ntfs-3g /dev/disk/by-uuid/4E1AEA7B1AEA6007 /mnt

You can check if it installed with dpkg -l | grep ntfs-3g or sudo snap list | grep ntfs-3g
If ntfs-3g isn't installed, then you can install it with sudo snap install ntfs-3g
Finally, I know on at least Arch or Redhat that you don't have to explicitly run mount with the ntfs-3g type option as it looks in /usr/bin/mount.ntfs, which is just symlinked to /usr/bin/ntfs-3g if ntfs-3g is installed. So you can just run:

$ sudo mount /dev/disk/by-uuid/4E1AEA7B1AEA6007 /mnt

Good luck!


How to send to print (many) selected files in a directory instead of one by one?

I have done a script that will send the desired files to the default printer: you may have to modify it to select the folder that your files are in and run it once for .pdf and then for .txt:
find /home/mike/KeyGuides/ -type f -iname '*.txt' -print0 | while IFS= read -r -d '' f; do lpr "$f"; done. It does work as I have just tested it; just make sure the desired printer is set up as default.

If you have any problems, I'll see if I can modify it as necessary. (You can use other options for lpr if you need -see man lpr) It should work for most printers- it is successful with my Canon IP4700.

This version of the script also moves each printed document to a directory (which you must have created previously), so that when the script is run only new documents are printed:

find /home/mike/Duck/ -type f -iname '*.txt' -print0 | while IFS= read -r -d '' f;
 do lpr "$f" && mv "$f" /home/mike/Duck/printed/ ; done


What is the content of mod_evasive Log File

After inspect the source files on https://github.com/jzdziarski/mod_evasive

The number inside the log file is the Process ID returned by the function getpid() which

  returns the process ID (PID) of the calling process.  (This is often
  used by routines that generate unique temporary filenames.)

check this page for more details https://www.man7.org/linux/man-pages/man2/getpid.2.html


First you will have to disable hibernation and Fast Boot in your Windows 10 installation.
Boot into Windows, open command prompt as administrator and execute this command:

powercfg /h off

To disable Fast Boot open Control Panel (the old version - not the modern design),
select the Energy Settings, enable show hidden settings and uncheck Fast Boot.

Shutdown the machine (do NOT reboot) completely.

Reinstall the GRUB bootloader to your Ubuntu installation  in EFI mode.
Boot from the Ubuntu install media - then  open a terminal and execute:

sudo mount /dev/sda8 /mnt
sudo mount /dev/sda2 /mnt/boot/efi
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo chroot /mnt
grub-install /dev/sda
update-grub

Note : sda = disk | sda2 = efi partition | sda8 = system partition |    (taken from pastebin output)

Boot into BIOS and change the boot order in UEFI settings.
Select Ubuntu to be the default operating system to boot.
Now you can select which system to boot from GRUB menu.

I recommend to not use any 3rd party tools as they may bring along issues in some time later on !


My bluetooth device can not find any other devices' signal - Ubuntu 18.04?

Try in terminal

bluetoothctl

Then

power on

Then

scan on

should all be done back to back, if that don't work, try installing Blueman GUI program with this command

sudo apt-get install blueman -y


There is a lovely indicator applet that is not in the repositories but is here on launchpad.

Here is a picture of it in action:

Here is the code to install it via terminal:

sudo add-apt-repository ppa:lorenzo-carbonell/atareao

sudo apt-get update && sudo apt-get install my-weather-indicator


How to share a folder with a host machine?

Use samba in your guest OS and share them in your network, follow guides online to make it secure and if you just want to copy files from guest to host then make them read only.  That way it's only available when your guest vm is on and even then it's read-only.

I have had no problems drag and dropping files between guest and host OS with Linux as a guest and Windows as host.  The only issue I have had is using a KDE linux distro as a host since they dont account for plasma and as such it never puts the file where I want it, but I figured out that the file gets transfered to a tmp folder and now I just have a link to that folder in my desktop widget.  I don't remember having that same issue with it as a guest on a windows host though.

When files are dragged and dropped with a Kubuntu host/guest they go into a temp folder: /tmp/VMwareDnD/ so you could search there if they don't show up where you dragged them to.


Check hash (MD4, MD5, SHA-1, and CRC) on Ubuntu 12.04 and 12.10

Er for MD5 and SHA1 you can do

md5sum (file name)

for md5sum and

sha1sum (file name)

for sha1sum in terminal. But then I don't understand why you need CRC sums for Windows 8 since I think the official checksums are for sha1.


I had the same problem, where some images had this border whatsoever, and for me the solution was turning the hardware acceleration on (in Chrome).
Hope it helps!


Problem in showing Unicode characters in Gnome Files titlebar

From the first glance this can be a font issue or a locale issue.

When I enlarged your first screenshot I noticed that all missing symbols have the same code in them - U+FFFD. This code belongs to Unicode replacement character, which is used to replace an incoming character whose value is unknown or unrepresentable in Unicode (this info is taken  from the Character Map). If your issue was font-related, then the missing symbols would have the different codes. That's why the locale issue is more probable cause.

You mentioned that the same folder name was displayed correctly when you booted the system from USB. Comparing locale settings in both systems using locale -a can point out the missing locale(s). In your case it was Farsi/Persian (fa_IR) locale which was absent in the system and adding it fixed this issue.

When you maximize Gnome Files' window, its titlebar text is placed on the top panel. No wonder that it is displayed correctly, because top panel uses the same font as a breadcrumbs element (that's the trail 851 GB Volume > Downloads > ... on your screenshot) which also displayed your folder name properly. This font is defined by the setting font-setting, which affects all Desktop Interface elements. Titlebars font is defined by another setting - by titlebar-font. But in your case both of them are Ubuntu, so my idea about some broken font substitution was wrong, as Ubuntu font contains all symbols of Arabic alphabet.

I also thought that maybe additional symbols of Persian alphabet are missing, but Arabic symbols are shown properly. But it also proved invalid, as some Arabic symbols are also broken. Moreover some Arabic symbols are always shown, but some are always missing.


mysql server in ubuntu 13.04 not showing databases

Looks like there is another mysql-server running in your computer. So when you log in to mysql using terminal, you are loggin into that one (Not the XAMPP one).
To connect to mysql server in XAMPP you have to run /opt/lampp/bin/mysql -u root


Won't boot, blinking cursor after power-outage

First of all I recommend you to be sure, that your linux partition works fine. I think, you can check  it under your MacOS. If no - get the Ubuntu LiveCD\USB and try access root partition, boot folder (/boot partitaion, if divided). If all seems to be working right you have to check your bootloader settings.

You also can try boot manually to your system from Live distributive with GRUB. You have to  enter GRUB console mode, select your root device, kernel file and process booting


installing Ubuntu Openstack - Canonical Distribution on a virtual environment

From OP's second comment;

I resolved the problem with re-installing MaaS via the Ubuntu ISO, without using the CLI.


16.04 Suffering slow boot times on Crucial MX300 SSD. Systemd-analyze blame shows different services taking long times each boot

Your /dev/sdb is getting I/O errors. That's not good for a new SSD.

First, review the SMART data and run the short test. Open the Disks app, select the SSD in the left pane, go to the "hamburger" icon, select SMART Data & Tests. Review the data, and run the short test. Warning... do NOT run a badblock test on a SSD.

Second, go to the Crucial web site at http://www.crucial.com/usa/en/support-ssd-firmware, and download the latest firmware dated 5/16/2017. The new firmware better handles exactly the errors that you're getting. FIRST backup your important data, THEN install the new firmware.

Continue to monitor /var/log/syslog for sdb errors...

In terminal...

grep -i sdb /var/log/syslog*

If they continue, log a warranty ticket with Crucial.

Update #1:

Problem was ultimately solved with kernel parameter libata.force=noncq.


How to mount HFS+ drive and ignore permissions

bindfs is the answer. It will take an already mounted file system and provide a view of it with whichever uid you'd like:

sudo apt-get install bindfs
mkdir ~/myUIDdiskFoo
sudo bindfs -u $(id -u) -g $(id -g) /media/diskFoo ~/myUIDdiskFoo


This is just a speculative guess -

I'm sure that you probably have read the same reports as me - your particular graphics card has significant issues probably either or both with the default intel driver and/or the actual kernel.

Can i suggest you first backup you system using a good imaging tool such as Clonezilla.

Try adding the glasen ppa here to see if an updated intel driver makes any difference.

The latest backported maverick kernel is v2.6.37-rc2 which can be installed using the instructions from here

However - if you want to take this step - my recommendation would be first to load an image of Natty onto a USB stick and see if your graphics issues are resolved.  The reason for this recommendation is that Natty will have the latest stable graphics driver and most up-to-date stable kernel.

Other-stuff to check:
Note - GLXGears isnt a good measure of measuring performance - it doesnt give an accurate view on performance.

Login as Ubuntu Classic and check that no visual effects are enabled (right click the background and check that Visual Effects are set to None.   What is MineCraft FPS?  i.e. this check will ensure that Compiz is not your issue.
Double check that you dont have Metacity Compositing mistakenly enabled

gconftool-2 -s '/apps/metacity/general/compositing_manager' --type bool false


I was struggling with this as well. Apparently this is a known bug:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-meta/+bug/1872504
First reply says Installing exfat-fuse and exfat-utils results in the correct behaviour This only half worked in my case. I had to specify the timezone when the SD card mounts. I did this by editing the fstab file (adding option tz=UTC), so it always mounts with the appropriate time.


How do I change Rhythmbox's visible column order?

Rhythmbox does not have this capability built in.  It is a request that's been hanging around since 2003.

However, Rhythmbox does have the ability to include external plugin modules - these provide extra capabilities and because of Rhythmbox's rich API allows those modules to actually change core Rhythmbox capabilities.

Thus - this is what I've done.  I've adapted my plugin called alternative-toolbar to include just this capability - you can now drag by the column header to any position you required.

before & after…

Artist has been moved to the more logical position after the title & the genre has been moved from the end to a more prominent position.

To install this, use the package rhythmbox-plugin-alternative-toolbar from my PPA as explained in this Q&A.

Alternatively, hop over onto the project website and install via Git or stable release.

In all cases you need v0.16 or later.

Source for this answer is my blog.


Steam(Windows) on Ubuntu 12.04 using PlayOnLinux

What I ended up doing was opening up PlayOnLinux-->Tools-->Manage Wine Versions. I added Wine 1.7.11, closed that window, clicked on steam, clicked on configure, picked Wine 11.7.11 from the Wine Version drop down and I was able to run steam after that.


What does it mean when Update Manager wants to do a "Partial" update?

Summary

or "I don't really care if I keep messing things up and wasting my and others' time with preventable problems, and you have 30 seconds to convince me to care!"

If you use Update Manager to upgrade your packages, and it offers to do a "Partial Upgrade", do not accept it without thoroughly checking what packages it offers to remove, upgrade and install. If you do, you will most likely end up removing packages that shouldn't be removed, and waste time and effort repairing your installation and asking for assistance.

Most "Partial Upgrade" situations occur due to package archive inconsistencies, which will typically be resolved within a few hours. If your package manager is confused, and so are you, simply wait and hold off the updates until things settle down.

Short Version

or "Hmm, so I shouldn't blindly do "Partial Upgrade"s and dist-upgrade? I didn't know that..."

Due to the fact that uploads & replications to mirror repositories are sometimes not synchronous, dependencies of certain packages may arrive later than the dependent package. This causes package management tools such as Update Manager to interpret the situation as requiring a dist-upgrade to install new packages and/or repair packages in a "reqreinst" (requires reinstallation) state. What Update Manager performs when doing a "Partial Upgrade" is a dist-upgrade.

Most of the time, a "Partial Upgrade" is undesired. The situations where it's needed are limited to new packages obsoleting old ones (as in the case of the software-center package replacing software-store) and package removals from the archive.

Long Version

or "I think I know what I'm doing! Tell me more!"

In its normal operating mode, Update Manager will not offer to remove packages. This is the equivalent of "apt-get upgrade"ing your existing packages. In "Partial Upgrade" mode, it can. Sometimes, the removal is warranted, such as when a package is obsoleted by a new one. Other times, it will not be, and a "Partial Upgrade" can offer to remove important packages due to missing dependencies.

Now, the key question:

"How do I know whether a package is actually meant to be replaced or removed?"

There's more than one way:

Check the changelog of the package in question. You can do this via "Package > Download Changelog" in Synaptic, or "aptitude changelog package_name", or by going to packages.ubuntu.com and clicking "Ubuntu changelog" for the package you're curious about, or visiting the URL

https://launchpad.net/ubuntu/+source/package_name/+changelog
where package_name is the name of the source package you're curious about. The most recent changelog entry will indicate the reason for the removal or replacement, if there is one.

For an example scenario of using the list of recent changes to determine whether a package removal and "Partial Upgrade" is safe, refer to the next post.
Check the build status information page for Ubuntu and the queue of new uploads to the Ubuntu release (e.g. Natty) on Launchpad to see if those mysterious missing dependencies are coming down the pipes, or there are problems preventing them from being built.
Do a forum search/AskUbuntu, or join the #ubuntu+1 channel on irc.freenode.net and ask around to see whether other people are having problems with the same package(s).
If you're still confused, simply wait and see if things are magically fixed within a few hours. If not, start a new thread or post to an existing one on the same issue to check with others.

A typical interaction with a package manager involves the following three steps:

You select some packages to be installed / removed / upgraded
The package manager resolves your intention according to its package management logic, the available software sources, and the priorities you've indicated (as in APT pinning), if any, to a set of actions it has to perform, and outputs a list of those actions
You check this list, confirm it if you're happy with it, or cancel it and refine your selection until you're happy with it.

If you skip the third step, assuming that simply updating your package information and hitting "Apply" or pressing "Enter" when the prompt comes up will give you the latest changes - you'll break your installation unnecessarily. Don't do that. Review that list of changes.

all credit to 23meg Ubuntu QA Team


I faced the same problem, and I would recommend you to put swappiness at 10.
What is your current swappiness value?

cat /proc/sys/vm/swappiness

The default is 60, while recommended is 10. There are a lot of guides as well. To change it:

sudo vim /etc/sysctl.conf

Add a line at the end:

vm.swappiness=10

Will this solve it completely? NO!
This will only swap lesser. But you need to have some free memory when your system goes full, and for that, the following should do the job (in the same file, /etc/sysctl.conf, after setting vm.swappiness):

vm.min_free_kbytes=65536

Reboot for the effect. Let me know if it still doesn't work.

Edit: I recommend keeping 500MB free if you have a lot of RAM.


Generating 2D array in Bash with unknown dimension

bash is an interpreted language, and it doesn't need to know how much memory to allocate in advance.

So it's possible to dinamically initialize a new array without having declared it or to expand an already declared array to add more entries, however it's not possible to use multidimensional arrays.

However this can be faked: since you didn't provide an exact task to accomplish, I'll provide a bash script example which shows how to fill in an user-defined m x n table with random numbers (which are not really random, since each column will always have the same number on all its rows in each run, but this is not relevant to the question) and print it (simplified from this Stack Overflow answer):

#!/bin/bash

declare -a array
read -p 'm: ' m
read -p 'n: ' n
for ((i=0; i<m; i++))
do
    for ((j=0; j<n; j++))
    do
        a[${i},${j}]=$RANDOM
    done
done
for ((i=0; i<m; i++))
do
    for ((j=0; j<n; j++))
    do
        echo -ne "${a[${i},${j}]}\t"
    done
    echo
done


Expired certificate errors - Ubuntu 16.04 LTS

Your question is interesting and helpful!

My initial response cost me a few points but oh well.  I'm learning valuable knowledge too.

You can update the installed certificates Authority (CA) certs as follows

sudo update-ca-certificates

You can verify if you are resolving to the right address by typing:

dig (or nslookup or ping) google.com

whois the.address.dig.returns

A site with a bogus cert spoofing google will not have an IP address that is in google.com's assigned netblock.

If you can ping a DNS entry that resolves to a google-assigned IP your browser should be able to view pages at the same address.

To eliminate the browser as an issue, you can always try

lynx https://google.com

If this fails, you'll know it's an ssl issue if the following works

lynx http://google.com

You may have to install lynx with

sudo apt-get install lynx

You can look at a servers current ssl certificates with the command

openssl s_client -showcerts -servername google.com -connect google.com:443 |tee google.crt

QUIT

You can view the certificate details with this command

openssl x509 -inform PEM -in google.crt -text -out certdata

For test purposes I wrote the cert file to my home directory.

If the above openssl s_client command doesn't work, you can at least check to see if the web site is blocking your access to it.  You won't be able to do anything but if you get a "Connected to google.com" response for the following command you'll know that packet blocking is not in play.

telnet google.com 443

On the browser side (using Firefox in my example)

edit-> preferences-> certificates-> view certificates-> servers-> add exception

In the Location window type

https://google.com

and press Get Certificate

Should return with a Valid certificate message.

Press View to look at the certificate


I think that this is an issue with the metadata.json files, which stores the extension compatibility.

As 3.3 version of Gnome is actually an unstable version, I think that the extensions will be update to support it after the extension mantainers will test them.

That will happen probably after it will be officially released as a stable version and included in distro's repos (Ubuntu, Fedora, Debian, ecc) with number 3.4.

Until then, only the extension maintainers which are active developer of Gnome can test and update them.

Actually, if you are testing Gnome 3.3, the best thing you can do is to send a message to the developer of the extensions you are interested in and says them that their extension does or does not work.


I edited ~/.config/lxsession/Lubuntu/desktop.conf

It should look like this:

[Mouse]
AccFactor=20
AccThreshold=10
LeftHanded=1


How to rename file names to avoid conflict in Windows or Mac?

You could do something like:

rename 's/[<>:"\\|?*]/_/g' /path/to/file

This will replace all these characters with a _. Note that you need not to replace /, since it's an invalid character for filenames in both filesystems, but is used as the Unix path separator.
Extend to a directory and all its contents with:

find /path/to/directory -depth -exec rename 's/[<>:"\\|?*]/_/g' {} +

Note that both / (which marks the end of the pattern) and \ are escaped. To retain uniqueness, you could append a random prefix to it:

$ rename -n 's/[<>:"\/\\|?*]/_/g && s/^/int(rand(10000))/e' a\\b
a\b renamed as 8714a_b

A more complete solution should, at least:

Convert all characters to the same case
Use a sane counting system

That's to say, foo.mp3 should not become foo.mp3.1, but foo.1.mp3, since Windows is more reliant on extensions.

With that in mind, I wrote the following script. I tried to be non-destructive, by using a prefix path into which I can copy the renamed files, instead of modifying the original.

#! /bin/bash

windows_chars='<>:"\|?*'
prefix="windows/"

# Find number of files/directories which has this name as a prefix
find_num_files ()
(
    if [[ -e $prefix$1$2 ]]
    then
        shopt -s nullglob
        files=( "$prefix$1-"*"$2" )
        echo ${#files[@]}
    fi
)

# From http://www.shell-fu.org/lister.php?id=542
# Joins strings with a separator. Separator not present for
# edge case of single string.
str_join ()
(
    IFS=${1:?"Missing separator"}
    shift
    printf "%s" "$*"
)

for i
do
    # convert to lower case, then replace special chars with _
    new_name=$(tr "$windows_chars" _ <<<"${i,,}")

    # if a directory, make it, instead of copying contents
    if [[ -d $i ]]
    then
        mkdir -p "$prefix$new_name"
        echo mkdir -p "$prefix$new_name"
    else
        # get filename without extension
        name_wo_ext=${new_name%.*}
        # get extension
        # The trick is to make sure that, for:
        # "a.b.c", name_wo_ext is "a.b" and ext is ".c"
        # "abc", name_wo_ext is "abc" and ext is empty
        # Then, we can join the strings without worrying about the
        # . before an extension
        ext=${new_name#$name_wo_ext}
        count=$(find_num_files "$name_wo_ext" "$ext")
        name_wo_ext=$(str_join - "$name_wo_ext" $count)
        cp "$i" "$prefix$name_wo_ext$ext"
        echo cp "$i" "$prefix$name_wo_ext$ext"
    fi
done

In action:

$ tree a:b
a:b
├── b:c
│   ├── a:d
│   ├── A:D
│   ├── a:d.b
│   └── a:D.b
├── B:c
└── B"c
    └── a<d.b

3 directories, 5 files
$ find a:b -exec ./rename-windows.sh {} +
mkdir -p windows/a_b
mkdir -p windows/a_b/b_c
mkdir -p windows/a_b/b_c
cp a:b/B"c/a<d.b windows/a_b/b_c/a_d.b
mkdir -p windows/a_b/b_c
cp a:b/b:c/a:D.b windows/a_b/b_c/a_d-0.b
cp a:b/b:c/A:D windows/a_b/b_c/a_d
cp a:b/b:c/a:d windows/a_b/b_c/a_d-1
cp a:b/b:c/a:d.b windows/a_b/b_c/a_d-1.b
$ tree windows/
windows/
└── a_b
    └── b_c
        ├── a_d
        ├── a_d-0.b
        ├── a_d-1
        ├── a_d-1.b
        └── a_d.b

2 directories, 5 files

The script is available in my Github repo.


Reposition window using num pad, deprecated?

It seems in CompizConfig Settings Manager the "Grid" plugin (from Window Management) has been disabled due to (from  what I can tell) ubuntu using the key now?

To restore the classic functionality for workspace switching you'll want to enable the "Desktop Wall" plugin too.


Managed to solve it by installing libappindicator:

sudo apt-get install libappindicator1

Not sure why it was missing in the first place, but now everything's working fine again.


How to install ubuntu on on Asus ROG G701VIK

The best thing you can do is to remove the RAID-0 as RAID-0 is worse than no RAID at all.
It's a bit complex though and not for the faint at heart as no matter what, Ctrl+I, Ctrl+R, Ctrl+E, Ctrl+D or even Ctrl+Shift+I, R, E or D will bring you into the Intel RAID Setup ROM so you have to:

Take a CloneZilla Live backup of the pre-installed Windows 10 environment on the RAID-0 to another (bigger) disk

Download RTSCLI64 V 13.2.0_1016 and then patch it to ignore driver version checking.

Boot Windows 10 into command prompt and delete the RAID array with the patched RSTCLI64:
  rstcli64 --manage --delete OEMRAID0

Patch the CloneZilla image for it to be able to be restored onto a smaller disk

Restore the CloneZilla Image to one of the NVMes

Install Ubuntu to the second NVMe

Done!  :-)
Note: I keep Windows around just to be able to change the keyboard background lights and to be able to do BIOS updates (haven't found a way around that yet)


I could fix it by using the latest version of Kdenlive. The latest version in the Appstore was 15, but Kdenlive 18 is provided with a .Appimage at https://kdenlive.org/en/download/ .

With the new version the crash did not happen yet.

Thanks for all participants, though.


apt-get install libcurl4-gnutls-dev

or

apt-get install libcurl4-openssl-dev

or

apt-get install libcurl4-nss-dev

depending on whether you want to use gnutls, openssl or nss for SSL.


Use sed as following:

sed 's/^.//' file

For line if starts with spaces:

sed 's/\S//' file

Matches any non-white space character but not newline. You can use \w or [A-Za-z0-9_] instead.

The command suggested by @gleenjackman:

sed 's/[^[:blank:]]//' file

or

sed 's/[^[:space:]]//' file

or

sed 's/[[:alpha:]]//' file

or contains numbers:

sed 's/[[:alnum:]]//' file

or use:

while read line; do echo "${line:1}" ;done < file


Glitching box around mouse cursor on Ubuntu 18.04 and nvidia driver

I had same problem on 18.04, but already installed lightdm before (dont remember why). You can install it as described here. Then you can restart lightdm with

sudo service lightdm restart

Also if you dont want to install lightdm, you can try to reboot, it helped me once, but next power-on glitch appeared again.


I've struggled with this as well. For Apps you can go to the apps scope and long press an app icon. You'll go to the app description where you can uninstall.

For scopes though, I'm at a loss...


Where is the /etc/X11/Xsession upstream source?

Let's analyze the file origin locally

$ dpkg -S  /etc/X11/Xsession
x11-common: /etc/X11/Xsession

$ apt-cache show x11-common | grep Source | sort -u
Source: xorg

or using packages.ubuntu.com - it says that source package is xorg(see this page).

Semi-appstream is on Debian Salsa - https://salsa.debian.org/xorg-team/xorg/blob/ubuntu/debian/local/Xsession . You can try to send pull request here.

But I can't find this file on Freedesktop Gitlab.

About the premise - I think that your patch will never be included upstream, because of great possibilities of .xsession-errors. Developers and users use this file to determine what is wrong. If you want to change this - change it on your own machine.


I want to DEEPLY LEARN UBUNTU, any resources ?? CS student here :)

There aren't too many main differences between Ubuntu and Windows as an end user, so jumping between the two you will still be able to navigate and perform simple computer tasks.

The difference does, as you mention, lie within the use of the computer through a command-line interface (terminal). Windows and MacOS are heavily based on there applications having a Graphical User Interface (GUI), to make it more intuitive to use. But, this comes at the expense of developers having to design a graphical user interface for each piece of software, which is very time consuming and often impractical if the softwares don't 'integrate' well with a point-and-click operating style. Ubuntu is starting to adapt to this audience of users with it's snap store/ Ubuntu Software application for all larger GUI apps (blender, inkscape, GIMP, + many more), but still a large amount of it's software runs entirely from a text based user interface (in terminal).

Another reason terminal is very heavily integrated in the OS is that Ubuntu focuses on open source software, where the source code is publicly available, allowing users to 'build from source', rather than just running the end binary or executable, (which can also be done). This involves meeting package dependencies or downloading required packages to compile the software successfully. Learning this workflow allows you to make adjustments, hacks, improvements to software and build it to reflect the changes which ties heavily into Ubuntu's focus on open source development, allowing anyone to make changes, fix bugs and improve software. Learning these skills are invaluable to understanding the technicalities of how software is built up in modules and the process of distributing and releasing.

Another reason why terminal is so valuable as a software engineer is it's access to software organised in repositories. This means most software can be downloaded with a simple command, which will automagically pick the right binary/source package for your system. This makes it easy if you require earlier releases for your project. You can also access private software available to the public by adding a search reference to that (PPA) repository.

The single best thing you can do is jump in try stuff out, experiment, make small programs and learn by googling your problems. Alot of experienced programmers on these forums got that way by doing exactly that. There is a ton of information out there, just pick something you are interested in and start building and you may discover for yourself what makes Ubuntu a great operating system for software engineers.

It's a great journey, goodluck!


Libreoffice Calc copying rows containing a specific value in column A

The easiest way:

In the same spreadsheet go to first completly empty column (ex. If you use A,B,C,D - go to E)
In first row (ex. E1) write: =IF(A1=0;A1;"")
Pull lower right corner of this cell and spread it down and right.
Copy it and paste to sheet2.


Unity in 11.04 has problems with windows that restore themselves from the notification area or from the messaging menu.

The simplest workaround is to maximize/unmaximize them or ALT+drag them to make their title bar visible again.

As I recall, the issue does not surface in 11.10 anymore.


youtube-dl in a crontab displays "[Errno 13] Permission denied"

OK, I have found the solution :

First, I have moved the script to /etc/cron.hourly, because there were no anacron installed, and because I would like to use it every hour. But it didn't worked.

Then I have run sudo service cron statusjust to check if cron service was active. It was, but I have also found an interresting warning, something like your token was expired, renew your token. So I have searched for this error message on Internet and have found that my root password needed to be renewed, otherwise cron would not work correctly. To check this, I had to use sudo chage -l root which showed that my root password was expired.

Therefore, I have renewed my root password with sudo passwd root and I have checked again with sudo chage -l root which showed that the password is now OK. Now, everything is running fine, and cron is working as expected !


In case you're still able to access internet, try opening up the Software Center. Select Edit and Software Sources. From there make sure that the "Download from" is set to "Main Server". If not, select it and type $ sudo apt-get update to the terminal. Outcome still the same?


How to take a serial port connection via USB online?

Some good reading is available from Official Ubuntu Documentation:

Alternative serial client: screen

GNU screen actually is a very capable serial terminal.

To install:

sudo apt-get install screen

To start:

sudo screen /dev/ttyUSB0 n

Some additional tips:
1. adjust the n to what you need:

Start without a number on the first try; it might auto-negotiate flawlessly
then use 115200, 57600, 38400, 19200, 9600, 4800,  2400, 1200 and stop when it starts working.
If you're a purist and don't like using sudo for this or need to hand this out to users not having access to sudo, add them to the dialout group.

To end the session, use Ctrl-A or Shift-K.


How to install adobe flash professional cs5.5?

According to the wine AppDB, you can't just install Adobe Flash Professional CS5. There is a workaround, but the app has only got a silver rating with wine. However,  Flash Professional CS6 works good, but you still need to install it on Windows first, then copy the files to linux.


You will need a X server on the Windows side to be able to use GUI apps on Windows Subsystem for Linux.

My X server of choice for Windows is Xming, you can find it online, or you can use Chocolatey if you have it on your machine: choco install xming

After that, append the following line to your ~/.bashrc in WSL: export DISPLAY=:0

Then start Xming by launching XLaunch either from the command line or Start Menu, go with the default settings. Restart your WSL session and when you launch GUI apps it should work.

Do note that you may need to install additional libraries pertaining to X11 on the Linux side of things.


How to install w32codecs on 64 Bit Ubuntu?

From the MPlayer's mouth

The MPlayer download /1/ page is telling:

Instructions for installing binary codecs can be found in the README...

and the README /2/ is telling:

STEP1: Installing Binary Codecs
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Unpack the codecs archives and put the contents in a directory where MPlayer
will find them...

From the Medibuntu

The Ubuntu Community Documentation of Medibuntu /3/ is telling the basic information of the Medibuntu /4/. From the Medibuntu you could download either the tar packed w32codecs (source package) or the Debian packed codecs.

Acrchive is an archive

Both the .tar and the . deb are archives. You could unpack both. The Debian package archive (.deb) can also hold instructions for the package management system.

w32codecs_20110131.orig.tar.gz has:

codecs to installed where ever you want them.

w32codecs_20110131-0.1medibuntu3_i386.deb has:

a preinst script, will remove the /usr/lib/win32/ directory if there are one
codecs to installed to the /usr/lib/codecs/
symlinks /5/ to made from /usr/lib/codecs/ to /usr/lib/win32/

Links

http://www.mplayerhq.hu/design7/dload.html
http://www.mplayerhq.hu/DOCS/README
https://help.ubuntu.com/community/Medibuntu
http://www.medibuntu.org/
http://en.wikipedia.org/wiki/Symbolic_link


Samba server stopped working after some router changes

I am using samba server in home network as  mentioned below. If it stopped working you can try reinstalling it but most probably problem is in router settings. If you don't know what you changed in it then you have to reset it.

Install and Remove from the Terminal : (Using Samba Version 4.3.11)

sudo apt-get remove --purge samba

But, if you are having client problems, it would be more like:

sudo apt-get remove --purge smbclient libsmbclient

sudo apt-get purge samba samba-common
sudo rm -rf /etc/samba/ /etc/default/samba

To install it again

sudo apt-get install samba
sudo apt-get install smbclient libsmbclient

How to Reinstall smb.conf in other way

dpkg-reconfigure samba-common
or
sudo cp -a /usr/share/samba/smb.conf /etc/samba/

Restart Ubuntu after fresh installation and add user

root@Dell-Inspiron-3521:~# sudo smbpasswd -a username (username should be without space eg "sudo smbpasswd -a alamjitsingh")
New SMB password:
Retype new SMB password:*********
Added user alamjitsingh.*********

smb.conf required settings

sudo gedit /usr/share/samba/smb.conf

[global]
 workgroup = WORKGROUP
 passdb backend = tdbsam
 security = user

In authentication section turn "map to guest = bad user" off by adding  # at starting of code

#map to guest = bad user

Below line is Optional if not working

force user = alamjitsingh

At last add your personal code

[Shared_drive_Name]
path = /media/alamjitsingh/Shared_drive_Name (alamjitsingh is my ubuntu username)
comment = HD Share
read only = yes
available = yes
browseable = yes
writable = no
guest ok = no
public = yes
printable = no
locking = no
strict locking = no

Useful Terminal commands

sudo service samba reload
sudo service samba restar
sudo service samba stop
sudo service samba start
sudo service samba status
sudo service samba force-reload

Or

sudo /etc/init.d/smbd start
sudo /etc/init.d/smbd stop
sudo /etc/init.d/smbd restart

sudo testparm

sudo service nmbd start
sudo service smbd start

Or (via systemctl)

sudo systemctl restart smbd
sudo systemctl start smbd
sudo systemctl restart nmbd
sudo systemctl start nmbd

Check status of required services

sudo service nmbd status
sudo service smbd status
sudo service smbd restart

To know version of samba

samba -V


No Sound from Sound Blaster ZxR on Fresh LTS 18.04 Dual Boot Install

could be a driver issue but I had this on my dell, for me it turned out to be audio mixer levels - which I think it mutes when you plug in speakers.

i ran alsamixer from terminal and un-muted channels and it worked (mine was a fresh install and others had same issue on forums)


Why does Virtualbox's main window closes immediately after launching it?

I've found this:

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

So, in a terminal, check by entering:

ls -ld /usr /usr/lib

If it doesn't show "root root", then enter:

sudo chown root:root /usr /usr/lib

Now it's working again.


Hosting a Website with Ubuntu Server 11.04

The Ubuntu documentation can probably get you most of the way.

1. Using the terminal

This is a very open-ended issue. Tutorials like UsingTheTerminal will tell you some of the basics but I'm really not sure how much you think you need to know.

Start there. If you run into any more issues, try Google, the search on this site and failing that, post a new question explaining what you're trying to do.

2. Hosting a website

If you're just hosting simple html files (no dynamic languages), the easiest document to read through is the server guide for Apache (a web server).

If you want MySQL and PHP too, the LAMP page might do you better. It still uses Apache, so don't be afraid to read both as you'll get a better understanding of Apache from the server guide.

Neither of these explain the underlying networking that you'll need to do too:

Port forwarding on the router to allow people to access your computer's port 80 from the internet.
The DNS (eg DynDNS) so you can bind a domain name to a dynamic IP your ISP gives you.

If you're just hosting things on a local network, you can ignore those items.

3. Is virtualised good enough?

Desktops aren't built to run all the time? Speaking as somebody whose desktop has been in near-enough constant use for two years (down for upgrades, rewiring, etc), I can say, as long as it's a good desktop, it'll make a perfectly serviceable server.

You're right, in essence. Server grade hardware is built with long service terms in mind but modern consumer hardware is (and has been for the past 5-10 years) very acceptable. I say that with the bias of somebody who tends to buy premium components... I'm not sure what budget hardware is like these days.

What is the VM host? If it's also Ubuntu, why not just install Apache on that, and forgo the virtualisation?

Virtualised systems are slower. They take up a chunk of overhead too (not too much in Ubuntu Server's case, but still 100+ megabytes of ram that you might not have spare). However, serving static files from Apache is a trivial task. It uses a pathetically small amount of CPU time, so performance really shouldn't be an issue at all.


How to install Google Chrome and WPS in Ubuntu?

Actually that seem to be a small problem with my system. It was detecting 2 displays - one the actual monitor and the other the installed graphics card. I found this solution on some forum. I had to turn off one of them corresponding to the graphics card and it started working fine.


How do I resolve "No such Gstreamer factory: ffdec_mpeg4" warning?

I just installed this packages and none of this problems appear, for more info try reading this article.

sudo apt install ubuntu-restricted-extras vlc smplayer

this programs uses tons of codecs, hope this helps


With you configuration the command test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) will in fact be executed at 2:00 AM, but the commands in /etc/cron.daily probably won't!

Lets look at the command more closely:

The first command test -x /usr/sbin/anacron checks if the command anacron can be executed, it "fails" (returns 1) if /usr/sbin/anacron is not executable
The || means: Execute the second command it the first one fails
The second command ( cd / && run-parts --report /etc/cron.daily ) will execute all tasks in the directory /etc/cron.daily, without involving anacron in any way

In short: cron will only run the tasks in /etc/cron.daily if the command /usr/sbin/anacron is not available! anacron is an independent program that has its own heuristics for figuring out when to execute a task.

In order to let cron execute tasks at the times given in /etc/crontab, just uninstall the anacron package! Modifying the /etc/crontab command is not a good idea since the tasks in /etc/cron.daily would then be executed twice per day: Once by cron and once by anacron.


I am reproducing my answer to a similar question.

At the grub prompt try these commands:

set pager=1
ls

Now, suppose the output of ls is: (hd0) (hd0,msdos2) (hd0,msdos1), in order to find the linux root filesystem run:

ls (hd0,1)/ which should give you all the files/folders in / such as bin/ boot/ cdrom/ dev/ etc/ home/  lib/ etc.

Once this is done continue with:

set root=(hd0,1)
linux /boot/vmlinuz-3.13.0-29-generic root=/dev/sda1
initrd /boot/initrd.img-3.13.0-29-generic
boot

Of course replace vmlinuz-3.13.0-29-generic and initrd.img-3.13.0-29-generic with what you find in your /boot

/dev/sda1 is the location of the root system. You may have to change it if /dev/sda1 did not work. You may have to even change it to sdb1 if the Ubuntu is in another hard disk (in which case even the first ls command will list hd1 which means second hard disk). The best place to refer is the article from linux.com

Once you are in Ubuntu , it is best to use the Boot-Repair tool from Ubuntu to fix common booting problems.


We can use printf to highlight individual arguments and inspect how the shell tokenizes them. For the command in question vs. the corrected variant in my answer to the linked question (tested in Bash and Dash):

$ printf '"%s"\n' sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"
"sudo"
"add-apt-repository"
"deb [arch=amd64] https://download.docker.com/linux/ubuntu        trusty        stable"

and

$ printf '"%s"\n' sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
"sudo"
"add-apt-repository"
"deb [arch=amd64] https://download.docker.com/linux/ubuntu trusty stable"

Oh well, that's not so different. However, this is not what ended up in the repository sources file for the author of the linked question:

Error: 'deb [arch=amd64] https://download.docker.com/linux/ubuntu \ xenial \ stable' invalid

I don't know how that happened but it certainly looks like an issue with the back slashes at the line ends. From where else would they come? Maybe the author actually entered a different command or they used a different shell interpreter.


How to know if my kernel of ubuntu is supporting conntrack

Check the kernel configuration file, specifically the value of parameter CONFIG_NF_CONNTRACK.

On my system, the NF (NetFilter) subsystem comes with conntrack module, here:

% grep '^CONFIG_NF_CONNTRACK=' /boot/config-"$(uname -r)"
CONFIG_NF_CONNTRACK=m

Check the output in your case, if you see m as the value of the parameter then conntrack comes as a loadable module, whereas y indicates it is built into the kernel, and n indicates absense.


Pointing 2 subdomain on same ip but I want it both to work in different directory

Add a slash to the end of the Directory path:

<Directory /var/www/html/anothersub/>

Make sure both VirtualHost files are in /etc/apache2/sites-enabled:

ls -al /etc/apache2/sites-enabled

If one of the VirtualHosts should not be in this directory enable it:

a2ensite anothersub.conf

Note that the config file has to have the file extension .conf, otherwise it will not work!
Restart your apache2 webserver

service apache2 restart

Call both domains, e. g. with curl:

curl -I mydomain.com
curl -I anothersub.mydomain.com

If it doesn't work have a look at the apache log files:

tailf /var/log/apache2/red-access.log

Hope this helps


Can window alt+tab'ing be configured to reorder based on which window is most recently used?

You need to install ccsm.

sudo apt-get install compizconfig-settings-manager
sudo apt-get install compiz-plugins

Open compizconfig-settings-manager with alt-F2, type ccsm.

Scroll down to "Ubuntu Unity Plugin". Choose the tab "Switcher". Disable the alt-tab and shift-alt-tab key bindings. ("Key to start the switcher" and "Key to switch to the previous window in the Switcher".
Click the "Back" button.

Scroll down to the "Window management" section. Here you can select another switcher.
I enable the "Static Application Switcher", resolve any potential conflicts by setting the setting for "Static Application Switcher".
Now you can tweak the switcher by clicking on it. I have changed alt-tab and shift-alt-tab to "Next window (All windows)" and "Prev window (All windows)".

Experiment to find the settings that work best for you. It you want to go back to the poriginal settings, simply disable the Static Application Switcher and enable the key bindings in "Ubuntu Unity Plugin" again.


Broadcom BCM4311 wireless not working on an HP Pavilion dv2000

You may want to try and reinstall your bcm43** driver which is worked for me go system>administration>synaptic package manager.  When the screen comes up click on reload locate your broadcom driver click to reinstall and try again.


The best way to check your hard disk for errors, is to download diagnose software from the hard disk vendor.

You can also install the program smartmontools and

Check the S.M.A.R.T. values of the disk using sudo smartctl -A /dev/sda (change /dev/sda to fit your hard disk),
Run a self test: sudo smartctl -t long /dev/sda (will take some time, you can check the status of the self test running sudo smartctl -l selftest /dev/sda).


Build Debian/Ubuntu package based off package control source

Building software is usually done by following the developers instructions usually provided in README or INSTALL, but since that would make everybody's life so much easier devs often don't provide such information. You should open an issue on github.com and request it. Since this is obviously (haha) a Debian package, you can follow https://debian.org/doc/manuals/maint-guide/build.en.html to build it.