As it sounds like you can see the audio device I would suggest this could be a simple mute issue. Though running lspci -nnk -d  on your device to be sure the kernel has a driver for it in use would be a good idea as well.

First I'd suggest you remove or kill off pulseaudio (make sure it won't auto-spawn) as pulse will configure the alsa device when it loads.
Then  open a terminal and run alsamixer and make sure you have unmuted the outputs then use aplay to test play through the output do you get anywhere?

If that doesn't work you probably need to tell alsa your soundcard needs a certain
model or quirk to run - basically telling the computer how to talk to your sound card.

If you can get sound from alsa on a terminal but not from any program by default you need to tell pulseaudio what it should be doing. Perhaps setting a default-sink etc.


Fan running uncontrolled on Dell Vostro 3560 under Ubuntu 12.10

I am not sure if this is a bug, but I have experienced exactly issue in my system(Intel Core i3) after the upgrade. The CPU eventually is heating and tripping up. What I ended up doing was install "Jupiter Applet", and setting Performance="Power saving" to fix the issue. There is some issue in 12.10 release that is causing it. Hope this helps you!!


Why does Ubuntu One android not sync video

We are only syncing pictures at the moment because the API the Android client uses has not been yet optimised for large files (mostly it doesn't support resuming failed uploads).
Because videos are on average much larger than pictures, we've started off with pictures.
Making our APIs support uploading large files is something we have on our plates to fix, so you should eventually see support for video added.


Unattended-upgrades broke persistent live media

Upgrades do not work for the kernel in any persistent live system, because the kernel is started before the overlay structure becomes active.

In general it is not a good idea to upgrade a persistent live system completely, like an installed system - you can add new program packages, and you can upgrade a few application programs, where you really need an upgraded version for something to work. And you need regular backups, for example via the system described at https://help.ubuntu.com/community/mkusb/persistent#Backup_and_restore_of_persistent_overlay_data

If you want a generally updated and upgraded system, it is better to

either create an installed system, which is suitable to update && dist-upgrade via the command line or automatically.
or grab the current 16.04 LTS daily iso file, and create a new persistent live system. You find it via this link: http://iso.qa.ubuntu.com/qatracker/milestones/351/builds. In your case, select a version of Mythbuntu, and you will find a link to the download information. (The 16.04 daily iso files will no longer be updated after 16.04.5 is released.)

I suggest that you save the /home directory in the casper-rw partition (to another drive) and copy it to your new persistent live system (now based on the current daily live iso iso). It will save your tweaks. You must re-install the additional program packages you need manually.


How To Customize GTK Theme Used By Gedit in Lubuntu 16.04?

According to user ducasse on #ubuntu of freenode IRC, what we're looking at is called a client side decoration by the Gnome developers, and hides the window manager bar and replaces it with something inside Gedit itself. So, no amount of configuring GTK will help in this case.

Other people didn't like this sudden change, either. So, someone posted a way to downgrade Gedit to an earlier version before this dramatic change here:

http://www.omgubuntu.co.uk/2016/06/install-gedit-3-10-ubuntu-16-04-lts

Another alternative, however, is a little harder to install, with a method from Github that lets you customize the existing version:

https://github.com/PCMan/gtk3-nocsd


How to install "PC Companion" software of Sony Xperia?

Others have been using a virtual machine for this, sadly there isn't any support for Ubuntu on PC Companion (i just tried).

WINE support seems limited and running it on this end seems incredibly glitchy, but if it's only for the storage purpose then you can change the settings on your phone to USB Storage mode if you want to get into the contents on your device.


Can running two versions of same library make system unstable

If I install the older versions of libicui18n.so.52 and libicuuc.so.52 in my production system, will they conflict with existing libraries?

How do you expect the regular software to know about this older version? It would if you could use apt (but it will refuse to install due to unmet dependencies). The way you do this is by manually copying libs. Those will only be touched by the software you want them for.

But in case you do have regular software where someone used the older libraries  only that bit of software might bug out. It will be pretty local so easy to fix. Worth noting I would consider that a bug; the old lib has no place in that software.

Do contact the creator of packet tracer to update their software.


grep --invert-match '100$'

This will find all lines that do not have 100 at the very end of the line.


Try renaming ~/.gnome2/session to something else


How to get Google Earth installed via .DEB?

Try with this tutorial :

install-google-earth-6-in-ubuntu-linux.html

hope it help


how can I install ubuntu on dell inspirion 15z

Install ubuntu on windows 8 with intel smart response

For anyone else having this problem this was the final step that made the installation work.  I had to find the intel gui and disable the acceleration.  The installation still did not recognize that I had an OS installed, but it could find my hard drive and everything worked fine after that, because I didn't care about preserving the windows 8 install.


Have you tried creating/logging in with a diffent user account?
Can you verify that the same delay happens for all the user accounts?

Perhaps you could try to delete all the ~/.gnome* files and folders in order to be re-created from scratch.

You will lose of course all of your personal settings, but i think it deserves a chance..


Are there any plans to make GTK3 apps look more native in KDE?

oxygen-gtk3 ??

If you mean the oxygen-gtk3

A wish (needs-packaging): https://bugs.launchpad.net/ubuntu/+bug/825858

It has a link to the "HOWTO: gtk3-engines-oxygen for gtk3 apps": http://kubuntuforums.net/forums/index.php?topic=3118994.0

Peeking to the kubuntu-devel irc: http://irclogs.ubuntu.com/2011/12/21/%23kubuntu-devel.html

_Groo_  Riddell: btw it would be nice to add gtk3-engines-oxygen to the builds  17:55
_Groo_  Riddell: my desktop is much more pretty that way :D 17:55
Riddell yes I think that's on the precise todo  17:55

Maybe with the Kubuntu 12.04...

More of the 12.04: https://askubuntu.com/questions/81902/when-will-ubuntu-12-04-precise-pangolin-be-released


How to disable popup "SIM PIN Unlock Required"?

You have to know the PIN of the SIM if you want to disable PIN checking. There are two possibilities:

1) Put the SIM card into your mobile phone, enter the pin. Look for "disable PIN" in the settings of your mobile phone.

2) Use gsmctl as described here:

sudo apt-get install gsm-utils
sudo gsmctl -d /dev/ttyUSB0 -o unlock sc all 1234

where 1234 is the PIN. Check for the device path (ttyUSB*) with dmesg after plugging in the GSM modem. It should look similar to this:

[13274.395894] option 2-4:1.0: GSM modem (1-port) converter detected
[13274.396084] usb 2-4: GSM modem (1-port) converter now attached to ttyUSB0


How to achieve List/Tree view in Nautilus?

You can do this in the Nautilus (Also called "Files") preferences window. Here's how:

Make sure you have "Files" (program) running (or else the menus will NOT bring you the correct sub menus when you click on them)
Click Edit > Preferences
On the Views tab, select the List View viewing option next to "View new folders using:" and click close.

You're done!


x11vnc pauses for 10 seconds on initial connection on ubuntu 18.04

It's been fixed with these command to fix dns bug with 18.04. I didn't think it'd been related.

ls -l /etc/resolv.conf
sudo rm -f /etc/resolv.conf
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
sudo reboot


Can't boot to windows after ubuntu install

try this solution:

First boot on your Windows installation DVD and navigate to the section repair your computerif it finds your Windows installation, make sure it is unselected before clicking next, then click on Command prompt and run:

bootrec.exe /fixboot

bootrec.exe /fixmbr

then reboot and remove your installation DVD

if you don't have the installation DVD you can get Windows repair disk (Win7 example) manually created.

Just in case if after all facing any issues yet check on this


small sda2 partition between root and swap

The numbers sda1-4 are reserved for "primary" partitions, of which there can be only four. Numbers sda5+ are for logical partitions which reside in an extended partition.

Extended partition is basically a partition holder, which can hold multiple logical partitions. This limitation of 4 partitions is from the old ages when DOS was used - extended/logical partitions are a workaround to allow more partitions in modern systems (however, GPT/EFI partitions are better and allow way more partitions on a single device).

In your case, I would expect this sda2 to be the extended partition which holds the logical partitions, sda5 (swap) in this case. You should be able to confirm this via a graphical partitioning tool such as GParted.

Edit: You can find more information about this here: http://en.wikipedia.org/wiki/Disk_partitioning (Check below headings "Primary partition" and "Extended partition".)


SSH / SFTP Permission denied (publickey)

Ok I solved it. Turns out I've set the permissions correctly for the authorized_keys files and the home dir of the user. However the owner was root:sftponly


Can't run apt-get upgrade - Getting stuck in reading logs?

Kris, thanks for following up with yourself. Ran into the same issue.

To make it simple, for anyone with this exact issue, run in terminal:

sudo apt-get remove apt-listchanges


Mi Piston Air earphone not working on Ubuntu 16.04.3

There are some muted channels (see the MM symbol below them), most notably the Headphone channel.

You can unmute them if you select them with the arrow keys and press M, so that the symbol below the volume meter shows 00.
Alternatively you can use gnome-alsamixer from the eponymous package (which has a point-and-click graphical user interface) to do the same.


Removing multiple lines between brackets

sed is suitable for deleting contents between two patterns.
$ sed -i '/"endPoints" : \[/,/\]/{//!d}' file

Here is a good summary of some common uses.


VGA not listed in xrandr output: Projector not working, Intel Kabylake Graphics

Okay, answering my own question, my guess that the VGA port was actually HDMI internally was correct. To clarify, the three HDMIs stand for

HDMI 1(or 2) -External HDMI port
HDMI 2(or 1) -USB C type display port(never tried this port for display though)
HDMI 3 -External VGA port

Once I guessed this, I had to force xrandr to display output through one of these, as plugging in of VGA was not automatically detected. I knew that my projector was 4:3. So I tried some resolutions of 4:3 aspect ratio, like (both commands were necessary at every resolution in my case - to add a custom resolution):

xrandr --addmode HDMI3 1400x1050
xrandr --output HDMI3 --mode 1400x1050

The highest 4:3 resolution was 1400x1050.

I got an output on the projector successfully with HDMI3! But the display was clipped. Then I realised that my Laptop screen was displaying at a different resolution(16:9), so the screens were not getting properly mirrored.

I manually changed the Laptop screen to 1400x1050 and then projected:

xrandr --output eDP1 --mode 1400x1050
xrandr --addmode HDMI3 1400x1050
xrandr --output HDMI3 --mode 1400x1050

Now, everything was good. After plugging out, I shifted the Laptop Screen back to default resolution:

xrandr --output eDP1 --auto

For further use, I put the first three commands into a .sh file, ran them when I connected and the last one on plugging out.

These are the questions that helped me with the initial guess. Many thanks!:

xrandr not showing my VGA port, instead it lists DP1
Can I force VGA signal output even when xrandr shows 'disconnected'?


How can I prevent a package from being automatically removed in order to install another one?

Elementary I believe only recommends pulseaudio. What you could do is install via the command line using sudo apt-get install --no-recommends elementary-desktop, or use Synaptic and simply unmark esound/pulseaudio when elementary-desktop is selected for installation.

