Bluetooth not working on Ubuntu 20.04 - Lenevo z50-70

Solved this issue.
Pasted this file https://github.com/winterheart/broadcom-bt-firmware/blob/master/brcm/BCM43142A0-105b-e065.hcd
Inside the home folder and inside /lib/firmware/brcm
After downloading the file from github into ~ (home) folder
$ sudo cp ~/BCM43142A0-105b-e065.hcd /lib/firmware/brcm


Sounds like you might have gotten past this, as the daemon reports it is running when querying status.

My /etc/default/hostapd file did not define where to find the hostapd.conf file (as  provided by Ubuntu 14.04.1 LTS).  And so, I received no output when running sudo service hostapd start or sudo service hostapd status.

Once I directed the out-of-the-box init script to a configuration file, the service was able to start, and show status.

Maybe this was done on purpose to force you to think about configuration before the wireless services start.


You most likely have only one intact partition that is 2MB in size. The easiest way to solve this would be through GParted, a disk partitioning program.

You'll have to install it first and you do that by opening a terminal (you can find that in the app launcher, top left corner) and executing the following commands:

sudo apt-get update
sudo apt-get install gparted

When you run the first command it will ask you for your password, just type your login password (It will not show any feedback while you're typing, not even * characters).

After it has finished installing make sure that your USB stick is plugged in and run GParted from the terminal by running this command

sudo gparted

You will see something like this (Your partitions will wary, dont worry about that):

Pick your USB from the top righ dropdown menu, if you have only one HDD it will most likely be the second option, just look for a disk at around 8GB in size, now it should look like this (again, ignore the variations in sizes and names):

select a partition from the list and right click>delete (or just press the delete key on the keyboard). Repeat this with every partition until you have only Unallocated space listed. Select it and right click>New. A windows similar to this will pop up:

On the right side under File system select fat32, the default should be ext4, so be sure to change that, otherwise any windows system wont be able to read the usb. Leave everything else as is and hit Add. At last but not least hit the apply button on the tool bar on the top (It's the button on the right), hit accept and wait for it to finish (DO NOT REMOVE THE USB UNTIL IT'S DONE, you could damage it).

Good Luck.


New install using a wireless keyboard and mouse

Wireless keyboards/mice speak the same protocols as wired ones so it should not be a problem.

I have a (USB) Logitech wireless keyboard and mouse and both I can use while installing.


Unless you need the latest version of any software, the preferred method to install programs is via your distro's repositories (as you did with the sudo apt-get install -y juce-tools command). This way, you will be sure to get security fixes when they become available.
You can remove the .zip and the files/folders it created upon unzipping.


How to convert an XFS file system to HFS+

You can not directly convert XFS to HFS+. So you will need to copy all of the files. Writing to HFS+ from Linux is not recommended. So you will have to use an intermediate file system:

Repartition one of your drives to make a new partition and format it as FAT
Boot Linux and copy files from XFS to FAT
Reboot to OS X and copy files from FAT to HFS+

You will lose file permissions and ownership meta data. If you care, pack the files using tar in Linux, and then unpack them in OS X.


How does language support work in Lubuntu?

There are different levels where different languages can be set

1) Language of Lubuntu OS menu
2) Language of keyboard input
3) Language of application menus (browsers, LibreOffice, Skype...)
4) Language of spell-checking in each browser and each text editor
5) Language for regional format (date, currency)

There are different languages for each diferent level. You can install Lubuntu menu in English, Chromium browser menu in Romanian, spell-checking in Chromium in French, LibreOffice menu in English, LibreOffice spell-checking in Romanian etc.

May exist 5 different questions about each language setting. If you specify your question in will be possible to explain about choosing language of LibreOffice, Chromium, Firefox etc.

Some languages are installed in the first place along with the system - based on the selected iso and/or on the settings made during installation process.

Spell-checkers are not set at system level but are application-related (like for internet browsers and office suites) and you may need to install those separately (for example, on UK-English spell-check and thesaurus in LibreOffice, here).


Why apt can't find the source code of any package?

Open the Software Center and choose Edit -> Software Sources. Which server do you use? I'm using "Server and United States" and just downloaded the source for rhythmbox just fine. I'm on Precise.


Where on the filesytem could a user find the Unity scope files?

Documentation on the Unity scope API can be found here.  That information should be current for 13.04, but there are some changes coming in 13.10 which merge the concepts of lenses and scopes.

Unity discovers its lenses and scopes by looking for files under /usr/share/unity/lenses (or /usr/share/unity/scopes for 13.10) with a suffix of .lens or .scope.

These files are similar to desktop entry files, but instead of specifying a command to execute, they specify a D-Bus endpoint to use to talk to the lens or scope through the DBusName and DBusPath keys.

If the scope or lens is not running when the shell tries to communicate with it, the D-Bus daemon will activate it.  This is done by scanning /usr/share/dbus-1/services for a .service file whose Name key matches the desired bus name, and running the command in the Exec key.  So it is not too difficult to discover what program implements a particular scope with a simple grep command.

If you are interested in writing a scope of your own, I would suggest looking at the documentation in the first link.  But keep in mind that you may have to adjust your scope a bit when 13.10 comes out.


How to block ubuntu server outbond to a specific ip

Just type in a Terminal:

sudo iptables -I OUTPUT 1 -d 192.168.155.66 -j DROP

192.168.155.66 is an example ip. just use your required destination ip address (the one you need to block as a destination).
if you do a list you should see in the Chain "OUTPUT" this:

sudo iptables -L -n
...
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
DROP       all  --  0.0.0.0/0            192.168.155.66


btrfs - Need help understanding it correctly

After making the snapshot, any files that are in the middle of being written will still be half written in the snapshot, and the new writes to go the original volume.  This can cause corruption of the file, just like a crash or loss of power.  If you are running applications that can't cope with a sudden power loss, then shut them down ( maybe boot into rescue mode ) when making the snapshot.  When moving the snapshots around, the change does not take effect until you reboot, so anything written after the move is still in the snapshot, which you will discard later.

FYI, the apt-btrfs-snapshot package provides scripts for managing all of this and automaitcally creates snapshots for you whenever you run apt to install/remove/upgrade packages.


Stop Snaps from accessing user home directory?

[I]t would be trivial for an attacker to grab all the files under $HOME

Yes, and that's true for every poisoned non-Snap application ever written, too. Do feel free to help test Snaps for nefarious activity (it's a community, after all), and report any poisoned Snaps that you discover.
A great place to discuss Snap security is the https://snapcraft.io forums. Drop by.

snapd/AppArmor does indeed have partial protection for this particular attack: The home interface makes the contents of all hidden files (like ~/.ssh or ~/.thunderbird) unreadable.

home allows access to non-hidden files owned by the user in the user’s home ($HOME) directory.

Is there a way to apply a "no $HOME access" policy by default to all snaps?
No. Each Snap's YAML file defines the access policy that Snap needs in order to function. A global policy would break Snaps that do need access to $HOME, precisely what the developers did not intend.

Is there some trickery through which I could re-mount a portion of home (say /home/folderforsnaps) and trick the snaps into thinking that is the home directory?
Sure: You could create an LXD container, bind-mount the portion of /home, then install the Snap into the container.
Or you can simply run the Snap as a different user with a limited set of data in their /home.


On the Ubuntu site there is said that:

  Windows installer is not compatible with Windows 8 or UEFI firmware, and is not available for Ubuntu 13.10. Please download a 64-bit flavour of Ubuntu Desktop.
  Learn more


Ubuntu 16.04.1 screen getting pixelated on running certain applications

Its been a long time since I logged in, and I decided to post how I fixed it just in case anyone else has the same issue. The issue was that Nvidia drivers could not be recognized. You will need to go to software and updates, in the additional drivers tab. Enable the required option for 3rd party Nvidia proprietary drivers.
From what a friend of mine told me, the issue is caused by the screen attempting a graphics overlay, such as the transparent overlay generated on clicking the Ubuntu dash home button. Im not sure how or why, but that always caused a problem. Opening Libre Office tools also resulted in the same issue.


The -ffmpeg package allows playback of mp3s, but not seeking.  It's possible that if you have both -plugins-ugly and -ffmpeg installed, Rhythmbox (or any other gstreamer-based media player) will choose to use -ffmpeg istead of the ugly plugin, and you will not be able to seek.

gstreamer0.1-plugin-ugly should cover all of your mp3 needs, so you can safely uninstall the gstreamer0.1-ffmpeg package.

For more background on the issue, see a similar bug reported against Banshee, and the much older gstreamer bug it was eventually closed as a duplicate of.  Also note that an mp3 parser is now included in the -good gstreamer plugin, so this issue should not affect newer versions of Ubuntu.


To remove 8.10, just delete the partition that holds 8.10 using gpartedand then from the current installation (11.04) run sudo update-grub in the terminal. As long as the Grub is not installed on the partition that holds 8.10, you should be golden :)


Which package I should install first before install software?

When using the package manager you don't need to install anything before installing a package.  The manager takes care of all the dependencies.

There are occasions that a user may have broken packages due to installing something that could corrupt their default libraries.  When that is the case, appropriate messages will be shown to the user of what to do to fix the problem.

From the content in your question, it suggests you have a new installation.  Some libraries and packages are not updated on an initial install.  With time the system will automatically update your libraries and dependent packages.  This process also happens more automatic when you use the GUI package manager, Ubuntu Software.  You can get to it by typing software after clicking the applications menu (The button at the bottom of the side panel).

When running the terminal package manager, apt, you would have to manually perform the updates with the following commands.  The first two commands update your libraries and dependency packages.  The third command installs your intended app.

$ sudo apt update
$ sudo apt upgrade
$ sudo apt install vlc

If your libraries are up-to-date, the next time you don't have to run the first two commands.  You may not have to run it for months.  But it would never hurt to run them most of the time when you are installing a new application.  Many application install instructions include those two commands as part of the install procedure.

There are rarely conflicts and problems when using applications from the default repository.  If there are problems as mentioned above, the output will be very specific to what the problem is as well as the command to fix it.


How to rip CDs in FLAC format using Banshee?

In Banshee's Edit->Preferences select the "Source Specific" tab, and then select "Audio CDs" under "Source". Under "Input Format" you should be able to select "Free Lossless Audio Codec (FLAC)".

Note: you will need the libflac8 package installed, but this should be installed by default on Ubuntu as part of the GStreamer "good" plugins (gstreamer0.10-plugins-good
).


SSH message after login, then restrict the user from using account

1. Edit /etc/ssh/sshd_config and add these directives at the bottom:

Match User guest
    Banner /etc/ssh/banner_guest
    DenyUsers guest
Match all

Change guest with the actual username.