If it is not a recommendation, then you could simply install the packages you want (that the metapackage depends on), giving you at least the majority of the Elementary experience, minus pulseaudio.


First do a sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.legacy, then check to make sure there is no file in /etc/X11 with the name xorg.conf, then restart X or reboot the machine. If X does not find an existing xorg.conf it will attempt to generate one, and sometimes changes in the system or a change to the video driver will cause problems with the existing xorg.conf file. Also, this is an easy thing to try and easily reverted if it does not help.

Looking around on Google, it looks like the Radeon 5450 is a somewhat old card. Cards that are more than three years old or so often get rotated out of fglrx support. Sometimes the cards become unsupported by fglrx and picked up by the "radeon" open-source driver. Sometimes there is a lag in between these things happening and you are out in the cold.

By "uninstall the upstream one" is meant to get rid of the driver you downloaded from ATI. ATI's drivers are notoriously unreliable. I see that the driver is provided in the form of a .run file. I don't see any uninstall instructions for it. You might have to parse the scripts contained in the file and go manually delete all the things it installed. I would open the file and look in it myself, but my net connection is too skinny for me to grab that 100MB file in a timely manner.

I strongly recommend that you try to use the "radeon" driver instead of fglrx. If it works and provides the features and performance you need, stick with it. Also, please read the pages linked by NightwishFan if you have not done so already.


There are no proprietary AMD drivers for this adapter that support modern Ubuntu releases.

The only option for this graphics adapter is to use open source driver.


Unity is using something that looks like Emerald instead of the correct theme (like Metacity)

This doesn't seem to be Emerald, but an undecorated Metacity.

I worked this out using Ubuntu Tweak, since I forgot where the option was in gconf-editor.

If you haven't installed it yet, you can do so by:

sudo add-apt-repository ppa:tualatrix/ppa && sudo apt-get update

sudo apt-get install ubuntu-tweak

Once installed, open it up, and head to Window Manager Settings, under the Desktop section. Scroll down, and the option for "Use Metacity window theme" under Window Effects should be unchecked in your present condition. Check it, and it should bring up the correct theme. If not, restart Compiz.

Hope that works! :)


Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/e/eglibc/libc-bin_2.15-0ubuntu10.6_i386.deb 404 Not Found [IP: 91.189.91.14 80]

As you can see at

http://us.archive.ubuntu.com/ubuntu/pool/main/e/eglibc/

, this version is not in the repo anymore. This is most probably caused by an outdated apt cache, i. e. you haven't issued an

apt-get update

before. Try it again with

apt-get update && apt-get install alien


Can anyone give me a list of commands I can enter in the terminal?

Using the following command in terminal:

info 2>/dev/null | grep --color=none "* [a-z]" | sort | less

you will get  list of most useful commands. If you find one command interesting from that list, then you can use:

man command

or

info command

to get more information about that command.

See also this answer.


I would suggest using GUI to resize partition. Try KDE Partition Manager 3.0 which can see LVM partitions.

You can get it on Neon Live CD (User edition is enought now)

Then open terminal and install partitionmanager:

apt update; apt install partitionmanager


Use Eduroam to connect to PEAP and MSCHAPv2

Ubuntu 14.04 eduroam connection:

Edit eduroam connections->Wi-Fi Security:

Security : WPA&WPA2 Enterprise
Authentication : Protected EAP(PEAP)
ANonymous ID: username@.....edu
CA Certificate: None (and check the box "No certificate required", if any)
PEAP Version : automatic
Inner Authentication: MSCHAPv2
username : username@....edu
passwd: ......

Then ignore the certificate warning.


How to force Network Manager to set auto negotiation to false/off for a particular NIC (eth0) on start-up?

There seems to be no way to do it within Network Manager. Editing /etc/network/interfaces on the other hand is clumsy and causes delays in later editions of Ubuntu like 12.04 (see this and this). In the end the solution offered here turns out to be best (for now), by adding the ethtool command to rc.local:

sudo -H gedit /etc/rc.local

ethtool -s eth0 autoneg off speed 100 duplex full    # put this above 'exit 0'


cloned ubuntu drive can't get on network

From the comments...

Probably because you need to change the hostname.

It is correct that the same hostname would have caused a problem had I got on the network, so I edited /etc/hostname and /etc/hosts to change hostname.

As you found out, if you use /etc/network/interfaces to describe your network hardware, it makes a difference what your network interfaces are named.

Then you changed eth0 to eth1 in /etc/network/interfaces.

Your current /etc/network/interfaces (currently working):

 auto lo
 iface lo inet loopback

 auto eth1
 iface eth1 inet dhcp

I'd recommend trying (more transportable, less dependent):

 auto lo
 iface lo inet loopback


Color config defaults to blue tint on startup?

My apologies this is a duplicate post. The following flash player fix worked for me - https://askubuntu.com/a/128302/574603
It should be noted that this bug effects all images not just videos.
Here is the original post with several solutions:
Flash video appears blue


Clicking link in Thunderbird opens browser but doesn't enter URL

If Thunderbird doesn't ask you which browser to use when you click on a link, you can try deleting ( or edit and modify for your browser and path) mimeTypes.rdf file in your profile folder (./thunderbird in your home) to reset it.


Error in installing mysql-server in Ubuntu 16.04

Finally, I found a solution from this site.

As stated in other answers, uninstall all the existing mysql modules. To get the list of installed mysql modules, use the following command:

dpkg -l | grep mysql

Download the mysql-apt-config_0.7.3-1_all.deb from the MySQL website.

Install the package using the following command:

sudo dpkg -i mysql-apt-config_0.7.3-1_all.deb

Create a new file /etc/apt/preferences.d/mysql with this content

Package: *
Pin: origin "repo.mysql.com"
Pin-Priority: 999

Run the following command to update the cache

sudo apt update

Run the following command to install MySQL

sudo apt install mysql-client mysql-server libmysqlclient-dev


A running fsck at startup indicates that you have a problem with your partition on your disk.

Run this when you are at prompt

e2fsck -y /dev/sdx#

Where "#" is the disk interface you have installed Ubuntu, to correct the problem.

Alternatively, maybe there is a option in your fstab file and runs all the time because of this.

# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sdb5 during installation
UUID=136f3cdf-c824-4f8a-8bac-d86faaf17f63 / ext3 errors=remount-ro 0 1
# /home was on /dev/sdb6 during installation
UUID=eb55f063-766c-45fd-8ee3-93f33cc735b5 /home ext3 defaults 0 2

The numbers "1" or "2" in the last column controls when fsck runs. If you change it to "0" fsck will not run.

Good Luck.

If the problem persist it must be a hardware problem or a damaged disk.

Another approach.

Remove any USB you have on your laptop. Sometimes the excessive current drawn from your USB ports may cause a malfunction of your hard drive in general.


How to remove KDE Connect dependecies in Cinnamon or any other DE?

I understand that you are asking about "kdeconnect" removal process.
First check whether you have KDE packages installed by typing:
dpkg -l | grep kdeconnect

if it shows something like this
ii  kdeconnect 0.8-0ubuntu5
    amd64                   connect smartphones to your KDE Plasma Workspace
ii  kdeconnect-plasma 0.9+git20160315-0ubuntu1
    amd64                   connect smartphones to your KDE Plasma desktop

then you are good to go.
First kill the running KDE Connect processes:
killall kdeconnectd

Type the following command to uninstall KDE Connect:
sudo apt-get remove kdeconnect

This will just remove KDE Connect.
For removing its dependencies type this:
sudo apt-get autoremove

That should remove all the dependencies needed for KDE and you will have no KDE Connect, no KDE indicator nor KDE monitor, which is present in the Unity launcher.
I hope that this helps. It worked for me.


I'm sorry. Its a bug in the Linux 4.13 kernel that's used in that version of ubuntu. All derived distros of ubuntu for the 17.04 n 17.10 version uses a version of the Linux kernel that has a bug for the Intel mobile 945 graphics. A temp fix is suspend the machine and move the mouse and press enter and the screen will come back to normal. Or just upgrade your ubuntu or variant to 18.04 and above which uses the updated Linux kernel that fixed the bug.

The bug is well known
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1724639

Upgrading to Lubuntu 18.10 LTS solved the problem because it uses the updated kernel. My screen looked exactly the same at the pic on top and that's how I fixed it.


I discovered that this is a Ubuntu bug that has been reported as https://bugs.launchpad.net/ubuntu/+source/runit/+bug/1448164.

The problem exists because runit depends on upstart and Ubuntu changed to using systemd in 15.04. The workaround is as follows:

sudo apt-get purge runit
sudo apt-get purge git-all
sudo apt-get purge git
sudo apt-get autoremove
sudo apt update
sudo apt install git

Basically you completely get rid of runit, git-all and git, cleanup the apt database and then re-install git. Instead of installing git-all again cherry pick the packages that you actually need and install those.


Virtual Ubuntu 18.04 gets slow over time

[Note]: Try this solution if you have used "Erase disk and install Ubuntu" option which is the automatic partitioning during installation:

Solution:

Reinstall Ubuntu, and instead of using the automatic partitioning, use manual partitioning by choosing "Something else" option on "Installation type" step.


I agree with a lot of other people that you can play a lot of formats without Windows Media Player but if you still want it, you can always try downloading PlayOnLinux

This application isn't just for games but also for media, internet and many other applications that run on Windows that you would like to use on Linux. When you want to download it, go here, select Ubuntu and follow the instructions on how to place the repo onto your computer. The installation of PlayOnLinux did take some time so be sure you can leave your computer on for a long period of time.

Once the installation is complete, you will be be able to see PlayOnLinux in the "Games" category. When you execute the application, you will be asked some additional questions to complete the setup of PlayOnLinux. Once complete, you will be able to add Windows Media Player from the INSTALL button. I attached a screenshot to this post to see what the final result should be.


how to prevent CUPS from proposing printers that are not listed in printer.conf?

For some reason cups-browsed was installed. I stopped the services cups and cups-browsed, uninstalled the package cups-browsed, rebooted, and found clean print menus as defined by /etc/cups/printers.conf.

Clues came from @waltinator and from How do I disable automatic remote printer installation?.

See also https://unix.stackexchange.com/a/326916/46841: disable the switch Browsing in /etc/cups/cupsd.conf.


This question is not necessarily about Ubuntu. Instead, it is about ALL open source software.
From the official Open Source website:

Absolutely. All Open Source software can be used for commercial purpose; the Open Source Definition guarantees this. You can even sell Open Source software.
However, note that commercial is not the same as proprietary. If you receive software under an Open Source license, you can always use that software for commercial purposes, but that doesn't always mean you can place further restrictions on people who receive the software from you. In particular, so-called copyleft-style Open Source licenses require that when you distribute the software, you do so under the same license you received it under.

(emphasis mine)
Ubuntu (well Linux) is free software. It can be used and redistributed for NO COST, regardless of what or where you are.
If you really wanted to, forward them a copy of the GPL.