2. Create the banner file: sudo nano /etc/ssh/banner_guest, and type your message inside, for example:

+------------------+
| Get out of here! |
+------------------+

3. Restart the SSH server:

sudo systemctl restart ssh.service

The result would be:

EDIT:

Please note regardless in the above example PubkeyAuthentication is available and there is a valid /home/guest/.ssh/authorized_keys file the user will get Permission denied (publickey).

If PasswordAuthentication is available the user will be asked few times for their password and in the end will get Permission denied (password). So if you want to further tease him (or her), change the above directives in this way:

Match User guest
    PasswordAuthentication yes
    PubkeyAuthentication no
    MaxAuthTries 20
    Banner /etc/ssh/banner_guest
    DenyUsers guest
Match all

For me the cleanest way is just show the message and kick them:

Match User guest
    PasswordAuthentication no
    PubkeyAuthentication no
    MaxAuthTries 1
    Banner /etc/ssh/banner_guest
    DenyUsers guest
Match all

The result of the above will be identical as the result of the first suggestion but the message Permission denied (publickey) (Server refused our key) will not appear.


How can I grant KVM read access to /dev/sg0?

First you should check if it is AppArmor that is blocking your device:

dmesg | grep /dev/sg0

If you see a message similar to:

  [159883.682167] audit: type=1400 audit(1534114680.047:392): apparmor="DENIED" operation="file_lock" profile="libvirt-40d3ad0d-0574-4823-ae7d-eaf38afa7fb6" name="/dev/sg0"

Then it is being locked by AppArmor. If the profile field looks like above with the domain's identifier located after profile= portion then it is a dynamically created profile created by KVM after the domain starts as part of KVM's integration with AppArmor.

You can allow access to some or all your SCSI devices for your KVM hosts by editing the template file usually located at /etc/apparmor.d/libvirt. You should see A TEMPLATE.qemu file which is used as the basis for the dynamically created AppArmor profiles. You can whitelist the device(s) in this file or edit the file pointed at by the include listed in the template file which is usually /etc/apparmor.d/abstractions/libvirt-qemu. To whitelist, just add your entries on their own lines to the file like so:

For read:

/dev/sg* rk,

For read/write:

/dev/sg* rwk,

If you are using the GUI to edit the SCSI devices in the domain, you may notice that the devices don't show up correctly in the GUI. For example, if you are trying to pass through an optical drive it may not show that media is in the drive even if some is present. You will want to whilelist these devices to the KVM service as well by adding similar entries to the /etc/apparmor.d/usr.lib.libvirt.virt-aa-helper file and then tell AppArmor to reload configs:

service apparmor reload

If the SCSI devices are symlinked, you may need to add those symlinked devices to your whitelist as well. The AppArmor errors will let you know if this is the case as you will see updated errors as you whitelist devices for read or write if you don't have them all covered.


Saving a search to the sidebar in the Ubuntu File Manager

This feature is not anymore available in recent versions of Nautilus. On the other hand, search is now very much faster and designed to quickly reach a file or folder of interest in you folder structure.


Internal microphone not working on a Compaq Presario CQ60

Your internal microphone is detected by Ubuntu 11.10, so I think you can try some of the solutions proposed in this answer. If you still have problems, then file a bug in Launchpad following this instructions.


Adding space to the existing volume group

To be able to enlarge your LV you have first to add another physical volume to the VG.

You are talking about "free space from the LUN" so I assume you have unpartitioned space on the underlying "Hard Disk" (or whatever it is), or you can create free space by shrinking another partition.

When you have done that you must create a new partition (in fdisk: make it type 8E (Linux LVM), or in parted set <partnum> LVM ON), lets assume it is /dev/sdX1.

Then you create a new Physical Volume from that

pvcreate /dev/sdX1

Now you add that Physical Volume to your volume group

vgextend VG1 /dev/sdX1

Now you are ready to extend the Logical volume.


Find all occurences of a string in 4th Column and replace 7th column with specific text - bash

You can do it with a simple Awk command/script:

awk -F, '
  BEGIN{OFS=FS}
  NR==FNR {a[$1]++; next}
  $4 in a {$7 = "24:00:00"}
  1
' input.txt target.txt


I asked on the dovecot mailing list, I had a config file that was loaded after that was overriding settings to the default


You can do it by modifying your /etc/apt/preferences file; it's commonly referred to as "APT pinning". Here are some guides with details:

http://jaqque.sbih.org/kplug/apt-pinning.html
https://help.ubuntu.com/community/PinningHowto
http://www.argon.org/~roderick/apt-pinning.html


Differences between apt-get, Synaptic and pip

The are all front ends for apt

https://wiki.debian.org/Apt

apt-get is a command line tool, synaptic is a nice tool but somewhat depreciated by software center.

I am not familiar with pip.

See also https://help.ubuntu.com/community/InstallingSoftware

As far as I know you can use apt, apt-get, aptitude, synaptic, software center, etc without any problems.


That extension is incompatible with the Global Menu Bar Integration. You could disable the later extension as a workaround, to use Thunderbird's native menu.


How to revert unity and remove gnome desktop?

If GUI is troubling you, login through CLI(Ctrl+Alt+F1)

Check if ppa-purge package is installed or not.

Run

dpkg -l | grep ppa-purge

If it returns the value, ppa-purge is installed. If not, install it as follows;

sudo apt-get install ppa-purge

After that run the following commands;

sudo ppa-purge ppa:gnome3-team/gnome3-next
sudo ppa-purge ppa:gnome3-team/gnome3-staging
sudo ppa-purge ppa:gnome3-team/gnome3

sudo apt-get remove gnome-shell ubuntu-gnome-desktop

Reboot system and login through Unity.


"no system tray detected on this system."

In your start up programs there is a  line regarding starting hplip.
Change ...

sh -c "sleep 15; exec hp-systray"

to

sh -c "sleep 45; exec hp-systray"

and the problem is gone.

hplip is expecting a system tray and that got removed (and was changed into notification area). All this does is postpone startup of hp-systray so if your system is slow to respond this notice might come back and bite you again.

Found it here on Bugzilla (has a fix released on 2011.11.25 (...)).
Besides the bug I found the following sources: Linuxquestions, Ubuntuforums


I''ll answer this for the sake of completeness.

Installing Lightspark should probably just be done from the Ubuntu Software Center or from Synaptic.

If you already had gnash or Adobe Flash installed, you might want to disable them from the Firefox Add-ons->Plugins menu so the right one (Lightspark) is used.

Personally, Lightspark crashed on the first video I tried to see, but you might get better results.


Touchpad doesn't work coorectly after update to 16.04

Set Synclient to TapButton1=1

you may want to check before making changes

synclient -l | grep TapButton

To set :

synclient TapButton1=0

I put a bash script in /usr/bin/ and add this script to startup applications. You just need to use chmod to tell the system is an executable.

#!/bin/bash
synclient TapButton2=0;


64 bit fails to load-get a 32bit OS instead

My piece of advice is to go to www.ubuntu.com/download/desktop and download the 64-bit image :)


Ubuntu booting to maintenance mode after altering /etc/fstab

So it turns out I was missing a step completely.

While I used parted to create the partitions, I was never actually formatting the partition. I was under the impression that parted did that for me when I created the partition and told it that I wanted an ext4 partition. This was not the case. I should have used:

sudo mkfs.ext4 /dev/sdc1

So my bad.

As for why you see my second drive referencing the sdb instead of sdb1, it's because during the installation of the server I didn't put a partition table on the second drive, instead I formatted the entire drive as ext4 without a partition table.

Sorry for the waste of everyones time.


Watching Amazon Prime video HD on ubuntu 20.04

According to this forum, the following solution might work:

1) Install winehq-staging

2) Install Edge-dev: see this

3) Run Edge:

wine 'C:\Program Files (x86)\Microsoft\Edge Dev\Application\msedge.exe'

4) Log in to amazon prime video using your newly installed MS Edge browser and HD could work

Let me know if this works....


There is GNU Fortran 95 compiler in the repositories, which can be installed by

sudo apt-get install gfortran

This is the GNU Fortran 95 compiler, which compiles Fortran 95 on platforms supported by the gcc compiler. It uses the gcc backend to generate optimized code. g77 isn't used anymore.


After much trawling through various posts on Ask Ubuntu, etc. I finally found the following worked:

If unity still does not load try:
dconf reset -f /org/compiz/
unity --reset-icons &disown

I now have the Unity launcher sidebar back and can use the laptop again.
Hoo*******ray!


How can I make Windows the default OS in GRUB?

Install Grub Customizer

$ sudo add-apt-repository ppa:danielrichter2007/grub-customizer
$ sudo apt-get update
$ sudo apt-get install grub-customizer

When you run the application the first tab is the List configuration.  Select the Menu Item you want to sort and hit the up/down arrows in the menu bar to place it in the order you want.

Save and exit.

There are a number of other useful features under General Settings such as choose the default checked, kernel parameters and countdown timer.


How to render a simple html file in localhost

Check if mod_userdir is enabled: ls -l /etc/apache2/mods-enabled | grep userdir.

If it isn't, enable it using a2enmod userdir.
After restarting apache, files in /home/<user>/public_html are served.


How to handle GRUB configuration on a multi booted system?

If you have multiple installs using grub2, only one of them can be in MBR and controls booting. That usually is the last install. And you may have issues if you installed both originally to MBR of same drive. Grub remembers where it installed and a major update of grub will reinstall it. Or either or both installs may be updating grub. I like to document how system is booting with Summary report:

https://help.ubuntu.com/community/Boot-Info

On one install you use least you can unselect all install choices. But make sure other is in MBR as default boot first.

How do I prevent one of my partitions messing with Lubuntu Grub entries?


Setting up Beats audio on HP Pavilion M6

This Gentoo forum describes their solution, I do not think it is ideal since it requires a recompile, but I think you should be able to follow. their instructions and adapt them to Ubuntu (depending on your skill level of course).

Gentoo: http://forums.gentoo.org/viewtopic-t-922794-start-0.html

Launchpad: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1019127


I think you can safely update directly, I updated my LAMP server to an RC and no problems appeared.


if you want graphical GUI use Synaptic Package Manager if you don't have it install it using terminal Ctrl + Alt + T:

sudo apt-get update

sudo apt-get upgrade

sudo apt-get install synaptic

open Synaptic clicking on Ubuntu Dash Logo or hit super key and type synaptic open and search for your Winetricks version installed click on a mark opposite to package name and choose complete removal and at the top of window press apply then install it again.


How to route all traffic through vpn adapter?

This answer assumes you already have successfully connected your account and have a working adapter.

Ok, after sifting through tutorials on IP tables/routes I found the solution that works with SoftEther that should work with other VPN adapters to tunnel traffic through the adapter.