Ubuntu 16.04 Failed to start Create Static Device Nodes in /dev

One possible cause of this issue is a root folder that is owned by a user account.
After booting, open a terminal and do this:
sudo stat -c "%U %G" /

You should see:
root root

If you see anything else, then it's wrong and you'll need to:
sudo chown root:root /

Note that there is no -R in there. Do not -R with this operation. Bad things will happen.
Hope this solves your problem.


Dual booted Windows 8.1 and ubuntu. Deleted Ubuntu partition stuck with Gnu Grub version 2.02

Because you are using Windows 8.1 I believe your issue is that you are using UEFI boot. Most iso's are written for BIOS/Legacy.

Try this:

Restart computer
While the computer is loading, spam F2 and a screen should display (usually grey)
Now, navigate to the Security section and switch 'Secure Boot' to Disabled
Next, navigate to the Advanced section and change Boot mode from UEFI to CSM/Legacy
Now press F10 to exit saving changes
While the computer is rebooting spam F12 and using the Arrow Keys navigate to the desired USB you wish to boot with

I hope your problem is resolved :)

Please Note: Depending on your manufacturer you may have to use different F keys

Source: Boot with legacy BIOS


Error occured during installation of vim

Try running these 2 commands 1 after another

sudo rm /var/lib/apt/lists/lock

sudo rm /var/cache/apt/archives/lock

basically these 2 commands are deleting the lock.


I am not able to cut and paste a text file from /home to /home/Desktop folder in Ubuntu 20.04

You have a folder named exactly like the file you're attempting to move. You cannot have a file and a folder with the same name in the same parent folder.
Rename the file or the folder and you will be able to move the file to the Desktop.


Alternatives for Google Talk and Cisco VPN?

How about Pidgin? It supports a wide variety of instant messaging protocols (eg. MSN, IRC, SILC, Yahoo..) and proxies as well.


Ubuntu VirtualBox Graphical Glitches/Black Screens

It seems the issue was the enabled 3D acceleration and my VM is now much more stable to the point where I haven't had any glitches since.

The only issue now is that my 3D applications run much slower.


"Ubuntu One" authentication Failure in Windows 7

There seems to be authentication bugs in the latest windows client for ubuntu one. Download earlier version from http://one.ubuntu.com/windows/ubuntuone-2.0.3-windows-installer.exe and install it.

It should work and check for the change-logs in the future releases and updates for this bug to be fixed.


Grabbed from here

You may need to download the alternate iso and install it

once done please follow the steps

Install PPC via CLI cli-powerpc641
Use ports.ubuntu.com as mirror for repository
Finish installer & reboot
Login via command line and install ubuntu desktop using sudo apt-get update && sudo apt-get install xorg ubuntu-desktop
Reboot


I had this problem and found the answer on the Ubuntu bug report helpful. After switching input method from iBus to xim, and then restarting, global hotkeys worked. To do this, run imconfig then follow the directions, and then restart X11 with sudo restart lightdm (assuming you use the default lightdm).

You should be able to switch back to iBus afterwards, and hotkeys should still work.


Your HDD should have remapped such sectors on its own, but in case it doesn't:
Most filesystems know how to work around bad sectors, if these bad sectors are marked as such. The program badblocks does this for you, but it's not a GUI program.

Another thing worth mentioning: Your new HDD doesn't have to be manufactured, I'm 99% sure that this is either an outright lie or a poor excuse from your dealer. HDDs are standardized commodities and nothing special.


Rhythmbox is missing last.fm and libre.fm like button in 12.04

lastfm like buttons
The version in 12.04 has a plugin to LastFM built in - however as you have found, no longer has the like buttons.
Fortunately, a third-party developer has stepped in to provide this;
called lastfm-extension the plugin:
The homepage has the installation instructions.

As per my answer:

How do I install third-party rhythmbox plugins?

I've packaged this together with other optional plugins in my PPA.


Peculiar icon specification in .desktop file

What exactly does 63EC_Evernote.0 mean?

It may be related to the build number of Evernote, to a codename within Evernote for releases, it may just mean nothing at all and that's simply the name of the image file for the icon. Some software developers sometimes use rather cryptic names for their icons.

Imagemagick is another example of this, it's icon is called display.img6 instead of simply calling it imagemagick (in this case the 6 in img6 corresponds to the version of the program).

As far as specifications is concerned you can check this question on another StackExchange site:

  Is there an ISO or similar recognized standard for Icons?


You can achieve this with a custom udev rule. This rule would make all USB storage devices world writeable:

echo 'KERNEL=="sd*", SUBSYSTEMS=="usb", MODE="0666"' | sudo tee /etc/udev/rules.d/99-usb-storage.rules

Take a look at 'Writing udev rules' for more infos about that.


Why is rsync recopying a lot of file when I sync to an USB key?

Some Microsoft filesystem can only store even values.  Then rsync retransfer any file with an odd value.

You can avoid this by specifying the --modify-window=1 option


Getting error "Illegal Command: qbasic.exe" on dosbox after successful installation on ubuntu

It seems that the qbasic.exe file is not in the directory you are mounting. Either find the qbasic.exe file and save it in that directory (in this case your qbprogs directory) or following the below steps.
Download the olddos.exe file from the following link:
http://www.pcxt-micro.com/download.html
After downloading it just copy it to your working directory. (here qbprogs) and then open terminal and type
dosbox

After that, mount your working folder using
mount c /home/myname/qbprogs

After that, change the directory by typing
c:

After this instead of directly typing command qbasic.exe, first install oldox.exe by following command
olddos.exe

After installation. Use
qbasic.exe

and it will work.


After removing Language Support, how to get it back?

The Language Support application/System Settings item is the command gnome-language-selector (located in /usr/bin/gnome-language-selector), which is provided by the package language-selector-gnome.

To install this package, simply run the command below from a terminal (Ctrl+Alt+T):

sudo apt-get install language-selector-gnome


AMD Catalyst 11.10 is out by now. Maybe you should install it manually, because of this :

  AMD announced last evening, October 31st, the immediate availability
  for download of the AMD Catalyst 11.10 video driver for Linux
  platforms.

  The new AMD Catalyst 11.10 driver brings initial support for the
  Ubuntu 11.10 (Oneiric Ocelot) operating system. It also brings
  production support for the Red Hat Enterprise Linux 5.7 operating
  system.

  A few improvements are also present in the new AMD Catalyst 11.10,
  especially for the AMD Brazos platform, as well as lots of bugfixes,
  such as a segmentation fault issue for the Ubuntu 11.04 (Natty
  Narwhal) 64-bit edition and GNOME Shell corruption issues.

I Thing your problem will be fixed after a driver upgrade ;)

Here's 11.10 Driver for both x86 and x86_64 Linux Distros.

http://www2.ati.com/drivers/linux/ati-driver-installer-11-10-x86.x86_64.run


instaling ubuntu 10.04 or later versions, on amd sempron

Yes you can. I've done this. Simply download the iso for the 32 bits version of ubuntu and install.

I also recommend downloading Ubuntu Server and installing only the things you need. This way you'll get a faster desktop, as Unity requires some RAM to work.


Laptop wont' boot up after upgrade to Ubuntu 14.04

First of all do not Worry that is quite normal when you put ubuntu alongside Windows.
2nd You need Dual Boot.
When booting into ubuntu run gparted and correct the boot flag.
Also System Monitor shows Resources Allocated
Hope that helps
Uncle Sam


Octave display error, Really small fonts

I fixed it by changing the font from Courier to another type. In my case, I changed it to Andale Mono. I have Octave version 4.2.2, and my Ubuntu is 16.04 LTS.


"Localhost" and "127.0.0.1" come back with server error but Apache "it works!" page displays on another ip

I've never dealt with Omeka, so I can't help with that.

How to set up VirtualBox so that the LAMP server on Ubuntu's address will be 127.0.0.1 on Windows

Paraphrasing the VirtualBox manual's section on port forwarding:

If you want the LAMP server to work only on your actual machine:

Open a Windows command prompt.
Run the following, replacing VM name with the virtual machine's name and replacing both 80s with the LAMP server's port number:

VBoxManage modifyvm "VM name" --natpf1 "lamp,tcp,127.0.0.1,80,,80"

If you want the LAMP server to work for everyone on your LAN and possibly the whole Internet:

Open a Windows command prompt.
Run the following, replacing VM name with the virtual machine's name and replacing both 80s with the LAMP server's port number:

VBoxManage modifyvm "VM name" --natpf1 "lamp,tcp,,80,,80"

Now you'll be able to access the LAMP server on Windows using the address 127.0.0.1.

How to set up Windows so that localhost is the same thing as 127.0.0.1

Log in to Windows as an administrator.
Press Win+R to open the Run dialog.
Run notepad %WINDIR%\System32\drivers\etc\hosts.
Add the following line to the file:

127.0.0.1       localhost

Save the file.

Now you'll be able to access the LAMP server on Windows using the address localhost.


I found a solution by myself!!
Betavine Connection Manager can manage messages! That's it.
Also try, KMobileTools, Vodafone Connection Manager!


How to do tab completion with files that starts with special characters

To use tab completion you need to escape some symbols that are used by the shell for other purposes. Parenthesis,  hyphen,  and dollar sign are some of them that needs a backslash escape so that the shell doesn't think you are trying to do something else. A different way to do it is to use single quote. That will escape everything except single quotes within.

Try:

  evince '(TAB

If you have more than one match you just continue writing and pressing TAB until you have a unique match.

The alternatives are:

  evince "(TAB

Here you cannot use $ in the file name since the shell will think it's a variable.

  evince \(TAB

You need to backslash every char that needs to while you are finding a unique match. Eg. if it stops at \(3311 you need to type \)TAB to continue.


All files on automounted NTFS partition are marked as executable

The noexec option has nothing to do with the actual permissions; it's just for not allowing to run anything from that partition:

~ $ ls -l test.sh
-rwxr-xr-x 1 jw jw 28 Aug 30 13:05 test.sh
~ $ ./test.sh
Hello world
~ $ sudo mount -o remount,noexec /home
~ $ ./test.sh
bash: ./test.sh: Permission denied
~ $ ls -l test.sh
-rwxr-xr-x 1 jw jw 28 Aug 30 13:05 test.sh

As you see, once the partition is mounted with the noexec option, test.sh cannot be run; but the permissions themselves did not change.

NTFS does not support the executable bit. The way that an NTFS is seen by the system and what how permissions are set depends therefore only on how it was mounted. Normally, this is done with the umask mount option. This explains also why you cannot change the permissions: there is no way to store them, because NTFS does not support them.

Unfortunately, if you mount everything with the 'non-executable' bit, you will not be able to change into directories, because they must be executable in order to be entered. You can use the options dmask and fmask for setting default permissions separately to for directories and files on a mounted NTFS system.


Ubuntu Lost After Resizing its Partition

If you used gparted to resize the partition, it should've given you a warning - something along the lines "if you move the start of the partition, it will become un-bootable, you will need to do this and this to fix it."

You need to boot from Ubuntu LiveCD and re-install GRUB using the following instructions

I would advice you against using third-party "boot repair" applications.


You can do:

#!/bin/bash

## Reading "/var/etc/user.cfg", saving the line being read in variable "line"
while read -r line; do

    ## Getting the username from "user.cfg", saving in variable "user"
    user="$(grep -Po '^F:\s+\K[^\s]+' <<<"$line")"

    ## Getting the expiry date from "user.cfg", saving in variable "exp_cfg"
    exp_cfg="$(grep -Po 'enddate=\K[^\s]+' <<<"$line")"

        ## Getting expiry time, days since Epoch from
        ## "/etc/shadow" into variable "exp_shadow"
        exp_shadow="$(sudo grep -Po "^$user:.*:\K[^:]+(?=:[^:]*$)" /etc/shadow)"

            ## Check if "exp_shadow" is not Null
            [[ -n $exp_shadow ]] &&

            ## If not null, then convert the date from "exp_cfg" into days
            ## since epoch and then check if its less than "exp_shadow"
            ## Replace ">" with "<" if you want to see the expired accounts :)
            (( $exp_shadow > $(($(date '+%s' <<<"$exp_cfg")/86400)) )) &&

            ## If so, print the line
            echo "$line"

done </var/etc/user.cfg

Save it as e.g. user_exp_check.sh, now you can see the users with non-expired account by running the following (assuming you are on the script's directory):

bash user_exp_check.sh

To save the output in a new file e.g. new_user.cfg:

bash user_exp_check.sh >new_user.cfg

Then you can remove the old /var/etc/user.cfg file.


How can I find out what RAM a computer system has?

Yes there is:

sudo lshw -short -C memory

It will output something like this:

H/W path      Class       Description
====================================================
/0/0          memory      106KiB BIOS
/0/4/5        memory      64KiB L1 cache
/0/4/6        memory      1MiB L2 cache
/0/d          memory      3GiB System Memory
/0/d/0        memory      1GiB SODIMM DDR2 Synchronous 667 MHz (1.5 ns)
/0/d/1        memory      2GiB SODIMM DDR2 Synchronous 667 MHz (1.5 ns)

You may also want to take a look at the full output of sudo lshw -short or even sudo lshw to get much more information about your hardware.

My thanks to jet and CYREX for pointing out a much better method:
sudo dmidecode -t memory

Which outputs something like this:

...

Handle 0x000F, DMI type 17, 27 bytes
Memory Device
    Array Handle: 0x000D
    Error Information Handle: No Error
    Total Width: 64 bits
    Data Width: 64 bits
    Size: 2048 MB
    Form Factor: SODIMM
    Set: 1
    Locator: M2
    Bank Locator: Bank 1
    Type: DDR2
    Type Detail: Synchronous
    Speed: 667 MHz (1.5 ns)
    Manufacturer: Mfg 1
    Serial Number: 1234-B1
    Asset Tag: Not Specified
    Part Number: SODIMM001

    ...

This method is based on the Desktop Management Interface:

  From 1999, Microsoft required OEMs and BIOS vendors to support the DMI interface/data-set in order to have Microsoft certification.(1)

It should therefore work pretty reliably.


Edit the /etc/sudoers file to provide permission to Jenkins

When you run gedit, nautilus and many other applications from the command line you will see these fake error messages often.

To confirm your changes took effect use the command:

sudo cat /etc/sudoers

You will see gedit did save the changes.


Is it possible to know, how many pen drive connected with pc for one day?

Look in your logfiles, new entries are added to /var/log/syslog each time a USB key is plugged.

You can open /var/log/syslog as root with a text editor (sudo gedit /var/log/syslog), or:

sudo grep "Attached.*disk" /var/log/syslog

To count:

sudo grep "Attached.*disk" /var/log/syslog | wc -l


How do I reset the "Document Viewer" (Evince) toolbar?

If you need to reset your toolbar, you will need to delete the configuration file called evince_toolbar.xml which is stored in ~/.config/evince:


Ubuntu 18.04.1 post installation problems

I believe that all of the packages are on the install DVD. Insert the DVD and run:

sudo apt-cdrom -m -d /media/cdrom add
sudo apt update
sudo apt install bcmwl-kernel-source

You will also probably need to disable secure boot, if applicable.

Post any errors or warnings.


The php5-dev package contains various files absolutely essential to compiling PHP. Since it's a shell script, you can just copy it from the package, but it won't work without the dependencies for building a PHP extensions (like header files).

Explanation

In the C world, compiling dynamically linked libraries (DLL/SO) is done by using header files that contain the description on how the libraries are to be interacted with (function calls, structures, etc). These are used to compile an extension without the need for the PHP source code itself. In other words, you don't need the PHP source but you actually need the header files which are contained in php5-dev.


Alternative way to solve this is by creating a vimrc file:

# vi ~/.vimrc

And adding the following line in it:

set nocompatible

This should fix your issue.


Which compiler i have to use to understand C behaviour exact behaviour

$ gcc -Wall -pedantic -o hw hw-no-return.c
hw-no-return.c:1:1: warning: C++ style comments are not allowed in ISO C90 [enabled by default]
 // 'Hello World!' program
 ^
hw-no-return.c:1:1: warning: (this will be reported only once per input file) [enabled by default]
hw-no-return.c:5:1: warning: return type defaults to ‘int’ [-Wreturn-type]
 main()
 ^
hw-no-return.c: In function ‘main’:
hw-no-return.c:9:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
$ cat hw-no-return.c
// 'Hello World!' program

#include <stdio.h>

main()
{
  printf("Hello World!\n");

}

$ gcc -o hw hw-no-return.c
$ ./hw
Hello World!
$


From your post on Ubuntu Forums

Boot into Recovery mode and type this for the var/apt/cache error:
sudo mount -n -o remount /

Then disable auto login from virtual console by doing the following
sudo nano /etc/lightdm/lightdm.conf

Some of the lines should look like this

  [SeatDefaults]
  autologin-guest=false
  autologin-user=username
  autologin-user-timeout=0
  autologin-session=lightdm-autologin
  greeter-session=unity-greeter
  user-session=ubuntu

Just put a # before all lines starting with autologin

Then whenever you boot into Ubuntu just change the login to unity from the lightdm's login screen options

Also you might want to remove Cinnamon
Then type in the terminal

  sudo apt-get --purge autoremove cinnamon

Hope that helps.


What are all of the command line options for Google Chrome?

Google Chrome has these stable options. There are other non stable ones, but they can be added and removed whenever the developers want, so I haven't included them, to keep this up to date.

I have written the option, then example, then explanation.

--user-data-dir=DIR

google-chrome --user-data-dir=/home/tim/chromedatadir

This is used to tell google chrome where to save your data (bookmarks, history, anything peronalised to you). This is the way to create a new session - just running google-chrome simply opens a new tab. Use a directory you have just created. The default is ~/.config/google-chrome.

--app=URL

google-chrome --app=http://google.co.uk

This creates a new window with no tool bars - e.g. No bookmarks bar, or tab bar or omnibar. See the screenshot below (that is Google, I just have a custom background 1).

--incognito

google-chrome --incognito

Opens an incognito window.

  Pages that you view in incognito tabs won’t stick around in your browser’s history, cookie store or search history after you've closed all of your incognito tabs. Any files that you download or bookmarks that you create will be kept.

As you can see (top right) all my extensions (except ad block, because I have enabled that) are disabled in incognito.

--proxy-server=host:port

google-chrome --proxy-server="socks5://foobar:66"

This specifies the HTTP/SOCKS4/SOCKS5 proxy server to use for requests. It overrides any environment variables or settings picked  via the  options  dialog, via the GUI settings.   An  individual proxy server is specified using the format:

[<proxy-scheme>://]<proxy-host>[:<proxy-port>]

<proxy-scheme> is the protocol of the proxy server, and is one of the following 4:

"http", "socks", "socks4", "socks5"

--no-proxy-server

google-chrome --no-proxy-server

Disables  the proxy server.  Overrides any environment variables or settings picked via the GUI settings.

--proxy-auto-detect

google-chrome --proxy-auto-detect

Autodetect proxy configuration.  Overrides any environment variables or settings picked via the GUI settings.

--proxy-pac-url=URL

google-chrome --proxy-pac-url=URL

Specify  proxy auto configuration URL.  Overrides any environment variables or settings picked via the GUI settings.

--password-store=<basic|gnome|kwallet>

google-chrome --password-store=gnome

Set the password store to use.  The default is to  automatically detect  based  on  the  desktop  environment.  basic selects the built in,  unencrypted  password  store.   gnome  selects  Gnome keyring.  kwallet selects (KDE) KWallet.  (Note that KWallet may not work reliably outside KDE.)

--version

google-chrome --version

(return Google Chrome 36.0.1985.143)

Shows version information.

Perhaps more useful is

echo 'google-chrome --version' | sed -nre "s/.* ([0-9.]+)/\1/p"

(return 36.0.1985.143)

As that returns just the version number, without Google Chrome at the beginning.

There is more information here about ways of manipulating the --version option.

1 Custom Google™ Background


MySQL Workbench not working in Ubuntu 20.04

https://dev.mysql.com/downloads/workbench/

Visit this URL, choose the OS and there is a package for Ubuntu 20 ! it is running smoothly but i have a problem in creating the new user apart from root still have to figure it out, but it is okay for me now i can use the different schemas in the root.


Yes .. That's the way it works. As long as a command is running in the terminal, it is blocked from doing other things. Think of chromium-browser as a long running process, just as sleep 60 or similar.

You can put it in the background, freeing your terminal prompt for other work, either by pressing ctrl-z to suspend the process, and then type bg %1 (or the number ctrl-z returned in [] if not 1) to let it run in background.

Or adding a & after the command when you start it:

sleep 60 &

This will send it in the background immediately.


This is how you do it straight with the shell:

zip -r folder{.zip,}


Finally it works. I was able to fix the problem by myself. I tried to fix the problem first over settings and than via Path-variables. Actually, I just needed to go to File->Project Structure... in Android Studio and edit the app properties as well as the JDK Location.


Error removing an HDD from a RAID1 BTRFS array

im guessing that you are using 14.04 lts. so 1st thing should be upgrading the kernel to 3.19 and try again. there is still heavy develpment on btrfs and though we are facing strange bugs from time to time. there are similar bugs reportet for raid 5/6 that will maybe fixed in k4.1.

s.


How to make NFS mounts available while offline?

http://www.linuxpromagazine.com/Issues/2009/99/Offline-FS

Here's some information on various alternatives to do this. Primarily discussing OFS. I've not used it myself, but it seems more mature than my prior suggestions and specifically designed for the task rather than trying to speed up NFS access like CacheFS.

When I need to keep two things in sync, I usually use a Subversion repository as an intermediary between the two systems, but this can be labor intensive.


How to disable a laptop's built-in WiFi NIC when using a PCMCIA one?

You could try unloading the module (I believe that card uses iwlwifi iwlagn):

sudo rmmod iwlagn

I've just checked, and it definitely works here with the BCM4312, wl module.

To bring it back up, use

sudo modprobe iwlagn

Since you wanted to permanently disable the built in wireless NIC, one way to do this is by blacklisting the supporting module. since Intel chipset is supported by the iwlagn driver, you can blacklist iwlang. Run:

gksu gedit /etc/modprobe.d/blacklist.conf

Add this line to the file:

blacklist iwlagn

Save the file and quit the text editor.

Now, even on reboot this module will not be loaded.


Program windows turn gray and then go back to normal again

The Toshiba C50D-A-133 laptop has an AMD E1-210 which only runs at 1GHz, not that great by modern standards. It is normal with a laptop with a slow CPU like that for the Ubuntu Software Center window to dim to gray when there are multiple packages queued up waiting to be installed. An application window turns gray when the processor is busy and the application is waiting for the processor to respond, and then after some time has elapsed, it times out and the window dims. A gray window caused by a timeout that dims and then goes back to normal won't cause any damage to your system.

There is something that you can do about it. If you find the gray-looking window in the Ubuntu software Center annoying, you can install multiple packages from the terminal using a single command of the form:

sudo apt-get install first-package second-package other-packages

...where you substitute the package names of the packages in the command with a space between each package name. If you install packages from the terminal, the terminal window will never turn gray and you will not have any problem with the window freezing, forcing you to force quit the Ubuntu Software Center and then try to install some packages that were at the end of the queue again. This is sometimes necessary, because when you force quit the Ubuntu Software Center the Ubuntu Software Center sometimes removes packages that have not started being installed from the queue, so you have to search for those  packages and click the Install button to install them a second time.

Once you get past the obstacle of updating your system and installing packages, you should expect to have fewer problems with applications windows dimming to a gray screen or not responding. On a laptop with a slow processor like yours, you may find it necessary when using GIMP to save your image in the middle of the job, close GIMP and then reopen the saved image in GIMP and continue the image editing from where you left off. Another tip for preventing application windows from getting gray screens is to avoid multitasking other applications when running a processor-intensive task.


Ubuntu 20.04 on AMD Ryzen 5 pro 4650u + Integrated Graphics w/ Dual Monitor Setup

I think the issue could be due to the compatibilty issues of Ryzen 4000 series CPU with the Linux kernel (less than version 5.7 or 5.8) in Ubuntu 20.04.
I faced similar issues with my Ryzen 4700U CPU laptop - which now works fine with Ubuntu 20.10 (Linux kernel 5.8).
Try using the docking station with Ubuntu 20.10 live environment - if that works,

you could install Mainline kernel in your Ubuntu 20.04 (risky approach)
Or switch to Ubuntu 20.10


Why does Ubuntu 14.10 want to remove Grive tools on upgrade from 14.04?

Package installed are in two categories: manually installed and automatically installed. Most package that come preinstalled with Ubuntu and packages that you point to install with apt-get are manually installed. Dependencies of those packages that you did not list manually are automatically installed.
In your case, I guess, those packages come as dependencies to some package, that after upgrade that package does not list them as mandatory dependencies anymore. Automatically installed packages that nobody depends on anymore are called orphaned and are to be deleted on occasion.
To manually mark package as manual just apt-get install it. It will not do any actual difference to the system.


Can you install the OS onto the USB you are using to boot the iso from?

General advice

It is possible to install Ubuntu into the same drive as you are booting from, but if you fail at some step in the process you have to start from the beginning again (making it a live drive again), which can be frustrating. So @karel's advice is good, get a cheap USB drive (~4GB) to boot from in order to install to a more advanced USB drive (I recommend a USB 3 pendrive with fast flash memory for an installed system).

If you want to try anyway, please continue to read (including the links at the end of this answer in order to find more details).

Boot option toram

Make a live/install drive and boot with the boot option toram, which makes it possible to run entirely from RAM, so that you can unmount the partitions on the pendrive. After that it is possible to install Ubuntu into it.

This will work, if you have enough RAM. It will work with 4 GB, but I don't know the exact limit, only that it depends on the flavour of Ubuntu. The ultra-light flavour Lubuntu and the medium-light flavours Ubuntu MATE and Xubuntu need less RAM for this to work, maybe 2 GB RAM is enough for Lubuntu. Otherwise, with two USB drives, it is enough with 512 MB to install Lubuntu (but you need 1 GB RAM for a good user experience).

Extra tips

If you unplug the internal drive before booting from the live/install drive, it will be easier to install the bootloader correctly. This is particularly important, if you install Ubuntu in UEFI mode. (After the installation you can shut down computer and plug in the the internal drive again.)

There are alternatives to making the installation yourself. You can

clone a compressed image file of an installed system
create a persistent live system

Links

Yes, it works with the following recipe :-)

help.ubuntu.com/community/Installation/FromUSBStick#Notes_about_speed

Try Ubuntu (Kubuntu, Lubuntu, Xubuntu, ...) before installing it

help.ubuntu.com/community/Installation/UEFI-and-BIOS

help.ubuntu.com/community/mkusb/persistent


Package ... is not available, but is referred to by another package

The apt-get command will search the repositories and install a package from the repositories.  The google-chrome-stable package that you referred to in your comment isn't available in the Ubuntu's default repository.  You can add other repositories to your system.  The installation of those packages will depend on the particular repository that you have added to your system.

You can add Google's google-chrome using their official install from their site using: https://www.google.com/chrome/browser/desktop/

This download will give you their latest version which will be a file similar to:

google-chrome-stable_current_amd64.deb

You can install this with:

$ sudo dpkg -i google-chrome-stable_current_amd64.deb

This will install the Chrome and also make it available in your local apt-get installs and updates.

This will remove your error message Package package_name is not available for google-chrome-stable.  You would have to do similar steps depending on the other packages that you are trying to install that don't currently have a package by that name in your installed repositories.


13.10 Saucy login issues; black screen, loop, and freeze

Solved by clean install.

Originally found in the top of the question...


Is it possible to use a custom wallpaper in 12.04?

Yes it is possible.

You can add your custom picture that you want to use as wallpaper by clicking on the "+" button as shown in the picture bellow.-

And then navigate to the picture of your choice

Just make sure that the the immage you have selected is in any one of your folders under home and not in an external partition.


How do I use older gcc on Ubuntu for one particular build without affecting the system?

As it turned out, they call gcc through their own internal variable where they also add some flags. After I overrode it from command line:

make CCCMD='gcc-6 ...'

it got fixed.

I just forgot about overriding feature of make.


How to install Windows 7 on Ubuntu 12.04 LTS using WINE

I'd like to quote something first.

  To overcome this weakness, a compatibility layer called WINE was created. The name originally stood for Wine Is Not an Emulator (because everyone mistook the tool for a Windows emulator). The name is now simply Wine. Effectively, what Wine did was to allow Windows applications to run on the Linux platform. -- Linux.com

So, I think it's not possible to do what you are trying to do. But there are other alternatives to use windows on top of Ubuntu.

You can try virtualbox or vmware or any other virtualization softwares available for debian based operating systems.
Or, you can try to create a partition and then install windows over it. See here.


30 w discharge and half the windows uptime

In powertop, go to the last tab and try enabling some tweaks to lower power consumtion, also, installing Jupiter might help, (I reccomend searching it at webupd.org since they have a PPA with newer versions that in the Ubuntu Repos), also, search for propietary drivers, as they may lower heat and power consumption on your laptop. Go to System Settings and try to set it up to a more power-saving setting.

Good luck!


E: Encountered a section with no Package: header

So, this is a little weird I'm answering my own question! :D

This may help someone out there. I found that the only problem is file name of generated index. It should end up with .gz extension. Previously Packages was acceptable for dpkg now he expects Packages.gz. This is a new rule, meanwhile, someone in debian team decided it to be like this! I updated my local repo generator script and everything works file now.


How do you I find a list of softwares which are outdated and needs upgrade?

update-manager (sitting in System -> Administration) should probably be your first port of call. Though if you want a command-line version:

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

aptitude and synaptic can also tell you.


How can I automatically set my status to Available when I log in?

To make the default Ubuntu IM application Empathy start automatically when you log in, the following instructions are from OMG Ubuntu:

Empathy requires a little bit of a
kick to get going on login.
You would be forgiven for thinking
that checking the ‘Automatically
connect on start-up’ box in Empathy’s
preferences pertained to starting on
system login. It doesn’t, the start-up
in this case refers to Empathy’s start
up – not your computer’s.
We can make it start on login by going
to System > preferences > startup
applications > new item and entering
the following information in the
relevant fields:
Name: Empathy
Command: empathy -h


Why is the application title bar hidden under Unity's top title bar?

This looks like a subtle bug to me which seem to occur randomly in my case. To work around it, resizing the window from its bottom edge fixes the issue.

Place your cursor at the bottom of the application window in order to change it to re-size mode; and then just drag your mouse to the bottom edge of the screen. That would make the title bar visible once again.

The screenshot is when using Ubuntu GNOME, but this is how the cursor would also look in case of Unity.


How to fix virt-install/python error on Ubuntu 20.04 Hosts?

FYI:
It seems that there is an issue with directory structures.
Please see: https://bugs.launchpad.net/ubuntu-z-systems/+bug/1872941
However, this is still present in the currently available focal/universe packages:
virt-manager 1:2.2.1-3ubuntu2
If you run into this issue, like I did, the upstream version is what you're looking for.
See also: https://github.com/virt-manager/virt-manager/issues/171


Audio stopped working after monitor uses displayport

I think I have found it myself. Looks like my sound card was suspended after hibernation. This describes it:
https://help.ubuntu.com/community/SoundTroubleshooting


Ubuntu 14.04 is very slow to respond while Handbrake is encoding

Try to disable the "Show system tray icon" option in "File -> Preferences" (the little icon which shows you the completion percentage while a job is running).

This solved the problem for me.


Crappy adware in my chrome browser when on websites with jw player

Just go into your Chrome extensions and plugin settings and remove JWPlayer or Longtail from the installation.

Worst case, you just remove ~/.config/google-chrome and start over with a fresh profile, since that'll erase any installed plugins on Chrome as well.

After that's done, you should no longer have issues with jwplayer adware.


This look like a bug. See here and here. (Please click in the bugreport that the bug affects you.) The first link has a half-workaround: disable the seconds display in the time indicator applet. This will stop putting out that error message in every second, but it will still output it every minute.

Based on the error message it looks like the applet can't load an image file either because it is missing or it is in wrong format. So please disable any modifications you tried made to the panel. (The error complains about a missing user avatar, so please remove your avatar.)


Bash Else/If statement based on Window Renaming

I think the best command to do this would be xdotool however I am not familiar with the Spotify app so you'll have to test if the xwindowname is updated by the app.  Below is a list of commands to test this from there a simple script would be easy enough to write but first we need proof of concept.
pgreg <name of spotify app>
xdotool search --pid <pid returned by pgrep>
xdotool getwindowname <window id returned by xdotool search>

The last command will tell you the window name and then you can test if it is changed when the ads come on.
If everything works and the window name is changed when the ads play a simple script like.
NOTE: This is very rough to show the concepts not give a copy and paste answer.
#!/bin/bash

while true;
do
pid=$(pgrep spotify)
win=$(xdotool search --pid $pid)
state=$(xdotool getwindowname $win | <filter for ads>)

if [[ $state = 'ads' ]]; then
     mute
else
     unmute
fi
done

Something like that very rough but get across the concept and idea.


Add program to the application launcher widget in KDE plasma desktop for Kubuntu 14.04

The KDE 4 default launcher

As default the KDE 4 is using the Kickoff: https://userbase.kde.org/Plasma/Kickoff

More KDE application launchers: https://www.kubuntuforums.net/showthread.php?59851-KDE-Application-Launchers

Launcher button to the Panel - two ways

1) Right click the application in the KDE Menu (default application launcher) >  Add to Panel.

Note ! Unlock the Widgets to get the 'Add to' options.

2) or right click the task manager application icon (in this Konsole icon) > Show A Launcher When not Running