Start by running ip neigh to get the default gateway of your VPN's network and the default gateway of this network. You will also need your remote server IP. If this doesn't get the information for you, run ifconfig and tcpdump on the IP for your VPN adapter.

You can easily combine the bellow steps into a bash script and/or reverse them to disconnect a VPN adapter:

First you will need to get DHCP info from your server with:

sudo dhclient vpn_myadapter

vpn_myadapter is the the adapter name that can be found with ifconfig.

Second you have to create a route from your VPN server's IP address to your local internet gateway that will get you out to the internet. 55.55.55.55 is what I will use as the example server address. Also you will need to know what the adapter names are for your internet connection and your VNA (virtual network adapter), and you can find these with ifconfig. You can also use ip neigh to get a concise list of your adapters and their gateways.

Command to create a route from VPN IP to local gateway (in this example 192.168.0.1)

sudo ip route add 55.55.55.55/32 via 192.168.0.1 dev eth0

Make sure eth0 is set to the adapter that corresponds with your local gateway

Next you'll delete your default route which routes all traffic by default.

sudo ip route del default

Now you will add a default route that will use the VPN's default gateway. This information can be gathered from either your provider, the server you setup or using a combination of tcdump, ip neigh, and ifconfig. You might be able to find the information at this point, but you should have run ip neigh at the beginning if you are unable to find the information now. I will use the default default gateway provided by SoftEther which is 192.168.30.1.

sudo ip route add default via 192.168.30.1 dev vpn_myadapter