If the application is not in KDE Menu

Right click the KDE Menu button > Edit Applications

Add the application to the KDE menu.

The KDE Menu Editor Handbook:

Right click the KDE Menu button > Edit Applications > Help > KDE Menu Editor Handbook


this is my alias as replacement for bc:

sh -c "sed -u 's/,/./g' | bc -l"

And this shortcut under my window manager:

urxvt -e sh -c "sed -u 's/,/./g' | bc -l"

Good luck!


how to get wine programs to appear in program searches like they do in Mint?

This isn't any kind of official process but it works fantastic for me.  First I install Windows programs using PlayOnLinux. I then let it create a launcher for me which ends up on the Desktop.  Finally I move the .desktop launcher file to

~/.local/share/applications

I've used this method for a year or so on about a dozen programs and it works great


How to change ip address of host at runtime?

ifconfig only set IP address. To have internet access you need to specify a default gateway and DNS namesever. Use following commands:

ifconfig enp1s0 192.168.1.5 netmask 255.255.255.0
route add  default gw 192.168.1.1
echo "dns-nameserver 8.8.8.8" > cat /etc/resolv.conf


How to start building desktop applications for Ubuntu Desktop?

If you're looking to build GUI applications for the Ubuntu desktop, I would suggest you start by looking into the Qt Framework. Qt is cross platform, and also has the benefit of serving as the underpinning to the Ubuntu SDK.

Unfortunately, as you're a Java developer I'm not sure how you can write Qt in Java.  There used to be a project called Qt Jambi, which provided Qt for Java.  I believe it is now defunct.  Perhaps someone else would like to comment on that.  Qt does provide a number of other language bindings if you're willing to switch.

If you want to continue to use Java, perhaps you could look at Gtk as an alternate to Qt.  Gtk has java-gnome language binding for Java which appears to be still in development.


How can I enroll in the Ubuntu Software Centre on behalf of my company?

You can sign-up to the app developer programme either as an individual or on behalf of your organisation.

If it's on the behalf of your organisation then you need their authorisation to do so. Essentially, the legal agreement asks you to vouch that you have the authority to sign-up for your organisation and bind them to the legal agreement. There's no box where you have to indicate this, it's all part of the terms and conditions.


Broadcom wireless card disappears after restart

I have the same Inspiron 1545 with the 14e4:4315 card, and for me the broadcom-sta driver works without issue. (I've worked really hard to get the non-sta/wl drivers working on all kinds of distros and this particular wlan card just seems to be difficult)

I am guessing that there's some kind of error with the blacklisting of the other available broadcom drivers that ship w/ the kernel (b43, b43xx b43legacy). if you post the output of your  error message when you install, lsmod when it's working and lsmod when it's not... that should be a good start.

you should also look at the contents of /etc/modprobe.d/blacklist-bcm43.conf. it should contain the following, which disables the wrong drivers from being loaded:

blacklist b43
blacklist b43legacy
blacklist ssb
blacklist bcm43xx


Rename multiple files whose names include '*'

You can use an actual expression with rename. In this case we match as many asterisks as there are, and then replace that with the length of the match:

rename 's/^[*]+/sprintf("%d_", length $&)/e' -vn *

If that looks right, remove the -n argument. That's just there to allow you to test it safely.

Here's my test harness:

$ touch \*{,\*{,\*}}abc.tab
$ rename 's/^[*]+/sprintf("%d_", length $&)/e' -vn *
***abc.tab renamed as 3_abc.tab
**abc.tab renamed as 2_abc.tab
*abc.tab renamed as 1_abc.tab

If you also want to do another rename, you can chain it in:

$ rename 's/^[*]+/sprintf("%d_", length $&)/e; s/abc/xyz/' -vn *
***abc.tab renamed as 3_xyz.tab
**abc.tab renamed as 2_xyz.tab
*abc.tab renamed as 1_xyz.tab


Where can I download the Intel C++ Compiler?

See Intel Non-Commercial Software Downloads.


How to see photo icons in Lubuntu file manager

Go under Edit --> Preferences --> Display, and make sure that you have a check mark on Show thumbnails of file.  See image below.


If you can find it in Software Center, then great! Just click uninstall!

Otherwise, you way look for it in Synaptic, in search bar steam.

Finally, if none of these work, try typing sudo apt-get remove steam.

If none of these work, you can remove most of its files by pressing CTRL-H in your home folder and deleting the .steam directory.


How to install nethack-qt in Ubuntu 12.10?

Turns out /etc/apt/sources.list was still referring to precise when it should be referring to quantal. Dunno how that happened, but copying /etc/apt/sources.list from another machine did the trick.


Unable to install Ubuntu 12.04 on Dell Inspiron 14Z

You said:

  we can install ubuntu 12.04 but it disappears once we restart it and model is inspiron 5423 ultrabook. I am trying for a dual boot version, i mean to run ubuntu along with windows

If you are booting from an Ubuntu live CD/DVD or live USB flash drive and running the installer, and it appears to succeed, but when you remove the installation media and restart you just boot into Windows without an option to select Ubuntu, this usually means the GRUB2 boot loader was not properly installed to the Master Boot Record.

The solution to that is to reinstall GRUB2 to the MBR. You can choose whichever method you prefer. Because they're easiest, I recommend either using the Boot Repair GUI utility or using this method.

If that doesn't work, then we definitely will need more information to answer your question. Here's the information we need:

How, exactly, did you install Ubuntu? Provide as much detail as possible.
In particular, if you installed Ubuntu inside Windows using Wubi, the above instructions will not help you, and you'll have to tell us that.
Boot from the live CD, open a Terminal window (Ctrl+Alt+T), and run sudo parted -l. Select all the text in the Terminal window, copy it to the clipboard, and edit your question, pasting it into your question and formatting it with the <$> tool in the Ask Ubuntu editing toolbar. (You should be able to access the Internet from the live CD system to do this.)


Can install Rails on Ubuntu 14.04 with Ruby 2.1.3

IIRC, mkmf is in the ruby-dev package:

rvm install 1.9.1-dev

Install manually with sudo apt-get install ruby1.9.1-dev (depending on your version).


Intel wireless 7260 does not work on Ubuntu 12.04

The kernel in 12.04 doesn't include the driver for your card, so you'll need to grab that first:

wget https://www.kernel.org/pub/linux/kernel/projects/backports/stable/v3.15-rc1/backports-3.15-rc1-1.tar.gz
tar xzf backports-3.15-rc1-1.tar.gz
cd backports-3.15-rc1-1
make defconfig-iwlwifi
make
sudo make install

Then, you'll need the firmware for your card:

wget http://wireless.kernel.org/en/users/Drivers/iwlwifi?action=AttachFile&do=get&target=iwlwifi-7260-ucode-22.24.8.0.tgz
tar xzf iwlwifi-7260-ucode-22.24.8.0.tgz
sudo cp iwlwifi-7260-ucode-22.15.8.0/iwlwifi-7260-8.ucode /lib/firmware/

And finally, reboot:

sudo reboot

(By the way, you just did a fresh install of 12.04? You know that 14.04 is out, right?)


No Network Manager doesn't mean that you can't connect to the internet. You just have to do it the good old way:

First bring your network interface up (assumed that eth0 is your network interface):

ifconfig eth0 up

Assumed that your network is configured via DHCP, you have to
receive an ip address:

dhclient -v eth0

Then set a default route (assumed that your router has the ip 192.168.1.1):

route add default gw 192.168.1.1

From now on you should be connected (if nothing went wrong) you can try by pinging Google via ip address:

ping -c 4 195.13.189.35

Last but not least, set the dns-servers in /etc/resolv.conf (assumed that your dns-server is 192.168.1.1):

nameserver 192.168.1.1

Now you should be able to ping Google by name:

ping -c 4 www.google.com

If this works, you can reinstall NetworkManager via apt or Software Center.

apt-get install --reinstall network-manager

But, don't just copy & paste my commands, they are most likely not the same as yours. If something went wrong, please post the output of the commands.

Edit: If it's a wireless network interface (it's a bit tricky):

Just go sure it's up

ifconfig wlan0 down
ifconfig wlan0 up

You should see your wireless network interface with the command

iwconfig

If it is recognized as a wireless interface, you can scan the network with (assumed that your wireless interface is wlan0):

iwlist wlan0 scan

Then establish a connection to the essid:

iwconfig wlan0 essid "youressid"

Set the connection password:

iwconfig wlan0 key s:yourpassword

Hope you get an ip:

dhclient -v wlan0

Set the default route and the name servers as above.


Install a specific version version not listed using madison

Debian repositories (including Ubuntu) are designed to have only one candidate available for a package. By default, that's the newest version available for that release. You cannot change that - it's upstream, and the version is designated in the repository's Release file.

Warning: It's usually unwise to use Debian packages in Ubuntu unless you really know what you are doing. There are many reasons for this.

Warning: Downgrading a package is possible, but is unsupported. If you try it, and it doesn't work for whatever reason, then the best advice you will get is to revert to the correct version for your release of Ubuntu. A wrong-version package may cause all kinds of dependency problems. (That's why Debian repos don't play that game)

Step 1: Download the package to a location where you will find it again. In this case, let's put in the Downloads dir:

wget -o ~/Downloads/ https://cdn.crate.io/downloads/apt/stable/pool/main/c/crate/crate_2.1.8-1~wheezy_all.deb

Step 2: Uninstall the newer crate, install the older crate:

sudo apt remove crate
sudo apt install ~/Downloads/crate_2.1.8-1~wheezy_all.deb

Step 3: Prevent apt from upgrading crate automatically

sudo apt-mark hold crate
sudo apt-mark unhold crate <---- Someday (not today) you will need this to undo the hold