That should route all your traffic through the remote network. If you are still unable to connect to the internet you will need to run DhcpEnableand SecureNatEnable (you shouldn't but might need to run NatEnable depending on your configuration) on your server if you are unable to get dhcp or internet working after you have connected your client through these steps or your dhclient command didn't work. I am unsure if your server will need a reboot after updating it.

EDIT: SecureNatEnable will enable NAT and DHCP.


I believe this is possible on versions before 18.04 but one can setup a logon script and that will then work per user on the machine.

Quote:
"Log-in sound is just one example. Add ~/bin to your paths, make a script including all your start-up things inside it (you could even set their order with sleep INTERVAL), make it executable, and then add it to LXQt Session Settings → Autostart.

This is very flexible. For example, I’ve added /usr/bin/lxqt-notificationd & to such a script after removing it from LXQt module startup because I wanted it to have blurring with kwin and so, it should start a little later. And so on and so forth…"

Source:
https://forum.lxqt.org/t/will-lxqt-support-logon-sounds/396/8?u=thatrandomguy


SSHFS to make remote external drive visible in Nautilus?

Well, first of all, /dev/sdb and /dev/sdc need to be mounted on the remote system.

Mount the devices, (you'll need root privileges):

$ cd /mnt
$ mkdir music movies
$ mount /dev/sdb1 music
$ mount /dev/sdc1 movies

Now back on the client, open up Nautilus. Goto File -> Connect to Server. Fill in the menu that appears, be sure that the folder is either /mnt/music or /mnt/movies.

sample fstab entry

sshfs#$USER@far:/projects /home/$USER/far_projects fuse defaults,idmap=user 0 0

Note:

USER@far is the user name and server name you use to ssh into the server. :/projects is the path you use to the location of the mount on the server.

sshfs#your_user@your_server:/mnt/movies /home/your_user/movies fuse defaults,idmap=user 0 0

See also https://help.ubuntu.com/community/SSHFS


Not able to change path to a directory in ubuntu

When you open a Terminal, the working directory is you home, so you can easily go to /home/sdk by entering:

cd sdk

Otherwise, you should type the complete address beginning with /. In the case of an address contains spaces you have to use quotations or use \ before the space. Like:

cd "/media/New Volume/softwr/pgm"

or

cd /media/New\ Volume/softwr/pgm

Note that Linux is case-sensitive, so be careful about the uppercase letters.


smbmount returns "operation not permitted"

See this bug in Ubuntu:

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

and the related bug in Debian:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=571323

This is an intentional change in behaviour for security reasons. Instead of using mount with the setuid bit set you might want to run it using sudo.


15.04 sound is muted and will not unmute

Open up alsamixer by entering it into the terminal.

Check to see if Auto-Mute is enabled:

If it is, navigate to 'Auto-Mute Mode' with the right arrow key.

Set 'Auto-Mute Mode' to 'Disabled' with the down arrow key.

Source


How do I recover from a read DMA bootup error?

There was an Input Output error at your Hard Disk sda part, at sector 4650928.
You can boot from Ubuntu Live cd/dvd/usb, start Disks Utility, try to see the SMART data and test your sda disk.

Possible duplicate


Gnome- terminal quits when pressing enter

I changed my .bashrc file to a pristine one and the problems were gone. Added one by one the lines of my original .bashrc file and found the one causing the issues:

### Bashhub.com Installation.
### This Should be at the EOF. https://bashhub.com/docs
if [ -f ~/.bashhub/bashhub.sh ]; then
    source ~/.bashhub/bashhub.sh
fi


Typing is extremely sluggish/choppy after upgrading to 14.04

can you please go into details from dash and check the graphics  driver?
I think it has to do with your graphics driver.

I think you should add this ppa
https://launchpad.net/~ubuntu-x-swat/+archive/ubuntu/x-updates

I hope you know how to add a ppa, sudo add-apt-repository ppa:ubuntu-x-swat/x-updates

and then after sudo apt-get update
run sudo apt-get dist-upgrade
I hope it will be ok by then.


Dual Boot with Windows 8 UEFI - Ubuntu/GRUB Being Bypassed

The Boot Repair tool isn't 100% reliable. The problem you seem to have run into is that Boot Repair is rather over-enthusiastic about juggling boot loader files. Specifically, Boot Repair renames the Windows boot loader and installs a copy of GRUB in its place; however, this "repair," in addition to being terribly confusing, is sometimes undone by Windows -- Windows sees the change and (quite reasonably) re-installs its own boot loader. What's more, this "repair" is seldom necessary; the tool just applies it in a scattershot approach with a bunch of other "repairs" in the hopes that it will be useful. Unfortunately, sometimes it's not, and it can cause follow-on problems.

I recommend you try this:

Back up the contents of your EFI System Partition (ESP; your /dev/sda1). This will serve as a fallback in case you make matters worse.
Re-run Boot Repair, but click the Advanced Options item and check the Restore EFI Backups option before proceeding. This will undo some of Boot Repair's changes.
Reboot and test both Windows and Ubuntu. There's a good chance that everything will work; however....

If the system starts booting Windows directly, launch an Administrator Command Prompt window (not a PowerShell; it won't work) and type bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi.
If the system starts booting Ubuntu directly with no option to boot Windows, install my rEFInd boot manager. Installing the Debian package is the easiest way to do this. rEFInd tends to be more reliable about launching Windows than is GRUB, so this may well fix the problem.


Battle.net won't launch after latest update

Remove the folder 7730 which is the newest update and it will work fine.

But when you get inside the battle.net, stop the updates.


~ is expanded by the shell. Paths are relative on sshfs, you are currently asking to mount /home/someuser/~/folder from machine desktop1.

Drop the ~/ part and sshfs should find the remote folder relative to the home directory:

sshfs desktop1:folder/ ~/Documents/folder/


Fujitsu LH532 touchpad detected as PS/2 Generic Mouse

I wish I could give better information, but the best I've come up with is hitting Fn+F4 each time I boot into Linux.  This disables the trackpad.


Landscape : Failure: landscape.lib.amp.MethodCallError: timeout

Just so it's clear, no public internet access is needed, so that should not be your issue.

To help you further though, the full output from the command you ran is important, could you make sure you haven't missed anything when pasting?  As well, please include the the output in:

/var/log/landscape/broker.log

Beware the broker.log is repetitive, so you will want to just grab one error out, or use pastebin.


Dual boot /w Win, want to change my Xubuntu to Ubuntu

It's quite easy to switch from Xubuntu to regular Ubuntu desktop. You don't need to format anything, neither to mess with grub, so there's any risk.

The core system is the same, so there's no reason to remove it and put it there again.

You just need to install the ubuntu-desktop package, and then remove the xubuntu-desktop package and its dependencies.

Switching from one desktop environment to the other

Here's how you can do it (replace apt with apt-get if running a release prior of Ubuntu 16.04):

Open a terminal, and type (it may take a lot of time, since it needs to download and install several packages):

sudo apt install ubuntu-desktop

Once it's done, remove xubuntu-desktop and its dependencies:

sudo apt purge xubuntu-desktop
sudo apt autoremove

If everything went fine, run sudo apt clean to recover some space and then reboot, so the system will run the new login manager.

With a plain, unmodified system, this should be enough.

Dealing with manually installed packages

Anyways usually you install some more packages to add functionalities to your desktop, and you may don't need them any more after the switch to ubuntu-desktop.

Packages that depended on Xfce should already be removed with it, but may be a few packages independent of the desktop environment that you may want to remove.

You can see a list of manually installed packages with the command:

apt-mark showmanual

Give a look at this list, and if you spot something you remember you installed when using Xubuntu and that you think won't need any more, remove it and its dependencies with something like:

sudo apt purge packagename
sudo apt autoremove

Obviously, don't remove packages if apt tells you that they are dependencies of the ubuntu-desktop package.

If you don't remember what a package does, you can get a description with:

apt show packagename

If unsure, leave a package as it is. If unused, it won't do any harm, apart from taking a little space on your drive.


You can download human icon theme but it will probably have a lot of missing icons.

sudo apt-get install human-icon-theme

You can also try gnome-colors wich has six diferent color schemes and resembles the original gnome2 icon set(you can also make your own color schemes with the source code).

http://gnome-look.org/content/show.php/GNOME-colors?content=82562

sudo apt-get install gnome-colors


This will be by default in a bar at the bottom in 3.14 (and older versions) - you can access it by pushing the mouse at the bottom of the screen (or pressing Super+M or something), like the grey bit at the bottom of this screenshot - this also will contain notifications you get:

However, similar to the screenshot, you can move the status icons of Skype, Dropbox etc to the top bar by use of GNOME shell extensions - e.g.:

Topicons
TopTray (similar but you should be able to re-size the icons)

N.B with 3.16 (unavailable by default on your Ubuntu version), it has been changed so by default the the notification appear in the calendar menu, and the status icons appear in the bottom left - see here


"ModuleNotFoundError: No module named 'apt_pkg'" appears in various commands

Make sure that python-apt has been installed.
you can remove and reinstall python3-apt.
try:

sudo apt install python3-apt --fix-missing

or

sudo apt remove python3-apt
sudo apt autoremove
sudo apt autoclean
sudo apt install python3-apt

maybe below code better than previous for remove python3-apt

sudo apt remove --purge python3-apt

you can use apt-get instead of apt.
I hope it helps you.


You can try Picuntu: http://ubuntu.g8.net/
It's an Ubuntu distro specialized for Rockchip based computers like Neo X5 and X7.


I cannot browse the internet using a normal connection but can using Tor

You need to configure DNS . Usually your DNS is provided by your router (192.168.0.0 ? )

networkmanager


Unity crash to a blue screen after login

Yes, Unity2D was discontinued, much to the dismay of many of us that still use some pretty ancient cards. So, for some people this means that Unity cannot be loaded.

Now, I understand that Unity has become a central part of Ubuntu (and I expect some backlash for my answer), however in your case I would recommend ditching it. It may be painful and not what you're used to, but it may be your only choice.

From a VT (Ctrl+Alt+F1), run this command:

sudo apt-get install gnome-session-fallback

or in newer versions of Ubuntu:

sudo apt-get install gnome-panel

That should pull in everything that you need to use the classic Gnome interface from the pre-Unity days. You may even be brave and try gnome-shell, but I'm guessing you'll get nowhere with that either.

In order to use it, you have to select it at the login screen. To do this, before you enter your password click the Ubuntu logo just up and to the right of the password input box. From here you select "Gnome Classic" and upon login you should be in a fully-working desktop environment!

EDIT: As noted by strugee below, gnome-session-fallback will not work in future versions.  It has been renamed to gnome-panel.


Normally, it is advised to refrain from manipulating files in system folders by hand. Open Software Center, look for the games you want to get rid of and hit Remove.


Can Grub error messages be hidden, as Ubuntu continues to load regardless?

You would need to edit the file /etc/default/grub.

In this file you'll find an entry called GRUB_CMDLINE_LINUX_DEFAULT.  This entry must be edited to control the display of the splash screen.

The presence of the word splash in this entry enables the splash screen, with condensed text output.  Adding quiet as well, results in just the splash screen; which is the default for the desktop edition since 10.04.  In order to enable the "normal" text start up, you would remove both of these.

So, the default for the desktop, (i.e. splash screen only):

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

For the traditional, text display:

GRUB_CMDLINE_LINUX_DEFAULT=

After editing the file, you need to run update-grub.

sudo update-grub

For more details, see this: https://help.ubuntu.com/community/Grub2


Installed Ubuntu, can't boot into Windows 10

There are some disk read/write errors. Please check the disk for any
errors.
Apart from this make sure that your BIOS points to the device where
/boot is being created.


The Skype repository is defined twice. Once in /etc/apt/sources.list.d/skype-stable.list and again in /etc/apt/sources.list.d/skypeforlinux.list. You should remove one of them... but which one? Do this...

In terminal...

cat /etc/apt/sources.list.d/skype-stable.list
cat /etc/apt/sources.list.d/skypeforlinux.list

the output of the cat commands may be different. The first one will probably be for the Skype stable version, and the second one will be for the beta version of Skype. Review them carefully.

You'll want to either...

- delete the skype-stable.list file
- delete the skypeforlinux.list file

To do one of the above... do either...

sudo rm -i /etc/apt/sources.list.d/skype-stable.list
sudo rm -i /etc/apt/sources.list.d/skypeforlinux.list

Update

It looks like Microsoft used two different repo .list names depending on when you installed Skype. The latest installer, skypeforlinux-64.deb actually lays down a /etc/apt/sources.list.d/skype-stable.list file.

The /etc/apt/sources.list.d/skypeforlinux.list file came from a previous Skype install... so that's where you end up with two .list files, and causes all of the problems.


AFAIK it's not mentioned in the man page, but in the Context Line Control section of info grep you will find the option

‘--no-group-separator’
     When ‘-A’, ‘-B’ or ‘-C’ are in use, do not print a separator
     between groups of lines.


How to tweak Unity panel bgcolor in Ubuntu 12.10?

The problem that was causing this theme to be unresponsive to changes in the values that affect the bgcolor of the unity-panel was apparently (as far as I could figure out by trial-and-error) int the Gnome Panel section which was included in the same "gtk-apps.css" file, which was resolved when I deleted this entire section, which was not needed under Unity anyway.


How to Customize the size of the Folder & Files in the desktop?

From Settings -> Displays;

There is a place that named "Scale for menu and title bars" or "UI scale"

You can use there.

One more option unity-tweak-tool;

To install;

sudo apt-get install unity-tweak-tool

To Run from terminal ;

unity-tweak-tool


You can either go with a swap file, like the answer to the question you link to, or you can add a swap partition.

Using a swap file:
Command borrowed from #Qasim in Does it make sense to create swap partitions for new installations nowadways?

First switch to the root user

sudo su

Then run the following command

mkdir /swap && cd /swap && fallocate -l 2g 2GB.swap && mkswap 2GB.swap && swapon 2GB.swap && echo "# # # Swap File # # #" >> /etc/fstab && echo "/swap/2GB.swap    none                   swap               sw                       0       0" >> /etc/fstab && mount -a

This will first create a folder called /swap, then enter the folder and add a 2 GB swap file. Then it will activate the swap file, and at last, it adds an entry to /etc/fstab that ensures this happens every time.

Using a swap partition:
Seeing as you are using an MS-DOS partition table, you can not have more primary partitions. In order to make a swap partition, you will have to 'temporarily' delete one of your partitions.
So first back up your data from that partition, then in gparted, delete the partion.

Right click on the now unallocated space and create a new partion, make sure to choose 'Logical' partition.

This logical partition can contain a lot of primary partitions, so now you can create a partition similar to the one you deleted, and add the swap partition next to it.

Once the swap partition is created, you can activate it with sudo swapon /dev/sda5 (replacing /dev/sda5 with the actual name of the partition).

To ensure that it is activated every time you boot, you'll have to edit /etc/fstab

sudo nano /etc/fstab

Add a new line with the following text, replacing /dev/sda5 with the name of your device:

/dev/sda5 none swap sw 0 0

Save with CTRL+O, then close with CTRL+X


Error Installing virtualbox-dkms: kernel package linux-headers-4.15.0-34-generic is not supported

So I ended up resolving the problem by manually installing a newer version of the kernel. I found a tutorial on It's Foss which guided me on downloading and installing the kernel.
What I did was to manually download the deb packages for the kernel (Version 5.6.4) from the Ubuntu Kernel Site which includes the following files (Mine is the 64 bit architecture):

linux-headers-VERSION-NUMBER_all.deb
linux-headers-VERSION-NUMBER_amd64.deb
linux-image-VERSION-NUMBER_amd64.deb
linux-modules-VERSION-NUMBER_amd64.deb

I placed all those files in a seperate folder, I opened a terminal window and changed to the path of that folder using the command: cd {folder_path} where {folder_path} is the full path to the folder where I downloaded the deb files for the kernel.
Then I installed them by running the command: sudo dpkg -i *.deb
After that, all I had to do was restart my computer and I was updated to the newer kernel version.


How can I use Ubuntu live with a newer kernel?

Ubuntu live (generally linux live) systems can only use the kernel, that comes with the iso file.

But you can get a newer iso file from the QA iso testing tracker. There are daily iso files of 'Bionic' alias 18.04 LTS (which develops slowly and in a stable way) and of 'Cosmic' to be released as 18.10 in October.

You can check if one of these daily iso files will work. I don't know know any other [easy] way to get Ubuntu live with a newer kernel.


I've had the exact same problem since upgrading to 15.10, and the auto-reload was central to my workflow. The other image viewer Eye of Mate (eom) seems to be a clone of eog, with the same issue. Many other similar bug reports on the net as well.

I ended up using the geeqie image viewer instead, which does auto-reload images on filesystem changes.


You need execute permissions on the file /etc/grub.d/40_custom.

The command

sudo chmod +x /etc/grub.d/40_custom

will add the execute permissions to the file.

After doing that, run

sudo update-grub


Brother network scanner stopped working after 20.04 update

Found it.
List of sane backends in /etc/sane.d/dll.conf got moved to /etc/sane.d/dll.conf.dpkg-old during upgrade, and the "new" one didn't contain brother4 backend.
I've added it and now the scanner gets found by frontends.


How do I find out which repository a package comes from?

Use following command. It has better output:

apt-cache policy <Package Name>

For Ubuntu 16.04 and later there is a shorter way to do that:

apt policy <Package Name>


I have had the same problem. I tried this and it works for me.

sudo apt-get install openssh-client=1:5.9p1-5ubuntu1
sudo apt-get install openssh-server


Keyboard layout in LUKS prompt unusable (layout: russian, password: english)

Problem fixed:

How to temporary get into system again:

boot with rdinit=/bin/sh
remove /etc/console-setup/cached_UTF-8_del.kmap.gz
exec /init

this boots normally, does not change the keymap to russian(or whichever keymap your problem waas), stays default english

how to fix permanently:

change the order of keymaps in gnome so your preferred during boot is first
sudo update-initramfs -u

for me, the most important and missing piece was rdinit=/bin/sh


NetworkManager does not start unless a users logs in first

Found it:
nmcli> describe connection.autoconnect

=== [autoconnect] ===
[NM property description]
Whether or not the connection should be automatically connected by NetworkManager when the resources for the connection are available. TRUE to automatically activate the connection, FALSE to require manual intervention to activate the connection. Note that autoconnect is not implemented for VPN profiles. See "secondaries" as an alternative to automatically connect VPN profiles.

nmcli>


You want full-size of your screen with nvidia ? it works here:

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.old
sudo rm /etc/X11/xorg.conf
sudo dpkg-reconfigure -phigh xserver-xorg
sudo reboot


Fractional scaling a single application window in Gnome Shell

The run_scaled script provides the following option:

--scale  Sets the factor the application is scaled by.
         Fractional scales are supported. It is set to 2 by default.

To change the scaling factor you need to run the script on the executable you wish to run scaled as e.g.

/path/to/run_scaled --scale=1.2 /path/to/application


How to share files between 2 ubuntu PC's

Linux servers use NFS to share filesystems.  Each server needs to 'export' desired directories for 'mounting' by the other server.

start by installing needed packages on each server:

sudo apt-get install nfs-common nfs-kernel-server

Let's say you have server 'A' and you want to share directory 'Green'
server 'B' has directory 'Red' to share.

Setup 'exports' On Server A:

sudo mkdir /exports
sudo mkdir /exports/Green
sudo echo "/exports/share1 *(rw,insecure,no_subtree_check)" >> /etc/exports

sudo service nfs-kernel-server restart

Place the files you want to share in /exports/Green

Repeat for Server B, changing Green to Red.

Can we see the exports:

showmount -e <your_server_ip>

Now setup servers to 'mount' the exported dirs.

On server A (notice A is mounting from B):

sudo mkdir /Red
sudo mount -t nfs -o nfsvers=3 <server_B_ip>:/exports/Red /Red

Repeat for server B:

sudo mkdir /Green
sudo mount -t nfs -o nfsvers=3 <server_A_ip>:/exports/Green /Green

The mount will not persist across reboot, so you'll need to add to /etc/fstab


Where are the XFCE4 appearance/font settings stored in Xubuntu 16.04?

Found it! It's in ~/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml. Most of the settings will be set to "empty" if they haven't been changed, otherwise they'll be set to the value. For example, the DPI is set with <property name="DPI" type="int" value="96"/> under Xft, while the font is set to a string with <property name="FontName" type="string" value="Noto Sans 11"/> under Gtk.


Well, are you sure you have tcsh installed in your system. By default shell is bash. If you are so specific to have tcsh as your default shell first check you have installed it your system and know its path by using the following command

which tcsh

if its installed you can see the path where its installed, I assume by default it could be /bin/tcsh. Now check it is in the file /etc/shells. If yes now you can change the your default shell from bash to tcsh by issuing the following command

usermod -s /bin/tcsh USERNAME

use your system username instead in the above command. Thats it.


Access mounted volumes via the command line

automounted drives usually sit on /media/{label of your partition}. You can browse into it  by cd command in terminal
say if my pendrive is labeled SAGAR

cd /media/SAGAR

You can view the path in nautilus with ctrl+l and cd from terminal copying the path as well

EDIT: In Newer version, the username is used for directory: /media/${USER}/{SOME_HASH}


Why can't apt ignore package distribution suffixes?

The package versions are not exactly the same
The first is the initial 18.04 packaged version, the second has subsequent bug fixes (inc. CVE-2018-10754 fix) that wasn't in the original bionic packaged version
see:
https://packages.ubuntu.com/bionic-updates/libtinfo5
https://changelogs.ubuntu.com/changelogs/pool/main/n/ncurses/ncurses_6.1-1ubuntu1.18.04/changelog
ncurses (6.1-1ubuntu1.18.04) bionic-proposed; urgency=medium

  * SRU: LP: #1772872: Backport changes from 6.1+20180210-4:   * Move screen.xterm-256color and rxvt-unicode-256color terminfo entries
    from ncurses-term to ncurses-base (Closes: #898666, #898948).   * Cherry-pick a fix from the 20180414 patchlevel: add a null-pointer
    check in _nc_parse_entry to handle an error when a use-name is invalid
    syntax (report by Chung-Yi Lin, CVE-2018-10754).

 -- Matthias Klose <doko@ubuntu.com>  Wed, 23 May 2018 10:08:27 +0200

I only looked up the first of your listed packages, I suspect you'll find the same for the others too


How to get select statement choices into If statements?

You'd use a case statement:

var=... your menu select code ...

case "$var" in
    a )
        script_a ;;
    b )
        script_b ;;
    c )
        script_c ;;
esac

tldp.org have a load more examples.


I suspect the cause of those problems is the combination of newer hardware with an older Ubuntu release. It would have been fine as a server, but you obviously want to use it as a desktop, otherwise, why have all the desktop components.

I'd suggest, either upgrading to 12.04 (can be done directly from 10.04), or experimenting with backported kernels. For example, to get the latest backported server kernel from Oneric, install the linux-image-server-lts-backport-oneiric package, or, for the latest desktop one linux-image-generic-lts-backport-oneiric.

Newer kernels should provide better support for newer Intel graphics.


How can I easily turn a network mount in Nautilus into an fstab entry?

It sounds like what you actually want is the ability to quickly access a particular network mount? If so, simply right-click on the network mount and select "Add Bookmark", you'll then be able to access that mount from the bookmark link on subsequent boots.

That is a much safer option that modifying your systems /etc/fstab file: if /etc/fstab gets corrupted, you may end up with a system that won't boot. And even if you do update /etc/fstab correctly for the mount in question, you will potentially impact boot performance by specifying a network (non-local) mount there.

If you really, really want to update /etc/fstab, there is a command-line tool that will show mount details for nautilus mounts:

gvfs-mount -l

Or for more details:

gvfs-mount -li


Problem solved:

Looks like using a profile inherited from previous versions of chromium was causing the issue. Recreating the same profile from scratch fixes it.

Chromium 52 is now as fast as Chromium 37 on both Ubuntu 14.04 and 16.04.

The profile is stored in the user's ~/.config/chromium directory.
To move the existing profile aside and start from scratch:

Close Chromium
Open a terminal and do:

$ mv ~/.config/chromium ~/.config/chromium.old

Chromium will create a new chromium directory next time you start it.
Now you can reinstall extensions, replicate settings, import bookmarks etc.

If you need to go back to the old profile, close Chromium and do:

$ mv ~/.config/chromium     ~/.config/chromium.new
$ mv ~/.config/chromium.old ~/.config/chromium


Reinstalling the touchpad drivers may help.

sudo apt-get --purge autoremove xserver-xorg-input-synaptics && sudo apt-get install xserver-xorg-input-synaptics xserver-xorg-core xorg-input-abi-20


How do I add a command permission to specific user to do it without password?

From https://help.ubuntu.com/community/Sudoers:

Try adding the following to /etc/sudoers with <username> filled in appropriately:

Cmnd_Alias SHUTDOWN_CMDS = /sbin/poweroff, /sbin/halt, /sbin/reboot, /sbin/shutdown
<username> ALL=(ALL) NOPASSWD: SHUTDOWN_CMDS


Upgrade from 12.04 to 16.04 breaks libstdc++

Manually installing gcc-5-base 5.4.0-6ubuntu1~16.04.4 made apt-get figure it out. I then removed gcc and reinstalled the latest


Compile .less files into .css after every update

Simply put, the -w argument doesn't exist.

$ lessc --help
usage: lessc [option option=parameter ...] <source> [destination]

If source is set to `-' (dash or hyphen-minus), input is read from stdin.

options:
  -h, --help              Print help (this message) and exit.
  --include-path=PATHS    Set include paths. Separated by `:'. Use `;' on Windows.
  -M, --depends           Output a makefile import dependency list to stdout
  --no-color              Disable colorized output.
  --no-ie-compat          Disable IE compatibility checks.
  -l, --lint              Syntax check only (lint).
  -s, --silent            Suppress output of error messages.
  --strict-imports        Force evaluation of imports.
  --verbose               Be verbose.
  -v, --version           Print version number and exit.
  -x, --compress          Compress output by removing some whitespaces.
  --yui-compress          Compress output using ycssmin
  --max-line-len=LINELEN  Max line length used by ycssmin
  -O0, -O1, -O2           Set the parser's optimization level. The lower
                          the number, the less nodes it will create in the
                          tree. This could matter for debugging, or if you
                          want to access the individual nodes in the tree.
  --line-numbers=TYPE     Outputs filename and line numbers.
                          TYPE can be either 'comments', which will output
                          the debug info within comments, 'mediaquery'
                          that will output the information within a fake
                          media query which is compatible with the SASS
                          format, and 'all' which will do both.
  -rp, --rootpath=URL     Set rootpath for url rewriting in relative imports and urls.
                          Works with or without the relative-urls option.
  -ru, --relative-urls    re-write relative urls to the base less file.
  -sm=on|off              Turn on or off strict math, where in strict mode, math
  --strict-math=on|off    requires brackets. This option may default to on and then
                          be removed in the future.
  -su=on|off              Allow mixed units, e.g. 1px+1em or 1px*1px which have units
  --strict-units=on|off   that cannot be represented.

Report bugs to: http://github.com/cloudhead/less.js/issues
Home page: <http://lesscss.org/>

However, you can use inotify to watch for changes and this accomplishes roughly what you want:

while inotifywait -r styles.less; do
    lessc -x styles.less styles.css;
done

2019 update: While lessc is something I still do use directly, occasionally, I tend to lean towards a full webpack stack these days.

It's not quite as soul destroying as it appears from afar, but it can take some time (and trust) to get set up. Especially if you have preconceptions about how this stuff should work.

And yes, I'm sure by Summer 2019 webpack will be a dead project and all the client-side-hipsters will have moved onto something else. That's just the risk here. The good thing is that ultimately this is a layer on top of things like LESS and SASS and various scripting languages, and it's all client side. So you can continue to be a dinosaur for as long as you like.


Lubuntu 18 freezes/hangs on shutdown or reboot

Try blacklisting nouveau

there are several ways to do this:

add to grub command line: modprobe.blacklist=nouveau
add text "blacklist nouveau" to /etc/modprobe.d/blacklist.conf and run "sudo update-initramfs -u" and reboot


Is the vanilla version of the Snap-Store able to deal with .deb and apt?

There are two different software apps in Ubuntu 20.04, Software  and Snap Store . The Snap Store and the Software app can be installed alongside each other without removing either app.
Snap Store is a graphical desktop application for discovering, installing and managing snaps. The vanilla version of the Snap Store is not able to deal with deb packages and apt. All the apps in the Snap Store are snap packages. If you're searching for a snap package it's more convenient to search for it in the Snap Store, because sometimes the same app has two packages in Ubuntu Software, an apt package and a snap package, but the same app has only one snap package in the Snap Store.


What I am noticing from your output of the error is this:

dpkg: dependency problems prevent configuration of tvbrowser:

Try:

 sudo apt-get -f install

This should satisfy dependencies not met when you installed a .deb file in Ubuntu. It may end up asking you if it is ok to download those dependencies.

Hope this helps, if it helps.


Can't uninstall Ubuntu WUBI after upgrading Windows to Windows 8

You can refer to this WubiGuide for uninstallation.

When you upgraded Windows it replaced the registry entries so it can no longer uninstall automatically, but the Wubi Guide shows how to uninstall manually. This also shows how to manually remove the boot entry from the Windows Boot Manager


Strange colors in Ubuntu (green tint, 14.04 LTS)

I know this old now, but I was experiencing this too. It happened to me after loosing grub2. I had to install it from a live CD.

The desktop remained with a dodgy green hue to it until I updated grub. Try this and see if it works:

sudo update-grub

after rebooting the green hue was fixed. maybe just be correlation rather causation, but worth a shot if you are still having problems.

Cheers


Ubuntu does not boot alongside windows 8 (toshiba satellite p855)

Maybe your windows is constantly setting up secure boot because you are not using the windows-in-built feature that lets you access the BIOS.
I strongly recommend you to enable LEGACY support in your laptop if you want to try another linux distros or just install ubuntu, you can enable it in your BIOS settings too.

To access BIOS go to your windows 8, swipe left of the screen and go to

Change your Settings >> Update and Backup  >> Backup >> Advanced startup >> Fix problems >> Advanced Settings >> BIOS/UEFI Config.

Then acces the BIOS and disable the secure boot, another thing is that Windows in EFI mode is the lord of the computer, and the only way to boot a pendrive is:

In BIOS changing the order of boot
Access to the pendrive/CD using an alternate key

the alternate key to boot device is not the same for each laptop, you can try with F1-F12 and is only available when the manufacturer logo appears, you can boot Ubuntu with this key too so is very important to know what key is, In my laptop is F12.

that will solve your problem...

If you want to use GRUB as your default bootloader, boot a live session with ubuntu in EFI/UEFI mode, open a terminal then type this.

sudo grub-install /dev/sda


Nvidia graphic driver is installed but the graphic card is not used!

Most probably you have a Secure Boot option enabled, and that feature is preventing nVidia's kernels from loading, thus Ubuntu will use the integrated card only.

Try temporarily disabling the Secure Boot feature, and test if the nVidia card is being utilized.

Disabling the Secure Boot should be possible via your UEFI BIOS (I access mine with F2 when the system starts booting).

If that turns to be the case, you have to sign the nVidia driver, which is a saga in itself.


Your boot flag must be set set to the wrong partition.

Same happened with me when I dual boot ubuntu and windows but couldn't load any.

So, try checking the partitions using any partition editor.

Since none of your OS is loading up, you should boot using GParted live usb.

Then in partition manager, check for the boot flag.

It must be set to the partition where the  /root is installed.


So, you're right.  We could be tighter on security than we are right now with respect to how we handle ports.  We are aware of the issue, but unfortunately it's not on our list of things to address for the next few months.  I've filed a couple bugs to keep track of these issues, so they don't fall through the cracks.  It's possible they could get picked up as tasks to complete in the near term, but I can't say for sure.

https://bugs.launchpad.net/juju-core/+bug/1321407
https://bugs.launchpad.net/juju-core/+bug/1321408

If you'd like to talk more about your use cases and what you'd like to see implemented for Juju, I encourage you to post to the Juju mailing list - juju@lists.ubuntu.com


How to deal with "Unable to locate package" when installing a package?

Your research is correct:

The zoxide deb package was first added to Ubuntu in 21.04. It is not available as a deb in Ubuntu 18.04 nor Ubuntu 20.04 (nor Ubuntu 20.10). You can try using a wrong-version package on your 20.04 system, but it rarely works.

There is no snap package matching the name zoxide, so no community members have created a snap for that software. If you are enthusiatic about the software, consider doing so.

To install on 18.04 and 20.04, follow the instructions to install from .tar.gz (tarball) in the software's upstream README file.

If your distribution isn't included in the list below, you can download the binary from the Releases page and copy it to your $PATH.


From Live Cd/DVD
 First ensure the partition containing your encrypted home directory is mounted.  You can easily mount it by clicking It in the file manager; you will see an eject (unmount) icon, indicating the partition is mounted.

Now Open a Terminal (Ctl  Alt T)

Then look for the drive:

 sudo ecryptfs-recover-private

This command will offer to recover an encrypted directory if it locates one.

Assuming the command found a wrapped passphrase file on your system, it will prompt you for your login passphrase. If it doesn’t find this file, you’ll need the mount passphrase from the ecryptfs-unwrap-passphrase command – hopefully you have a copy of this. If you don’t, you can’t recover your files.

If you have found the drive and entered the correct password

The command will mount the encrypted directory in your /tmp directory.(your temporary files)

You can access this directory to view the decrypted versions of your files. However, you may not have read access to this directory as the live CD user.

To access the directory with a graphical file browser, run Nautilus as root. Press Alt+F2, type gksu nautilus and press Enter.

You will now be able to access your files from the Nautilus window running as root. From here, you can easily copy the files to an external hard drive or another location!!

References -UbuntuGeek


How do I run my bash script on Terminator? Or is it even possible?

Open Terminator, and navigate to the directory your script is stored in.

Then you can run:

expect nameOfScript.sh

To set terminator as the default terminal use:

gsettings set org.gnome.desktop.default-applications.terminal exec terminator

To reset the default terminal back to gnome-terminal use:

gsettings set org.gnome.desktop.default-applications.terminal exec gnome-terminal


Set max-routes from network-manager-openvpn

I'm facing with such problem too.
Openvpn can be started with option --max-routes xxx, where xxx - number of routes. So, I rename file /usr/sbin/openvpn to /usr/sbin/openvpnm (modified). Then create new file /usr/sbin/openvpn with the following:

#!/bin/sh
/usr/sbin/openvpnm --max-routes 500 "$@"

Where 500 is number of the routes.

Make this file executable:

chmod +x /usr/sbin/openvpn

Now Network manager works with fine.


Project Hamster Time Traker, lack of Unity support

Hamster is used by many people, but I know personally only 1-2 people who use it.

Alberto Milone has come up with a AppIndictaor for Hamster

Also you can check this from Project Hamster blog


How to enable ALT Gr key as ALT R for Emacs on Ubuntu 16.04?

You can simply add English US (or any other layout without ALTGr) to your Text Entry settings.

Then, use the standard Super + Space to use Emacs with US keybindings. Unfortunately, you won't be able to use any local characters specific to your country.

Unfortunately, you can't just reconfigure ALTGr to ALT through emacs init. Altering your xkb map would be a solution but you didn't want that. This solution is more GUI-oriented. Enjoy.


No need to be concerned at all. dpkg only looks to see if packages are available in /var/lib/dpkg/available From the manpage:

          -p, --print-avail package-name...
              Display details about package-name, as found in
              /var/lib/dpkg/available. Users of APT-based frontends
              should use apt-cache show package-name instead.

Where apt-cache policy PACKAGE also checks your apt sources.


Installing Ubuntu GRUB directly from Ubuntu

Yes it is possible.

Boot Ubuntu.
Run Gparted and delete or format the OpenSuse partition.
Open a terminal and run sudo grub-install /dev/sda

That should do the trick.


telegram, slack, skype won't run if I put them on startup applications

I resolved by change the command to bash -c "killall skypeforlinux ; skypeforlinux"


It looks like your API key is invalid.  You didn't say what versions of anything you're using, but go to your user page in MAAS and copy the API key into the juju environments.yaml again.


How do I stop netplan from binding a default gateway on every interface

Netplan v0.90 introduces a new set of options: dhcp4-overrides (pull request).

So, if your version of the netplan.io package is new enough (see available versions here), you can use this:

    eno1:
      dhcp4: yes
      dhcp4-overrides:
        use-routes: false


sudo fdisk -l -u output does not show partitions

While you were working with your partitions you probably destroyed your partition table, or somehow made it unusable.

You can use a utility like testdisk in a live session to try bringing it back. your data still lives on the disk, so do not write anything on it.

Test disk step by step


How to setup meld as merge tool on Ubuntu 15.10?

This seems to be old but I'll contribute with my answer anyway. I had the same issue as you and I could solve it by providing this configuration:

    [diff]
        tool = meld
    [merge]
        tool = meld
    [difftool "meld"]
        cmd = meld "$LOCAL" "$REMOTE"

So I think that the difference between your issue and mine is that you may be missing the command line specification.


Install it through Playonlinux but not as effective as in Windows. Open your terminal and type: sudo apt-get install playonlinux and ENTER. Open Playonlinux from you 'Dash Home' and look for Photoshop cs5 or other version you are willing to install to your system and follow instruction on screen.After that go back to your 'Dash Home', click on Photoshop to run it.

I think Playonlinux has even a patch should in case the program did not run perfectly. It does it better than the others.


Research indicates that for the Dell Precision M6600 laptop you may need the latest linux beta driver

Available here: http://support.amd.com/en-us/kb-articles/Pages/latest-linux-beta-driver.aspx (version 14.6 at this moment. Supports 12.04.4 and 14.04)

I realize this isn't a canonical answer but it may be helpful in your situation.

I believe that this answer already covers the vast majority of this type of question: How to see/change screen refresh rate or monitor frequency?

If this doesn't work I would contact Dell to discuss your warranty status.


Have you installed the driver video? If yes, that is the problem. Mir doesn't work with proprietary drivers for now.


Difference between these two methods of downloading linux source code

Difference between installation process by apt-get install & by apt-get source:

sudo apt-get install <package>installs packages with their dependencies from repositories and cached files are found at /var/cache/apt/archives in .deb extension.
sudo apt-get source <package> will download source files in current directory.

Now take look at how to build & install package from downloaded source files (from repository):

First install build-dependencies by command : sudo apt-get build-dep <package>
Then download source package by command : sudo apt-get source <package>
Then navigate to directory containing source by cd and use dpkg-buildpackage -uc -us -b to get binaries, dpkg-buildpackage -uc -us -S for a source package without using sudo.
It get/build .deb files which can be installed by dpkg -i <file-name>.deb

But if <package> is directly available to install from repositories then it is recommended to install packages by following command

sudo apt-get install <package>

For compiling package from source code visit :community help


Best way to install ubuntu on Asus Eee PC 901 with 4GB Boot SLC and 16GB MLC drive

Yes, there is. You can even do that without setting up a new system.

Create an ext4 partition on your designated boot drive and copy the contents of your /boot directory onto that partition. Then, update your /etc/fstab to include the newly created partition and run update-grub. The official Ubuntu help site has a more in-depth tutorial.

If you feel uncomfortable doing all that manually, there's the option of using BootRepair to do the heavy lifting for you.


Configuring unity for individual workspaces

If you have compizconfig settings manager (ccsm) there is a plugin called 'scale' it will show you all windows open on current workspace.


Make synclient settings permanent Lubuntu 18.04

In Lubuntu 18.04 LTS it is different from and easier than in the other Ubuntu flavours.

Edit your commands into the autostart file.

Use your favourite editor, leafpad or nano, for example

nano ~/.config/lxsession/Lubuntu/autostart

Save the file.

The next time you log in to the LXDE desktop environment of Lubuntu 18.04 LTS, your commands will be run automatically.


Error after login /etc/profile:line 38:8.0_121 Command Not Found

You have modified /etc/profile. In particular, line 38 begins with 0.0_121 and line 45 begins with 20.0_121.

Fix (or delete) these two lines.


I encountered issues with TP-Link WN822N also. The exact model was "TL-WN822N".
On Ubuntu 18.04 this previous solution worked for me:
How to install TP link WN822N on Ubuntu?
That solution uses the drivers at: https://github.com/jeremyb31/rtl8192eu-linux-driver
However, it does not compile on Ubuntu 20.04 as it appears not to have been maintained to work with the latest kernel.
The following repository did work for me on 20.04:
https://github.com/Mange/rtl8192eu-linux-driver
Follow the instructions exactly as written in the README.
Before: speed test ~5 Mbps
After: speed test >60 Mbps


Well. If you run it for all combinations of 8 characters, you'll get

  (26 * 2) ^ 8 * 8 = 427677828251648

characters. That's approximately 389TB of space (uncompressed). You're trying to generate too large dictionary. To reduce that, you can

Limit the charset, or
length of the passwords

Alternatively, you can limit your problem (but not fix it) by

compressing it with -z option (that won't help nearly enough, as compressing random strings is not very efficient)
limiting duplicates with -d or -p options.
splitting your output to multiple files (see -o START)

Excerpts from man 1 crunch:

   -z gzip, bzip2, lzma, and 7z
          Compresses the output from the -o option.  Valid parameters are
          gzip, bzip2, lzma, and 7z. gzip is the fastest but the compression
          is minimal.  bzip2 is a little slower than gzip but has better
          compression.  7z is slowest but has the best compression.

   -d numbersymbol
          Limits the number of duplicate characters.  -d 2@ limits the lower
          case alphabet to output like aab and aac.  aaa would not be
          generated as that is 3 consecutive letters of a.  The format is
          number then symbol where number is the maximum number of consecutive
          characters and symbol is the symbol of the  the  character  set
          you want to limit i.e. @,%^   See examples 17-19.

   -p charset OR -p word1 word2 ...
          Tells crunch to generate words that don't have repeating characters.
          By default crunch will generate a wordlist size of
          #of_chars_in_charset ^ max_length.  This option  will  instead
          generate  #of_chars_in_charset!.   The  !  stands for factorial.
          For example say the charset is abc and max length is 4..  Crunch
          will by default generate 3^4 = 81 words.  This option will instead
          generate 3! = 3x2x1 = 6 words (abc, acb, bac, bca, cab, cba).
          THIS MUST BE  THE  LAST  OPTION!   This option CANNOT be used with
          -s and it ignores min and max length however you must still specify
          two numbers.


"Files" favorite disappeared in Gnome Shell, how to bring it back?

I don't really understand. Open the App overview, right click on Files and then Add to favorites. Doesn't it work?


To make Ubuntu use that partition (supposing it is sda2) as /var you just need to add that mount point in /etc/fstab:

/dev/sda2   /var    ext4    defaults    0   2

If you want you can use also the UUID of the partition: just do la -la /dev/disk/by-uuid and get the correct value for sda2:

UUID=<uuid-for-sda2>    /var    ext4    defaults    0   2

Finally reboot or use sudo mount -a.

NOTE: you will have to move/copy the actual contents of /var to the new partition.


This shouldn't be too much of a problem.  Things will work best if you boot from a LiveCD (or LiveDVD), choose to Try Ubuntu, and once it reaches the default Ubuntu desktop you can open the Dash and open GParted.  (You're going to be doing things with partitions, which is best done from a Live desktop so the drives are unmounted.)

First, you can shrink sda3 to free up some space.  I would suggest that you not mess with sda1 and sda2; Windows will likely not like that and might respond by making it difficult to get back into Windows.  Similarly, don't move sda3; just shrink it in size by the amount you want to give to Ubuntu.

You can then expand the Extended - sda4 - partition into the free (unallocated) space you created. Then you can expand sda5 to the left to grab the available space.

You might find that you'll get an error message telling you that you can't do it because some drive - probably sda6, the Linux Swap partition - is still mounted.  If that happens, you can right-click it and unmount it without causing any problems, and then just proceed.


Cannot switch from Intel to Nvidia GPU somehow

You should install and use the latest stable drivers supporting your NVIDIA GEFORCE 940M card.

Remove the drivers 331 - open a terminal and execute :

sudo apt-get purge nvidia*
sudo reboot

Install the drivers 352 - open a terminal and execute :

sudo apt-get update
sudo apt-get install nvidia-352 nvidia-prime
sudo reboot

In case it still doesn't work, repeat everything from a virtual console ...

Highlight the Ubuntu entry in the GRUB boot menu and press the E key.
Add nouveau.modeset=0 to the end of the linux line - press F10 to boot.
On the login screen press Ctrl+Alt+F1 - enter your user name and password.
Now execute the commands as they are already instructed in the main part above.


In 12.04 LTS, I get "No DBus" errors when running things as root

I had a similar problem on Fedora 17 and the solution was just to use su - instead of su.

But maybe your problem is something different, don't know.

Source


mouse back button brings up run command box after sending "back" command

Solution to this was to increase the amount of time that the Alt Key was held down in the mouse's software. As it was, the Alt key was being "bounced" and that brings up a little "Run" dialog. You have to get the mouse to hold down Alt for a bit longer to get it to work.


Is it safe to use a usb after formatting (even if it may have had a virus)

If you told Ubuntu to format the flash drive, and it did indeed format the partition(s), the flash drive will no longer be able to infect a windows computer.

Technically, yes, infected files can still physically exist on the drive, but there is no file descriptor pointing to that file, so you will never even be able to read the file, unless you randomly guessed the location of it and used a tool to copy the raw data [like dd].

If you want to wipe the flash drive of all its previous files, just fill up the drive, either with a blank file [in command line dd if=/dev/zero of=/PATH/TO/flashdrive/bigfile then delete it after it fills up all the way.  If you're using fat32 you will have to do multiple files as it has a small max filesize] or pick a file and keep copying over and over.

tl;dr
Do not worry about it, it is safe.


How to switch display from laptop to external monitor?

I used to use this.. I tried it now on 12.04 with Gnome Shell 3.4 and it worked. Just connect your external monitor, place it wherever you want (top, left, right..) and in terminal run this command:

xrandr --output VGA1 --primary

I hope it is what you're looking for.


You need to install pulseaudio's volume control and then use that to reroute the program you are recording with to the program you are trying to record.

(I will add screenshots a little later).


You could try AirDroid. It is similar to SHAREit but they also have a native linux variant for transferring from Android to desktop.

There also seems to be Shareit for Linux, however I'm not sure how safe this is. Try at your own risk - http://shareitappforpc.com/shareit-for-linux-download.

These are alternatives and probably don't fix your problem.


I had exactly the same problem after installing Kubuntu 16.04. Fixed by installing gstreamer1.0-fluendo-mp3:

sudo aptitude install gstreamer1.0-fluendo-mp3


How can I quickly re-enable fn shortcuts that stopped working?

I have created this script that I run upon startup and hourly in cron, it should fix that (since disabling and reenabling compiz commands plugin fixes this and that is what the script does in an ugly way - I am sure the bash could be much better, but it works).

#!/bin/bash
sleep 5
a=`gsettings get org.compiz.core:/org/compiz/profiles/unity/plugins/core/ active-plugins`
b=`echo $a | sed "s/'commands', //" | sed "s/, 'commands'//"`
c=`echo "${b::-1}, 'commands']"`
gsettings set org.compiz.core:/org/compiz/profiles/unity/plugins/core/ active-plugins "$c"
sleep 0.1
gsettings set org.compiz.core:/org/compiz/profiles/unity/plugins/core/ active-plugins "$b"
sleep 0.1
gsettings set org.compiz.core:/org/compiz/profiles/unity/plugins/core/ active-plugins "$a"


DOWN arrow and DELETE are suddenly mapped to toggle enable/disable touchpad

have you tried checking the "input" under system settings? I don't have it in front of me but I believe the tab "gestures and shortcuts" would solve your problem. Or just hit "restore default settings (on that tab, not the whole system)". Other than that you would have to find the folder and file for your keyboard mapping. Also check to see if they changed the keyboard layout in "input" as well.


Is there any possibility of data loss when dual booting Ubuntu 13.04 and Windows 7?

Nobody is going to answer this with "No".

Data loss is most times caused by a stupid mistake and those happen to ALL of us.

But the solution is simple: make a backup. Or even two.


Can't get my second network card to work on ubuntu server

I found out that the bottom pci slot has a failure and changed it a slot and now it works perfectly


how to resume download in wget which is integrated with firefox via flashgot

I does not need any other download manager if i could pause and resume download

You started a file download in wget using flashgot plugin. As wget didn't remember last activity (and you are not from terminal and no bash history) normally you can't resume the download unless you provide a correct URI with -c in wget.

case 1: Download cancel by Ctrl C
Open with a text editor /tmp/flashgot.*******.default/flashgot-*.fgt
At the end of file you can see like

  "wget" --trust-server-names -c -O jre-7u21-linux-x64.rpm --directory-prefix=/home/totti/Downloads --referer=http://java.com/en/download/linux_manual.jsp\?locale=en  --load-cookies=/tmp/flashgot.7gavixy1.default/cookies --header=Cookie:s_vi=[CS]v1\|28BA8A90050109CA-6000011540153427[CE]\;\   --user-agent=Mozilla/5.0\ (X11\;\ Ubuntu\;\ Linux\ i686\;\ rv:16.0)\ Gecko/20100101\ Firefox/16.0 http://sdlc-esd.sun.com/ESD6/JSCDL/jdk/7u21-b11/jre-7u21-linux-x64.rpm\?AuthParam=1366627766_80a413ae29c4b4d2e12ac7e334d61847\&GroupName=JSC\&FilePath=/ESD6/JSCDL/jdk/7u21-b11/jre-7u21-linux-x64.rpm\&File=jre-7u21-linux-x64.rpm\&BHost=javadl.sun.com

either copy the whole parameter and pass it to  wget as
wget --trust-server-names -c -O jre-7u21-linux-x64.rpm --directory-prefix=/home/totti/Downloads --referer=http://java.com/en/download/linux_manual.jsp\?locale=en  --load-cookies=/tmp/flashgot.7gavixy1.default/cookies --header=Cookie:s_vi=\[CS\]v1\|28BA8A90050109CA-6000011540153427\[CE\]\;\   --user-agent=Mozilla/5.0\ \(X11\;\ Ubuntu\;\ Linux\ i686\;\ rv:16.0\)\ Gecko/20100101\ Firefox/16.0 http://sdlc-esd.sun.com/ESD6/JSCDL/jdk/7u21-b11/jre-7u21-linux-x64.rpm\?AuthParam=1366627766_80a413ae29c4b4d2e12ac7e334d61847\&GroupName=JSC\&FilePath=/ESD6/JSCDL/jdk/7u21-b11/jre-7u21-linux-x64.rpm\&File=jre-7u21-linux-x64.rpm\&BHost=javadl.sun.com
or just use wget -c URI

case 2: Shutdown
This is a bad thing as /tmp is cleared every shutdown. You have to find the URI manually. Another option is, before start downloading change temp dir for flashgot from preference -> advanced -> temp directory to a persistent folder (say ~/tmp).

Updates:
403 forbidden error
Because some URI are dynamically generated. So after some time it expire(after closing connection to the site). In such cases you have to obtain a new URI and download can be resumed using wget -c URI. Some cases the file name are also dynamic (or no file name at all), so -o filenameofexistingfile option is also needed.
Note that wget is a download manager not a video downloader. So use of a video downloader such as flareget JDownloader or plugin for your browser such as savefromnet, video download helper is prefered. Because they automate the process of obtaining new URI from the URL. See question how to download youtube video (search) for easyly download videos.


Put crossdomain.xml into icecast2 webroot

On debian and its derivatives, this includes Ubuntu, the Icecast webroot is in:

  /usr/share/icecast2/web

Just putting the file there should make things work.


I'm being haunted by an "Authentication dialog" and need help

I found the answer! "Muon Package Manager" saved me. Just run Muon PM and search for "plasma-gmailfeed", right click and mark for removal. Restart and your hell is over!
I hope this can help someone else with this problem.
Thank you Muon Package Manager!


Here is a community wiki. Often many users advice you not to use Ubuntu this way.
You have sudo anyway which elevates the privileges to root for a single command using your account password.

But, if you have a good reason to be root you can do that as well in Ubuntu.

Below are some useful links:

Unable to login as root from the login screen even though I have a root account

Re-enable graphical root-login on 12.04 LTS


How do I install an application by DEB file for a single user only?

Well dpkg won't help you as this isn't its design aim. It wants to be a root-owned sole census of packages installed on a system.

The only thing that jumps to mind is just extracting the package and trying to place the files manually in the home dir.

However this will only work for some things. Plenty of packages are split into chunks (executables or scripts in /usr/bin, libraries in /lib and other garb in /usr/share, etc) and these locations are hard-coded in by the build scripts. Thus if you try and pull in something like this into ~, it will break. You could spend hours unwinding the dependencies but you could be doing something useful with your time like finding the cure for cancer or absorbing some of the beauty in the world.

You'd do much better just to grab a non-packaged version from whoever writes the software. Almost all free software is available in some form of compressed archive as source so grab that and just build it. You don't do the make install step. Your app is built, just put it where you want it.


compilling and running C++ executables from ubuntu browser

Unless your program is calling some kind of GUI popup to appear, it will try to print to a terminal. Programs typically expect to have stdout ( output stream ) to be present. So what happens is your command runs just fine, Nautilus browser calls the shell to launch your program , but there is nowhere for that program to print.

You can go through a trouble of creating custom entry in Run as menu , or here is a simpler solution:

Open  text editor and make this file ~/.local/share/applications/run_executable.desktop  (NOTE ~ means your /home/username directory and .local is hidden folder) with the following contents:

[Desktop Entry]
Type=Application
Name=RunExecs
Exec=gnome-terminal -e 'bash -c "%u; read"'
Terminal=true

Now open file manager, and drag that new file to the launcher. Once you have this icon on the launcher, you can just drag and drop your compiled C code, it will open gnome-terminal and run it. I have this same exact setup in Ubuntu 16.04, no issues detected with this so far.

You can try to add that file as right click option to file manager as is shown in this article, but it may be a bit dated, and I personally never tested it, so can't it recommend or not

Edit

What I also learned yesterday from Jacob Vlijm's answer is that you can add custom scripts to nautilus. For example, create /home/user/.local/share/nautilus/scripts/run_executable.sh file with these contents:

#!/bin/bash
FILE=$(readlink -e "$@")
echo "$FILE"
if [ -n "$FILE" ] ; then
   gnome-terminal -x bash -c '"$@";read' bash $FILE
fi

Make sure it has executable permissions, by doing chmod +x ~/.local/share/nautilus/scripts/run_executable.sh and restart nautilus if necessary . After that you can just right click on any executable file, and you will have scripts -> run_executable.sh option.

Note that this question asks about both, compiling and running. I won't address compiling, because compilation usually requires providing options to compiler manually, such as in cases where libraries need to be linked. If user so wishes, they can modify my scripts, but I'd advise against adding a compile option and stick only with the running option


Keyboard: How can I change the Sterling sign to Euro sign on 3, having Ubuntu installed on a MacBook?

The simplest way to do this would be with xmodmap. Changing Shift+3 from $ to € is as simple as doing this:

Open Terminal (if it's not already open)

Send an edit to xmodmap:
xmodmap -e "keycode  12 = 3 EuroSign 3 EuroSign"

This takes effect immediately and will persist until the next time you reboot, allowing you to try it out. If you'd like to set it back to the original value (without rebooting), you can do this via Terminal:
xmodmap -e "keycode  12 = 3 dollar 3 dollar"

To make this setting permanent, you can create an xmodmap profile and have it load at boot. This is how you do it:

Open Terminal (if it's not already open)
In your home directory, create a dot-file for the profile. For the sake of this example, I'll use .xmodmap:
vi .xmodmap

Note: Feel free to use any text editor. It does not need to be vi.
Add the keycode mapping:
keycode  12 = 3 EuroSign 3 EuroSign

Save the file and exit the text editor
Create a file called .xinitrc in your home directory:
vi .xinitrc

Add this line:
xmodmap .xmodmap

Save the file and exit

Now every time you sign into Ubuntu, your Shift+3 will be mapped to €.
IMPORTANT: If there are other people who use the computer who would also like this mapping, the steps above will need to be carried out for every user account.


dhcp3-server installs the ISC DHCP server variant.

Stop the server after booting or when you don't need it with:

sudo service isc-dhcp-server stop
sudo service isc-dhcp-server6 stop

When you are ready to party, start it with:

sudo service isc-dhcp-server start
sudo service isc-dhcp-server6 start


How do I install drivers for an AMD Radeon HD 6450?

I had a similar problem, but it worked fine for the previous version of this driver: "AMD Catalyst™ 11.8 Proprietary Linux x86 Display Driver". Here are the steps to download and install it:

Download the AMD Catalyst™ 11.8 Proprietary Linux x86 Display Driver
 wget http://www2.ati.com/drivers/linux/ati-driver-installer-11-8-x86.x86_64.run

If you don't have 'wget', install it by
 sudo apt-get install wget
Make it executable, if not already
 chmod +x ati-driver-installer-11-8-x86.x86_64.run
Run it and follow on-screen instructions to install the driver
 sudo ./ati-driver-installer-11-8-x86.x86_64.run

Hope this helps!


Apt-get update not finding servers when host-only adapter is enabled

Host-only as its name implies means that the VM is linked only to the host, not to the Internet. You may enable packet forwarding (aka "Internet sharing") on the host to give Internet access to the VM.


Is there a way to install Unity or Gnome Shell along with Lubuntu?

To install unity, run the following command in a terminal:

sudo apt-get install ubuntu-desktop

To install gnome-shell, do the same in a terminal:

sudo apt-get install gnome-shell

You can choose the default login manager as per your preference.


Rotate Touch Input with touchscreen and/or touchpad

In the end, I found out how to do it, although it's a little tricky. Still, if a non-mega-Geek like me can do it, I'm sure most of you can too! :)

Firstly, Go to Terminal, and type this to find the name of your touchscreen, and if you have one, your touchpad (say, if you have a laptop with a touchscreen):

xinput -list

The names should be pretty obvious for each.

Now, make two "shell scripts": these are little text documents that contain several commands, which are joined up in the document to be done together (effectively creating a little program). Make them using gedit, naming them "portrait.sh" and "landscape.sh" respectively. Save them in a new folder: /home/your username/Scripts/

For PORTRAIT, type this:

#!/bin/sh

#portrait (left)

xrandr -o left
xinput set-prop "Your Touchscreen's Name" --type=float "Coordinate Transformation Matrix" 0 -1 1 1 0 0 0 0 1
xinput set-prop "Your Touchpad's name, if applicable" --type=float "Coordinate Transformation Matrix" 0 -1 1 1 0 0 0 0 1

Next, for LANDSCAPE:

#!/bin/sh

#landscape (normal)

xrandr -o normal
xinput set-prop "Your Touchscreen's Name" --type=float "Coordinate Transformation Matrix" 0 0 0 0 0 0 0 0 0
xinput set-prop "Your Touchpad's name, if applicable" --type=float "Coordinate Transformation Matrix" 0 0 0 0 0 0 0 0 0

If you don't have a touchpad, you can leave out that line of code for each shell script.

Afterwards, I also made launchers to automatically run each shell script when I tapped on them (this is possible in Xubuntu, Ubuntu MATE, and many other Ubuntu flavours). To do so, go to your panel, right-click, click on "add to panel" (or equivalent, for all these subsequent commands, too), create a custom application launcher. For portrait's launcher, put in this command:

sh /home/username/Scripts/portrait

For landscape's launcher, put in this command:

sh /home/username/Scripts/landscape

I also made a "super+" keyboard shortcut for each of them. Find your "keyboard shortcuts" settings program (under Settings in many flavours, or just search for it). Effectively, do the same thing as you did with the panel launchers: Add a new keyboard shortcut, Name it Portrait and give it the command, "sh /home/username/Scripts/portrait", and do the equivalent for Landscape. Then give each of them a keyboard shortcut (say Super+P and Super+L respectively... although be aware Super+P is sometimes the standard keyboard shortcut for your Display Settings).

I STRONGLY recommend you make a keyboard shortcut for LANDSCAPE - that way, if your touch stops working, you can at least get out of Portrait, and back to Landscape successfully (VERY USEFUL).

For more information, go here. http://ubuntuforums.org/showthread.php?t=1972447

(This link - https://wiki.ubuntu.com/X/InputCoordinateTransformation - will also help you understand a little of the theory behind it...)


OK, looks like there were a couple of missing dependencies.

When I ran the devcoin-qt under my user account there was nothing that appeared to happen, but when I ran the file from the terminal using sudo a couple of dependencies showed up as missing: libjpeg.so.62 and libtiff.so.4.

The first one was resolved by installing the libjpeg62 package with:

sudo apt-get install libjpeg62

I found the second solution online - create a symbolic link for libtiff.so.4 to libtiff.so.3, but since I have libtiff5 installed already, I used libtiff.so.5:

sudo ln -s /usr/lib/x86_64-linux-gnu/libtiff.so.5 /usr/lib/x86_64-linux-gnu/libtiff.so.4

One other noteworthy point is that if daemon=1 is set in the devcoin.conf file, then the GUI will not show, removing the daemon=1 line from the .conf file corrects this and the GUI opens as expected.


Can't connect to internet during Ubuntu installation

Ok, so first I tried the linked answer, but that didn't build successfully. I then went to the Realtek website and downloaded their 3.x linux driver:

http://www.realtek.com.tw/Downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false#2

Extracted it and built it and everything works great :)