Try to install the python in such a way. It includes zlib support

./configure --with-zlib
make
sudo make altinstall


Unable to use my Android device as Android emulator using Android studio

Enable USB debugging on your device.

On most devices running Android 3.2 or older, you can find the option under

Settings > Applications > Development.

On Android 4.0 and newer, it's in

Settings > Developer options.

Note: On Android 4.2 and newer, Developer options is hidden by default. To make it available, go to Settings > About phone and tap Build number seven times. Return to the previous screen to find Developer options.

Set up your system to detect your device.

If you're developing on Windows, you need to install a USB driver for adb. For an installation guide and links to OEM drivers, see the OEM USB Drivers document.

If you're developing on Mac OS X, it just works. Skip this step.

If you're developing on Ubuntu Linux,

you need to add a udev rules file that contains a USB configuration for each type of device you want to use for development. In the rules file, each device manufacturer is identified by a unique vendor ID, as specified by the ATTR{idVendor} property. For a list of vendor IDs, see USB Vendor IDs, below.

To set up device detection on Ubuntu Linux:

Log in as root and create this file:

/etc/udev/rules.d/51-android.rules

Use this format to add each vendor to the file:

SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev"

In this example, the vendor ID is for HTC. The MODE assignment specifies read/write permissions, and GROUP defines which Unix group owns the device node.

Vendor Ids:

Acer: 0502
ASUS: 0B05
Dell: 413C
Foxconn: 0489
Garmin-Asus: 091E
Google: 18D1
Hisense: 109B
HTC: 0BB4
Huawei: 12D1
K-Touch: 24E3
KT Tech: 2116
Kyocera: 0482
Lenevo: 17EF
LG: 1004
Motorola: 22B8
NEC: 0409
Nook: 2080
Nvidia: 0955
OTGV: 2257
Pantech: 10A9
Pegatron: 1D4D
Philips: 0471
PMC-Sierra: 04DA
Qualcomm: 05C6
SK Telesys: 1F53
Samsung: 04E8
Sharp: 04DD
Sony Ericsson: 0FCE
Toshiba: 0930
ZTE: 19D2

Note: The rule syntax may vary slightly depending on your environment. Consult the udev documentation for your system as needed. For an overview of rule syntax, see this guide to writing udev rules.

Now execute:

chmod a+r /etc/udev/rules.d/51-android.rules


Unable to update Ubuntu 10.10 installed in MacBook Pro with dual boot

If you update to version it 11.04 you will not succeed because each older Ubuntu can only be updated to the latest version and it is now 11.10. If you took a lot programs and plugins, go to ubuntu.com and download version of 11.04 (by the official Ubuntu site you can download the upcoming (12.04), current (11.10) or a previous version (11.04)). This is made through Mac OSX because you would rather install Ubuntu 11.04 installer ask if you delete Ubuntu 10.10 (on a single computer can have only one Ubuntu). I would recommend you still can download Ubuntu 11.10, so you dial between 11.04 and Ubuntu Ubuntu 11.10.


Every time I connect to wifi,it gets disconnected automatically and says "(2) active connection failed before it was initialized"

I suffered from the same problem.
I installed the drivers of my corresponding Wireless interface.
Type sudo lshw -c network and look in description of your wireless interface.See your product and vendor.
Install the proper driver for your network card.
In my case I followed this link to download https://medium.com/@elmaxx/rtl8821ae-wifi-drivers-in-ubuntu-16-04-4c1286524afa


The intended kernel for 21.04 is 5.11 (since gnome 40 is the intended desktop) so we are probably not going to get an Ubuntu version of the 5.9 kernel.
But... you can already install the mainline 5.9 kernel (so that is without any Ubuntu related tweaks) (prefer to do this on 20.10). Default installation method for kernels:
cd /tmp/
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.9/amd64/linux-headers-5.9.0-050900_5.9.0-050900.202010112230_all.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.9/amd64/linux-headers-5.9.0-050900-generic_5.9.0-050900.202010112230_amd64.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.9/amd64/linux-image-unsigned-5.9.0-050900-generic_5.9.0-050900.202010112230_amd64.deb
wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.9/amd64/linux-modules-5.9.0-050900-generic_5.9.0-050900.202010112230_amd64.deb
sudo dpkg -i *.deb

and to remove it select boot with the previous kernel from grub and do ...
sudo dpkg --purge linux-image-unsigned-5.9.0-050900-generic


Search and download audio-only from youtube

First, install youtube-dl:

sudo apt-get install youtube-dl

Then download and convert the YouTube video

youtube-dl http://www.youtube.com/watch?v=dQw4w9WgXcQ -x

The -x converts it to audio.

Further audio options:

-x, --extract-audio              convert video files to audio-only files (requires ffmpeg or avconv and ffprobe or avprobe)
--audio-format FORMAT            "best", "aac", "vorbis", "mp3", "m4a", "opus", or "wav"; best by default
--audio-quality QUALITY          ffmpeg/avconv audio quality specification, insert a value between 0 (better) and 9 (worse) for VBR or a specific bitrate like 128K (default 5)

Home Page:

youtube-dl


Error when I compile kernel 3.3.2 in ubuntu 12.04

In ubuntu 12.04 and kernel 3.3.4 I've disabled module:

sed -i s/CONFIG_RTS5139=m/CONFIG_RTS5139=n/ .config


Boot linux on external hard disk - Send Grub Rescue

Your issue is most likely that the GRUB bootloader was not correctly installed during initial set-up. To remedy this, you are going to have to reinstall Ubuntu; which, considering you have not yet booted into it, should be relatively unobtrusive. Do it the same way you installed previously, by selecting "Something Else..". However, when you get to the partition menu, you should notice a drop-down menu for where the bootloader should be installed. By default, it chooses the first available option. When installing to an external HDD, you need to install GRUB onto the Master Boot Record (MBR) of that drive. So, in the dropdown, you will see something similar to /dev/sdX1 /dev/sdx2 and so on, where X is the letter assigned to the HDD you are working on. You will need to select the /dev/sdX option, without a number associated with it. For example, if you are installing Ubuntu on /dev/sdb1, you will install the bootloader to /dev/sdb.

Additionally, as you are working on Windows 10, you may have the same issue that Windows 8/8.1 have with the system wanting only to boot Windows due to secure boot being enabled. You will have to disable this "feature" of Windows on newer computer models. You can do this in your BIOS settings, which differ from computer to computer. Most often, though, you will see the option as you boot to "Press F12 to Enter Set-Up" or something similar. Press the indicated key, navigate through your BIOS menu to Boot Options, and disable "Secure Boot".

UPDATE: After some fooling around in a virtual machine, I was able to replicate your issue. By default, GRUB installs to the first partition found. You probably accidentally installed it on the first partition of your internal hard-drive when you attempted your first install. This probably means you wrote it over your Windows partition. The best you can do here is try to find a Windows 10 Boot repair disc and repair the boot partition of your internal drive. Then, Windows will be able to boot. When installing Ubuntu onto the external drive, you will not be able to go through the regular boot process to start Ubuntu. Rather, you will have to change the boot order of your machine so that it boots from USB first. This process differs depending on your BIOS.


Why should I avoid having differents filesystem for / and /home?

I think @AndroidDev is right, it's just about unix file permissions that can't be saved in FAT{12,16,32}, or exFAT and hardly in NTFS. The author clearly had the standard example of a Windows user switching to Ubuntu in mind, see the last section of the wiki page. Btw, see this question for a discussion about the quality of your linked wiki.

tl;dr: Mixing file system in your installation should be no problem as long as they are all suitable for Linux, i. e. support file system permissions as well as symbolic links. In general this means every filesystem is fine except FAT and NTFS.

(source (German))


Ubuntu 12.04 dropbox icon missing in tray (no working solution)

Same problem for me... I solved by typing in a terminal:

dropbox stop
dropbox start

I have not rebooted the pc yet so I don't know if this solution works also after rebooting but for now I have the icon working. If you want type also:

dropbox autostart y


How do I 'remove' a redundant repository

Yes, using ppa-purge will replace all the packages from that ppa with the most current default packages from the Ubuntu repos.

The "Y PPA Manager" just makes it easy to find the ppa as you don't have to try to type the name into the command line, it still calls ppa-purge while running.

Be PATIENT while running the program, it can take a while to complete each step.  While each step is running, it will seem like the purge is frozen.  DO NOT kill the program or shut your computer down while it is running, while it should still be possible to fix after a partial purge, it will be a major headache and is best avoided.  For a large ppa, the time to complete could be 10+ minutes.  Longer if you have a slow internet connection, as all the packages will have to be downloaded.

As to the title of your question "How do I"  I would recommend the "Y PPA Manager"  other wise you will need to type `ppa-purge ppa:{name of ppa here} so you must know the exact name to do it by terminal.  Y PPA will just take care of it for you.


How to finish entering keyboard shortcut dialog in keyboard app? Ubuntu 18.04

Do you have printscreen bound to something already?

You may have to unbind printscreen first as it's interrupting the binding of shift+printscreen, then bind shift+printscreen and finally, rebind printscreen.

You don't have to press Enter after creating a keybind, it will automatically disappear and show you the bound keys once all keys are not pressed anymore. This is why I think printscreen is bound to something and interrupting the new keybind.


Is it possible to change the Icons in XFCE trough the Terminal?

xfce has its own property store and access functions. What you want to do is:

xfconf-query -c xsettings -p /Net/IconThemeName -s elementaryXubuntu

There is also the graphical xfce4-settings-editor for locating and editing these entries.


Nautilus doesn't remember sorting options in Ubuntu 19.04

This should work in all supported Ubuntu releases. First get default sort order:

$ gsettings get org.gnome.nautilus.preferences default-sort-order
'name'

Now change it to new sort order by modification date:

$ gsettings set org.gnome.nautilus.preferences default-sort-order 'mtime'

The list of all sort values allowed:

by Name = 'name'
by Size = 'size'
by Type = 'type'
by Modification Date = 'mtime'
by Access Date = 'atime'
by Trashed Date = 'trash-time'


Would this Arch Wiki fix for enabling GPU apply to Ubuntu?

It looks like the ACPI firmware fix can be applied in a similar fashion to Ubuntu. The boot configuration works differently though because Ubuntu 16.10 uses Grub instead of systemd-boot.

Install build tools:

sudo apt install git make cpio acpica-tools

Clone the Git repository:

git clone git@github.com:m4ng0squ4sh/razer_blade_14_2016_acpi_fix.git
cd razer_blade_14_2016_acpi_fix

Build and install the ACPI firmware fix:

sudo make all
sudo make install

To set up the fix adjust /etc/grub.d/10_linux. Look for a line like

initrd ${rel_dirname}/${initrd}

and insert this line before it:

initrd ${rel_dirname}/razer_acpi_fix.img

Run sudo update-grub to apply the changes and reboot.

P.S.: I haven't actually tested this but it should work from what I can tell based on the build scripts and boot configuration instructions for Arch Linux. I'd be happy work out any kinks in these instructions together with you.


How can I hold a frame for a few seconds in a video?

it is not perfect but it can be done with vlc playlist. I don't know if such a list can be done with vlc GUI, since I changed a playlist by editing it by hand.

<?xml version="1.0" encoding="UTF-8"?>
<playlist xmlns="http://xspf.org/ns/0/" xmlns:vlc="http://www.videolan.org/vlc/playlist/ns/0/" version="1">
  <title>Playlist</title>
  <trackList>
    <track>
      <location>file:///somefile.mpg</location>
      <duration>4000</duration>
      <extension application="http://www.videolan.org/vlc/playlist/0">
        <vlc:id>0</vlc:id>
        <vlc:option>start-time=2</vlc:option>
        <vlc:option>stop-time=6</vlc:option>
      </extension>
    </track>
    <track>
      <location>vlc://pause:4</location>
      <duration>4000</duration>
      <extension application="http://www.videolan.org/vlc/playlist/0">
        <vlc:id>1</vlc:id>
      </extension>
    </track>
    <track>
      <location>file:///somefile.mpg</location>
      <duration>4000</duration>
      <extension application="http://www.videolan.org/vlc/playlist/0">
        <vlc:id>2</vlc:id>
        <vlc:option>start-time=6</vlc:option>
        <vlc:option>stop-time=10</vlc:option>
      </extension>
    </track>
  </trackList>
  <extension application="http://www.videolan.org/vlc/playlist/0">
    <vlc:item tid="0"/>
  </extension>
</playlist>

As you can see in the file there are three entries in the playlist. The video is first played seconds 2-6. Then player pauses for 4 seconds (vlc://pause:4), and then it plays seconds 6-10. I tried it but after pause it jumps a bit and plays some video from before the pause. Maybe that happens only with me or with tested video. However, no pause indication or anything like that appears on the screen.


Radeon HD 7500M/7600M Series drivers for ubuntu

The easiest way to install binary drivers is to use the built in Additional Drivers manager in Ubuntu.

Select the fglrx(proprietary) and click apply changes(You might need to enter your password).

After the fglrx driver is installed, reboot your system and login. To check whether the fglrx driver is working, open a terminal and type:

fglrxinfo

You should see an output similar to:

fglrxinfo
display: :0  screen: 0
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: ATI Radeon HD 4300/4500 Series
OpenGL version string: 3.3.11399 Compatibility Profile Context

You can also install the drivers by typing this into the terminal

sudo apt-get install fglrx

Once that finishes installing, make sure to generate a fresh xorg.conf BEFORE REBOOTING.

sudo amdconfig --initial

After that, reboot and check that the drivers have installed by opening the terminal and typing fglrxinfo. You should see an output similar to the above.

A detailed guide to install drivers at over at the Ubuntu website. Have a read of this if you need to be extra sure.


Maybe

Sometimes the KDE setting files get damaged. Then the KDE will fall to the sane default settings.

Test

Make a new user. System Settings > User Management
Log in as the new user

Does the new user have the same problem ?

If no

Rename (/remove) the old user's  ~/.kde/share/config/kxkbrc file when the old user's session is not running.

Here

Here the "eliminate dead key" seems to work without problems.


Alias to open a graphical Program (nautilus) opens it in Terminal too

tl;dr: Use xdg-open . instead of nautilus . (both manually and in aliases) to open Nautilus.

The precise effect of running nautilus in the terminal depends on factors that include whether or not nautilus is already running. When you start an instance of nautilus from the terminal and it detects an existing instance, it tells that instance what to do and quits; when it doesn't, it keeps running. You can use xdg-open instead, which is usually the best way to open a file or directory in a graphical program, and which quits immediately whether or not an instance of the program was already running.

To open a graphical file browser window for the current directory, you can use:

xdg-open .

That command causes . (the current directory) to be opened by whatever program is configured to handle directories. The command itself immediately terminates. If your desktop environment uses Nautilus as its file browser, then the effect is to open it in Nautilus.

If you're using a desktop environment that doesn't use Nautilus as its file browser--or if you've manually reconfigured what graphical program is responsible for opening directories--then typically you would want that other program to run instead, anyway. For example, Xubuntu uses Thunar as its file browser, and running xdg-open . in an Xubuntu session opens the current directory in Thunar, which is what you would probably want in that situation.

The directory you open doesn't have to be .. For example, xdg-open ~/Downloads opens your downloads folder.

The xdg-open command can also be used to open things that are not directories. For example, if you have a LibreOffice Writer document notes.odt, then xdg-open notes.odt will open that in LibreOffice Writer.

In my experience, most of the time one considers running nautilus some-directory, what one wants is exactly the effect produced by xdg-open some-directory.

If you want a Bash alias for this--that is, specifically to open the current directory--you can still make one:

alias open='xdg-open .'


ufw configuration in Ubuntu 9.04 vs 14.04

Usage

You can check the man pages by typing

man ufw

The wiki about UncomplicatedFireWall explains all the features and everything you need is on the ufw server guide.

Ufw is set to allow outgoing and deny incoming traffic, through the default policies, so you have to selectively allow traffic in.

Being that said, allow allows all outgoing traffic by default, setting a rule with allow, it will allow all incoming traffic according to the rule unless specified otherwise. eg. sudo ufw deny out 1:19/tcp .

You can set specific rules by setting allow/deny/reject/limit to in/out/both.

Information

List the available application profiles:

sudo ufw app list

To get info on an app:

sudo ufw app info name-of-app

Check your status:

sudo ufw status verbose

Check your numbered rules

sudo ufw status numbered

Disable and enable ufw to apply the changes:

sudo ufw disable
sudo ufw enable

Reset ufw:

sudo ufw reset


getting access to Wi-Fi internet while being on a Ubuntu lve CD

The Wi-Fi connection indicator is the one that looks like a triangle on the top right corner of the screen. Click it and it should show the available Wi-Fi networks in your area.


Your mistake in:

sudo apt-get install postgresql91-contrib

It should be:

sudo apt-get install postgresql-contrib-9.1

Or just run:

sudo apt-get install postgresql-contrib

And after that you can run:

sudo ln -s /usr/share/postgresql-common/pg_wrapper /usr/bin/pgbench


Installation of gromacs and VMD in ubuntu 16.04

I found the answer
use tar xvf instead of tar -zxvf
but I don not know what is the problem, but I successfully installed VMD this way.


How do I shutdown the computer automatically, after bot finishes running from terminal?

Just append shutdown to the command with the && operator. && would make sure the system shuts down only if the command exits succesfully. So you need to run

your-command && shutdown


Download Unity tweak tool in the software center. This app let's you adjust your fonts in appearance --> fonts.


To change the default from a command-line to GUI, try editing the GRUB configuration.

Edit /etc/default/grub

sudo nano /etc/default/grub

Find this line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash text"

or

GRUB_CMDLINE_LINUX_DEFAULT="text"

Change it to

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

Update the GRUB configuration

sudo update-grub


GNOME shell extension doesn't work with snap version of web-browser

You don't need to install extensions from extensions.gnome.org as they are also available in 'Ubuntu Software' app.

Launch Ubuntu Software, click add-ons, click extensions tab. Here you are able to install extensions.


Ubuntu 18.04 - Keyboards (Laptop, USB & Virtual) Not Accepting Input on Logon

Problem resolved by installing package xserver-xorg-input-all-hwe-18.04:

  sudo apt-get install xserver-xorg-input-all-hwe-18.04

Notes on the process I took for anyone who this may help in the future:

I was able to identify the need for xserver-xorg-input-all-hwe-18.04 because I had the second USB with USB Live installed on it. When I booted up with this second USB the keyboard mouse and all inputs worked so I could list the input packages it was using from the command line.
I could not find much recent on the web re this exact issue that had answers, mostly only stuff 4, 6, 8 years old. But I did find a couple references to install the xserver-xorg-input-all package. I was planning to try that but when I decided to grep the working USB stick installed packages for "input" I saw the exact package I decided to install.
These dependent packages were also installed by installing xserver-xorg-input-all-hwe-18.04:
xserver-xorg-input-libinput-hwe-18.04
xserver-xorg-input-wacom-hwe-18.04
So having the working Ubuntu Live spare USB stick was great because it pointed me to the packages I needed and it was the way I researched the problem (I'm travelling and just have the laptop and a cracked phone which is difficult to enter characters or click buttons where the cracks are so I have to keep rotating the phone to enter a word)
I had never used the recovery options on Ubuntu or any Linux based system so it took me some time to work through those. Initially for a long time I couldn't get a network connection while in recovery mode but it started working without me making any change I'm aware of to get it to work.  Eventually this allowed me to update the whole system via the internet from the recovery command line.
Brightness control works and I did not have to reinstall anything I had deinstalled during the attempts to fix my input problems. It could be because of the system update. Anyways it seems like something related to the attempted brightness issue fix deinstalled the driver I had to reinstall for the input fix.  Perhaps it was something in the below step I had taken for the brightness issue, though rolling these installs back by themselves did not fix the keyboard input problem:

apt-get install xbacklight xorg xserver-xorg-video-intel

Best of luck to anyone who ever reads this!!!


Can't figure out how to install my graphic drivers [Nvidia GT 520M]

DON'T EVER INSTALL DRIVERS DIRECTLY FROM NVIDIA OR AMD

I will assume you didn't install anything. In the terminal run:

sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update

If your card is NOT Optimus enabled run:

sudo apt-get install nvidia-313 nvidia-settings

reboot

If your card IS Optimus enabled run:

sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo apt-get install bumblebee bumblebee-nvidia linux-headers-generic

reboot


How can I get compiz grid working again?

the nvidia go 7300/7400 were blacklisted due to some issues. here is how to solve the problem.
first, install the nvidia 173 driver or the experimental drivers. (if you uninstall the nvidia and reboot, you should see the experimental one suggested in the list).
second, open a terminal, type " sudo nautilus ", go to file system, etc, enviroment.
third, open the file, and add this line at the bottom " UNITY_FORCE_START=1 ". without quotes.
then save and reboot to ubuntu session.
you should see now unity. if not go to ccsm and enable the unity plugin. reboot and your issue is solved.
see reference Geforce Go 7300/7400 Blacklisted, Can I Still Run Unity?


Ubuntu 20.04 LTS does not boot up using PXE and NFS

I just found that a new parameter ip=dhcp is needed since 19.10
https://bugs.launchpad.net/ubuntu/+source/casper/+bug/1848018


Unable to get cron to run on AWS Linux AMI

Thanks for the help Steve.

Turns out there was a permission issue for root user. I had the username and password stored in ~/.my.cnf file as

[mysqldump]
user = root
password = "password"

But I had not called in in the cron statement. Did it this way

*/1 * * * * root mysqldump --defaults-extra-file="/root/.my.cnf" -u root   dbname > /var/www/db/dbname.sql && aws s3 cp /var/bd-backups/dbname.sql s3://bucketname/

Hope this saves someones time :)