Try booting a live session of Ubuntu on the computer you want to install it on. That way, you'll confirm that the hardware works as expected. If there is something you're worried about, check Hardware drivers in Ubuntu. Sometimes it's necessary to install proprietary drivers for wlan, for instance. You won't be able to do that in the live session, but you will be able to confirm that drivers are easily available.
Make sure you know what you want. It is useful to write down a list of everything you use the computer for.
Find out if there are anything you need to do that cannot be done in Ubuntu. If that's the case, then you'll want to keep a small partition with Windows on it. That's very easy in Ubuntus installer.
When Ubuntu is installed, most users will want to install the package Ubuntu Restricted Extras. When Ubuntu is installed, you can click this link to install it, or just search for it in Ubuntu Software Center: http://apt.ubuntu.com/p/ubuntu-restricted-extras.
Explore Deja-Dup, which is the default backup system in Ubuntu 11.10. It's easy to use, so use it actively. You'll find it in the system preferences, which is the first entry on the power menu in the upper right corner.
Explore the system, and please write down everything that isn't immediately obvious to you and if you can, explain why. New users have a fresh perspective that is very useful to developers.

I think most users should be able to just use Ubuntu. A primary goal for you should be to explore Ubuntu Software Center, as that is a concept Windows users are not familiar with and where you'll find most of the software you'll ever need.

I recommend using the Guest user as much as possible when you're experimenting with the system, as nothing you do as a guest can harm the system, and everything you do is forgotten when you log out or reboot. That means you can really go to town on the system and not worry about a thing.

You should also get yourself an account at http://one.ubuntu.com. You get 5GB of free online storage and you can sync with all your computers. You get databases and stuff too, and you get OAuth and OpenID so that you don't have to register with username and passwords on all those sites and just use "login.ubuntu.com". Very pleasant.

I'm sure there are other things, but you'll have to discover them for yourself.

Good luck and have fun! :)


How can we batch convert chess move files of .pgn file format to .bin file format?

Polyglot might be what you want.
Install it like so:
sudo apt install polyglot

And use it like so:
for f in *.pgn
    do
    f1="${f%.pgn}"
    polyglot make-book -pgn "$f" -bin "$f1".bin -min-game 1
    done

Run the above code from within the directory containing the .pgn files.


Ubuntu 12.10 No USB sound output for Audiolab Q-DAC

I had the same problem after a system upgrade.
The solution for me was to set the profile for the dac to analog stereo output.
This can be done in the tab Configuration of the program PulseAudio volume control.


Most often linux will refuse to mount it because of errors on the filesystem

try running ntfsfix

http://manpages.ubuntu.com/manpages/hardy/man8/ntfsfix.8.html

it is part of the ntfsprogs package so you should have it.

sudo ntfsfix <options> <device> .. <device> being something like  /dev/sda4 etc..

You can get the device name from Disk Utility. Open Unity Launcher and type Disk Utlity


Sharing a connection with a server using a unique ip

OK, the issue here is that you have set up your laptop as the gateway. Presumably, you chose the "Automatic" rather than the "Manual" approach on the guide you followed. You need to go back to network settings on the sever and set it to manual:

In the above picture, I have set the following:

Address: 192.168.1.50 : this is the IP address of the server. The important part is the 192.168.1, this will make sure that your server is on the same network as the rest of your local network. The last number, 50, I chose randomly, all that is needed is that it be a number beyond the range of addresses that your DHCP server allocates. This is usually your router and you should check the settings just to be sure, but 50 should be fine.
Netmask: 255.255.255.0 : This is to make sure that the server is on the same subnet, for more details see here.
Gateway: 192.168.1.1 : This is the address of your router, based on the ifconfig output you posted, this should be correct.
DNS: 212.27.40.240 : This is the address of the DNS server, the server you contact in order to translate numeric IPs into host names like google.com. I have chosen the OpenDNS server but you can use another, just copy the settings from your laptop's connection.

Once you have done that, just reconnect and your server should be visible at 192.168.1.50.

If you don't have a GUI (you can install one very easily on the Server edition by the way), you'll need to define all this in the file /etc/network/interfaces. Open it with a text editor (using nano as an example but you can use emacs or whatever you are most comfortable with):

sudo nano /etc/network/interfaces

It probably looks like this:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp

Make it look like this:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
    address 192.168.1.50
    netmask 255.255.255.0
    gateway 192.168.1.1

Save the file (with nano: Ctrl+O, then Enter, then Ctrl+X)

That sets up the network settings, the DNS server might not be necessary. If after making the changes above you can't connect to http://google.com but you can connect to, for example 74.125.195.139 (that's google.fr in case you're wondering)  you will need to configure the DNS servers. To do this, open the file /etc/resolv.conf with nano:

sudo nano /etc/resolv.conf

And add this line:

nameserver 212.27.40.240

Now, disconnect, reconnect and you should be fine.


How do I migrate to a newer Python version and still use packages in the old version?

This is a better way of installing Python 2.7 into Ubuntu 10.04. What's the best way to get Python 2.5 and 2.7


Dell 7490 system does not suspend correctly with Ubuntu 18 with any kernel

Same problem. Installing 'tlp , recommended by some people does not work stable. The behaviour is stochastic: sometimes works, most of the time not. Even sometimes ends up in CPU failure (Blinking lights of Dell 7490). Dell support claims it is an Ubuntu 18.04 problem.


(Adding this as an answer from the comments)

sudo restart ssh

should be:

sudo service ssh restart

The private/public RSA SSH keys are located in ~/.ssh/id_rsa and ~/.ssh/id_rsa.pub, respectively. You can transfer the public key to another machine to connect to it through public key authentication. This can be done via ssh-copy-id like so:

ssh-copy-id username@host

Alternatively, you can append your public key (id_rsa.pub) to the server's /home/username/.ssh/authorized_keys file, which is in essence what ssh-copy-id does.


Brightness control doesn't work Acer Aspire 5738 13.04

I have found a definitive solution

Edit:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=Linux i915.i915_enable_rc6=1"

in /etc/default/grub (and then updating with sudo update-grub)

thanks!

Source: How do I adjust the screen brightness on an Acer Aspire One D270?


Search plugin for wrapping words with text in Gedit v3

I've finally been using the default plugin "snippet" of Gedit, I didn't know at first One could select and use a Gedit variable ($GEDIT_SELECTED_TEXT) to manage customizable replacement.


I think you can try the following:

ssh user@remotehost

Once you are logged in the remote host you need to export the "Display" so you can search it with this.

env | grep 'DISPLAY'

The result is:

DISPLAY=:0

Now you can export the DISPLAY.

export DISPLAY=:0

Then you can set the background.

gsettings set org.gnome.desktop.background picture-uri "file:///tmp/ozvsk.jpg"

Cheers.


You've got a mixed-mode installation -- Ubuntu in BIOS/CSM/legacy mode and Windows in EFI/UEFI mode. This is an awkward situation at best, and resulted from your following poor instructions (or perhaps running into a problem when following good instructions and improvising). The solution is to install an EFI boot loader for Linux. There are several ways to do this, but the two easiest are likely to be:

If you haven't already done so, disable Secure Boot on your computer. (You can re-enable it later, if you like.) Download the USB flash drive or CD-R version of my rEFInd boot manager and prepare a medium with it. You should then be able to boot to rEFInd. If rEFInd enables you to boot both Windows and Ubuntu, you can then install the Debian-package version of rEFInd on your computer, which should take over the boot process and enable you to boot either OS directly.
Boot an Ubuntu emergency disk in EFI mode and run the Boot Repair program. This should set up GRUB in EFI mode, which in turn should enable booting both Ubuntu and Linux. Note that this option is more of a "leap of faith" than the first, since it involves modifying your on-disk and in-NVRAM settings without first checking that anything will work. It can also be tricky to boot an Ubuntu emergency disk in EFI mode if you don't know your way around your particular firmware's settings.


How to shrink Windows partition with unmovable files in dual boot installation

Just had the same problem, but the instructions in Working around Windows' "Shrink Volume" inadequacies worked well for me. (The title mentions Vista, but it worked well for Windows 7 too.)

It's a bit long to repeat here, but the main points are

Close every program you can (any file currently in use is treated as unmovable, including browser cache files)
Run the Windows Disk Cleanup Wizard
Disable pagefile, kernel memory dump, system restore and hibernation (the primary system level unmovable files)
Run a defragmenter that can move files to the start of the disk

On a 60 GB SSD with about 35 GB free space, "Shrink Volume" in Windows 7 initially freed a paltry 100 MB, but following the steps in the article it was able to free the whole 35 GB.

See also the ubuntuguide.org documentation on multiple OS installation.


Dell Precision 7510 Loses sound after upgrade from 14.04 (OEM) to 16.04

( first do  a real shutdown (not reboot) if not already done)
It seems Intel soundcard is now the 2nd one.
 To select it,   install and launch pavucontrol (Pulseaudio volume),
go to "output devices"  tab,
click green button "set as fallback" near the Intel soundcard
(in your case, should be in the bottom)

As this fails, in case the problem was solved recently, you can try latest ALSA driver from Ubuntu ( daily build snapshots, see here)  :
Paste and run successively this 3 commands in terminal:
sudo add-apt-repository ppa:ubuntu-audio-dev/alsa-daily
sudo apt-get update
sudo apt-get install  dkms oem-audio-hda-daily-dkms
then reboot

As this failed too, may be Alsa is ok but not Pulseaudio:
check with alsamixer:
 Run  alsamixer in a maximized terminal,  use F6 to select Intel soundcard : do you see your more  faders than "line out"? Anyway,  tweak all  volumes using left/right arrows to scroll thru faders, then  up/down to set each fader levels (set all to max for test) , m key to mute/unmute (unmute all)

EDIT: Reset pulseaudio configuration:  As Jackd sound server has sound working, and jackd use underlaying  Alsa layer, Alsa is also ok so probably the problem comes from Pulseaudio (which is another sound server using underlaying  Alsa like Jackd do) . Resetting the Pulseaudio config for current user can be done running this in a terminal:

mv ~/.config/pulse ~/.config/pulseold
then
killall pulseaudio
Pulseaudio will restart creating a new config.
Check also if you have tweak Pulseaudio config in /etc/pulse

EDIT2 : Restore Alsa volume at startup :
do  sudo alsactl store   and   sudo alsactl store  1 when volumes are ok .
The 2nd command may return error if you have no second  soundcard .
The alsactl restore and alsactl restore 1 is done at startup.


Dell inspiron 1501 ubuntu 14.04 lts 32bit doesn't work but ethernet work

You need to install firmware. Run in terminal

sudo apt-get install firmware-b43-installer


The experienced behavior consists of two separate problems.

The problem with the disappearing graphical interface is related to the use of the option --unredir-if-possible. While this option works fine if used when invoking compton after boot, it causes the graphical interface to disappear if used when compton is invoked as part of the autostart procedure. I think this is an undocumented bug, at least I haven't found any note (while similar notes appear to indicate that this option has been proven to be problematic already). I haven't found a workaround, except for not using this option as part of the compton autostart command. So far, it appears that applications in fullscreen mode work fine anyways, therefore this solution appears to be acceptable.
The problem with compton not starting or not showing the expected effects seems to be related to the point where compton gets invoked during the autostart procedure. The only point I have found that appears to work consistently, is via an entry in ~/.config/lxsession/Lubuntu/autostart. Here it is important, to write neither a leading @ nor a trailing &, despite what can be found amongst various examples on the web.


Why my ibus input can't type 'que' or 'qve' in Chinese?

The easiest way to change this behavior is to use the Ibus Intelligent Pinyin engine rather than the default pinyin engine.

sudo apt-get install ibus-libpinyin

Then add the Chinese - Intelligent Pinyin input method and remove the standard Chinese - Pinyin option from your input methods. (Just remove the input method from your list. Don't uninstall any packages.)

You may need to logout after installing ibus-libpinyin before the intelligent pinyin option shows up.


Why am I getting to routed to the boot menu?

Haha okay so I had deleted the EFI system partition (ESP), which is just fantastic. I decided to use TestDisk to recover my files (booting from USB) and then did a clean install of Ubuntu. If anyone knows if there is a relatively straightforward way of restoring a deleted ESP, I would love to know, just out of curiosity! I tried restoring the deleted partition with TestDisk, but it didn't seem to work.


Most likely anacron is executing the jobs as root, so the mail isn't being sent to your user. You might what to use /etc/aliases to get the mail at your normal address. Like so:

root:         your@email.com

Or to use a file:

root:         /file/name

See man 5 aliases for more information.


how much time do you stay in that black screen until you quit?

Take in account that the USB connection is slower than sata and it will take some time to boot.

I cannot be 100% sure that is not an installation problem, so you can try to edit the files into the flash drive with some software for reading ext4 file system from windows.

Few year ago I install ubuntu in a external drive by USB connection and had no problem with the installation neither working with the system. May be you can try to install Ubuntu again.


What software is there for brainstorming?

Freemind is a commonly-used program for mind-mapping.

With a little practice, it can easily become a medium for your own thinking process. One of the best features of Freemind is that you can define your own key-mappings, which makes it more productive than other mind-mapping (brain-storming) tools out there. Also, though it is a mature software, it is still actively developed; so you can expect more features coming in as time goes by.


Yes! You need laptop with Windows, then you should download and install LiLi USB Creator (it if free program to create bootable USB memory stick), you will need Ubuntu ISO from Canonical, USB memory stick 4GB and that is pretty much it. Install Lili USB Creator, download Ubuntu from Canonical, then insert your USB memory stick and open LiLi USB Creator. You have to find your USB in drop down menu, then you have to choose your ISO from Downloads, make sure to check that USB memory is formatted in FAT32 and press the little lightning in the end. Your USB memory stick will be ready in few minutes.


How to properly downgrade openssl version under Ubuntu 18.04

You can try the following:

sudo apt-get install -y --allow-downgrades openssl1.0=1.0.2n-1ubuntu5.1
echo "export OPENSSL_DIR=/usr/lib/ssl1.0/" >> ~/.bashrc


Fine, just try these steps..

There is a sound icon on the top-right bar. Click on it -> Sound Settings' -> 'Hardware' Tab -> 'Settings for the selected device: Profile: and chose some different options from the selection list. There is a button 'Test Speakers', you can test your sound when ever you chose different options. On the same window go to 'Output' tab and change other options from the list below.

you can also go to sound setting from 'All Settings' -> 'Sound'. Right click on desktop and chose 'Change Desktop Background' -> 'All Setting' tab -> 'Sound'.

Reply if something goes wrong..


I cannot unzip.tgz file in my external hard drive

Extract to your external drive with --directory (or -C) option.


I'm not sure about Kubuntu, but Ubuntu has Ubuntu software center, which is great to install software =). Try running sudo apt-get install ubuntu-desktop in a terminal, and exploring the regular ubuntu desktop for a while. You can still keep kde, just pick one at login.
If you don't want to install the Ubuntu environment alongside KDE, just run sudo apt-get install software-center in a terminal to just install the software center.

I'll show you how apt works for installs. Type the following command in a terminal, without the things in brackets, those are just explaining what it all does. Replace "software-center" with what you want to install! (To remove something just replace install with remove)

sudo (Switches to root for the command) apt-get install (Install command) software-center (Software you want to install)

If you need to add a repository, you will find that most Ubuntu ones come as PPAs. You just need to type a command to add these.

sudo add-apt-repository ppa:<repository-name>


If the partitioning process was finished, then your data is probably hosed.  You may be able to recover some with a Forensics distro like Helix or Backtrack.

Always make a backup of data before installing an OS, even if you don't plan on touching a certain partition.


How to exit GRUB rescue prompt without live CD?

Using another PC, download "Boot-Repair-Disk," burn the ISO image to a CD and boot from it. It should work. (It did for me.)


How to increase the priority for a task permanently in linux machine?

I think you should ask in Unix & Linux but in any case, the ones that say that NICE values for CPU in Linux vary from 0 to 99 are just for Real Time OS. The nice values are between -20 to 20, being -20 the higher priority, in normal (the one that most of users uses) *NIX kernels for CPU. Which is for most cases.
Also, the file copying wouldn't need actually that much CPU (depending the filesystems) but the I/O priority. From kernel 2.6.26 the ionice values are determined by the CPU nice values using the following formulae:
io_priority = (cpu_nice + 20) / 5

Also, all process (unless modified source code) starts with "Best effort" priority class which uses the formulae above. But, in any case, you probably don't need to set this as default.
A way to set the I/O priority to start a process is doing:
ionice -c2 -n6 SOME_COMMAND

Process that would like to set/get their own I/O scheduling class and priority should use the ioprio_set and ioprio_get functions.
Also a nice warning from Linux Poison:

Read the description for realtime carefully. Realtime IO nice processes will starve the system completely until they are done using the disk. You can easily make your system non responsive for long periods of time.
Also, IO niceness only has effect if you are using the CFQ io scheduler . If you have an elevator= (as, deadline,noop) line in your menu.lst, IO niceness will have no effect.

Sources:

http://linux.die.net/man/1/ionice
http://linux.die.net/man/2/ioprio_set


Is there an application that will render the popular web video formats?

My answer to this question: How can I maximum compress video files? may be helpful for your case. In this answer I talk about Miksoft's Mobile Media Converter, but there are a few alternatives to this task which can easily be reached over the net.

Anyway, Mobile Media Converter will only work for 32 bit version OS's. And for both 32/64 bit version I suggest you to give a chance to

WinFF

Transmaggedon

Transcoder

Arista Transcoder

And there are some other useful Transcoding Software, which includes Non Linear Editing Systems like those mentioned on the answers to this question: What is an easy video editor? and command line using ffmpeg. (as mentioned by @tomodachi)

Nevertheless, the trick in compression (in order to make the videos lighter when loaded to/from the server) isn't in the software itself but the way you make your videos.

You must pay special attention to the Audio and Video Bitrates, which determines both the quality and file size for the resulting transcoded videos and remember that the higher bitrate will result in a higher quality but it will also drop "heavy" file sizes.

You should run as many tests as you need in order to feel comfortable with both the resulting quality and file size.

There is no a pre-defined set of parameters which will do always the same for your videos when you are trying to save something, let's say: quality and file size, or in the worst case: both them.

There is no such "magic codec" that will result in a better quality with small file sizes. Take in consideration that you could have a mpeg1 video file (VCD) with a high bitrate looking better than an mp4 video file with a lower bitrate.

Additionally and only for your consideration:

The FileInfo.com webpage related to "Video Formats" provides an extensive and really comprehensive list of video formats, its available software which can be used to play each one and the "popularity".

You may also wish to take a look to the "Digital Container format" and the table of "Comparison of container formats".

Good luck!

- Parts of this answer were took from Reduce avi size without losing too much quality


How to create a txt log file of a "make install"?

Actually I think it should be

make install >file.txt 2>&1.

Notice that

There is not a left <. We are doing output redirection, so nothing to do with brackets.
Use 2>&1 instead of 2>1. 2>1 will redirect stderr into a file named 1 instead of stdout.


have you sarinstalled? This might be collecting stats on your system storing them in the directory described. please review this guide to see what might write the log files. Before deleting them I would compress all the files and move them out of /var/log/sysstat/PS.


Install Google calendar on Ubuntu 18.04.04

You may as well consider implementing flathub repository in your system, which allows you to install various software and applications from its sources.

1.) Add the Flatpak PPA:

sudo add-apt-repository ppa:alexlarsson/flatpak

sudo apt update && sudo apt install flatpak

2.) Install the Flatpak software plugin:

sudo apt install gnome-software-plugin-flatpak

If you installed the Flatpak software plugin mentioned earlier, then you can install Flatpak apps by searching in the Ubuntu Software center.

3.) Install Flatpak and add Nuvola Apps repository

or via terminal

flatpak install nuvola eu.tiliado.NuvolaAppGoogleCalendar


How can I add a break line after the header of a sequence and before the actual sequence?

Using awk, printing first and last field with \n as delimiter:

awk '{printf "%s\n%s\n", $1, $NF}' file.txt

Using sed, capturing first and last field while matching and using in replacement:

sed -E 's/([^[:blank:]]+).*[[:blank:]]([^[:blank:]]+)$/\1\n\2/' file.txt

With perl, similar logic to sed:

perl -pe 's/^([^\s]+).*\s([^\s]+)/$1\n$2/' file.txt

Using bash, slower approach, creating an array from each line and printing first and last element from the array separating them by \n:

while read -ra line; do printf '%s\n%s\n' "${line[0]}" \
       "${line[$((${#line[@]]}-1))]}"; done <file.txt

With python, creating a list containing whitespace separated elements from each line, then printing the first and last element from the list, separating by \n:

#!/usr/bin/env python3
with open("file.txt") as f:
    for line in f:
        line = line.split()
        print(line[0]+'\n'+line[-1])

Example:

$ cat file.txt
UniRef90_Q8YC41 Putative binding protein BMEII0691 MNRFIAFFRSVFLIGLVATAFGRACA
UniRef90_Q8YC41 Putative binding protein BMEII0691 MNRFIAFFRSVFLIGLVATAFGRACA

$ awk '{printf "%s\n%s\n", $1, $NF}' file.txt
UniRef90_Q8YC41
MNRFIAFFRSVFLIGLVATAFGRACA
UniRef90_Q8YC41
MNRFIAFFRSVFLIGLVATAFGRACA

$ sed -E 's/([^[:blank:]]+).*[[:blank:]]([^[:blank:]]+)$/\1\n\2/' file.txt
UniRef90_Q8YC41
MNRFIAFFRSVFLIGLVATAFGRACA
UniRef90_Q8YC41
MNRFIAFFRSVFLIGLVATAFGRACA

$ perl -pe 's/^([^\s]+).*\s([^\s]+)/$1\n$2/' file.txt
UniRef90_Q8YC41
MNRFIAFFRSVFLIGLVATAFGRACA
UniRef90_Q8YC41
MNRFIAFFRSVFLIGLVATAFGRACA

$ while read -ra line; do printf '%s\n%s\n' "${line[0]}" "${line[$((${#line[@]]}-1))]}"; done <file.txt
UniRef90_Q8YC41
MNRFIAFFRSVFLIGLVATAFGRACA
UniRef90_Q8YC41
MNRFIAFFRSVFLIGLVATAFGRACA

>>> with open("file.txt") as f:
...     for line in f:
...         line = line.split()
...         print(line[0]+'\n'+line[-1])
...
UniRef90_Q8YC41
MNRFIAFFRSVFLIGLVATAFGRACA
UniRef90_Q8YC41
MNRFIAFFRSVFLIGLVATAFGRACA


Saved document doesn't inform user about no-saving the information

Assuming it's Thunderbird that should detect changes were made and ask to copy elsewhere: Mozilla's Bugzilla
Assuming LibreOffice should detect that a temporary directory is being used: LibreOffice's Bugzilla


How to block facebook for particular time intervals in ubuntu server?

If you like to do it command line:

sudo iptables -A OUTPUT -p tcp --dport 80 -d ipaddress_here -m time --timestart 09:00 --timeend 22:00 -j ACCEPT
sudo iptables -A OUTPUT -p tcp --dport 80 -d ipaddress_here -j REJECT

Those are two rules for your iptable allow to use port 80 for specificIP in a specific time and reject in other times.

All you have is to replace the ip-address of facebook letus say and put the timestart and timeend

But this is great IF you know the IP's.

For that I provide you other ways:

If you use Google Chrome, I strongly recommend the StayFocusd
extension. It takes a second to install and 30 seconds to configure the options - choose how much time you want to allow yourself to be on Facebook and other sites that you class as time-wasting.

If you're a Firefox user, consider LeechBlock.


First, download 12.10.  This will download very quickly:

https://help.ubuntu.com/community/Installation/MinimalCD

Anyhow, download some sort of 12.10 cd/dvd/usb.  Just do a clean install.  What's the problem? If the data on the hard drive is gone, then no need to upgrade.


Unity home icon replaced with grey file cabinet

Icons and themes are stored in the same format using the same file names for the components. Applications don't really need to be aware of an icon itself, just the name. Icons are in /usr/share/icons/{icon set name}/ for example the Faenza icon for GIMP is /usr/share/icons/Faenza/apps/scalable/gimp.svg. /usr/share/applications/gimp.desktop is the launcher for the gimp application. Within gimp.desktop is the command:

Icon=gimp

The system will decide what file extension to use. If you wished to change that icon you would do so in /usr/share/icons/Faenza/apps/scalable/gimp.svg. The Home folder icon is at /usr/share/icons/Faenza/places/scalable/user-home.svg.


Ethernet not working. Says cable unplugged on Ubuntu Gnome 14.10

I just turned off the computer, removed the battery and left it for 15 minutes. Then it jumped back to 1Gbps.


Client access to samba server if servers NETBIOS is not unique

The default value for netbios name is the DNS name of the machine where samba is executing (unique in your network, otherwise, you have a network problem...).  So, just leaving the parameter netbios name undefined should solve yout problem.

Other possibilty: use string substitution.  In that case, uyou would have in your smb.conf file something like :
netbios name = %I
In this example %I stands for internet adress.  A complete list of subsitution varaibles can be founs here: Official Samba doc

Hope this helps.


Lubuntu 17.10 - Monitor turns off during boot, works with live system

I have had the same problem with both Ubuntu Budgie and Ubuntu MATE on a Samsung N130 this week and have got mine working by first adapting the instructions found here.

First you need to edit (temporarily) the grub file by adding
i915.modeset=0 to the the line with "quiet splash" in it, then press ctrl + X to boot.

This will boot you into a low graphics instance.  After logging in it is necessary to turn off the boot animations. The easiest way is using xdiagnose.  If Lubuntu does not have xdiagnose installed by default open the terminal and install using:

sudo apt-get update && sudo apt-get install xdiagnose

Once you've got it in launch xdiagnose and check the box marked "disable bootloader graphics". Then reboot.  This should solve the problem.


See this similar post: Boot screen in low graphics/text mode

This will help you.


Brother DCP-J140W Driver in ubuntu 13.04 32 bit

Please have a look at the Brother Solution Center.

They provide the drivers for printing and scanning and detailled instructions on setup.
Please read the instructions carefully. Then, printing and scanning as a regular user even through wireless works nicely.


Cannot use protontricks, winetricks, because wine is looking for libraries in wrong location

According to this issue https://github.com/Matoking/protontricks/issues/72 the new steam runtime soldier will be supported in future releases of protontricks.
If it does not run, it is still possible to run protontricks with an older Proton version, e.g.:
PROTON_VERSION='Proton 5.0' protontricks --gui


Unable to start single node cluster of Hadoop

Well, the solution was that I should include the hduser in the hadoopgroup to have permission on the folder /usr/local/hadoop/hadoop-2.9.1/logs
using the command :

sudo chown -R hduser:hadoopgroup /usr/local/hadoop/hadoop-2.9.1/logs

That resolve my problem !


wifi works on Windows Vista, but not on Ubuntu

have you tried this post it all about broadcom 43xx wifi card install , problem solution, etc


Use the default "backups" (Deja-Dup).

But first, ensure that "duplicity" is installed:

sudo apt-get install duplicity


Brow, i was facing the same problem than you.
I did the following: I deleted all from backup then i created a new backup without password.

Right now (12-31-2014: 08:16), Deja Vu Backup is restoring all my files from my notebook to my desktop.

I don't know if the problem was the password, or if was some corrupt file. However, it's working. This is the only thing matter =D


What RedShift does
After a little research, it turns out RedShift changes the colour temperature of your screen. Using xrandr instead, as I suggested in my comment to your question, would not have the same effect. With xrandr, you can only set gamma and brightness.
Using RedShift from command line
The GUI of RedShift has very limited options, and you can not set the color temperature in a permanent way. However, Redshift also has some command line options: open in a terminal window: redshift -h to see the options.
Simply running the command:
redshift -O 3700

Will set your screen permanently to "night".
Neutral temperature is:
redshift -O 6500

Adding the (first) command to your Startup Applications will apply the setting on log in.
(Dash > Startup Applications > Add)


What is the easiest way to rearrange pages in a PDF document?

You can use PDF-Shuffler.

You can install it via terminal:

sudo apt-get install pdfshuffler

As shown in the image, you only have to import the PDF file you want to manipulate and drag & drop the pages in the desired order. It also lets you to rotate the pages in orthogonal angles.

You can save it in the same file or export it as a different PDF file.


User friendly way to access an MTP device (Android 3.0 tablet)

One suggestion is to use Ubuntu One or DropBox to move stuff on/off.

Ubuntu's default music management application, Rhythmbox (Applications → Sound & Video → Rhythmbox Music Player), supports first to fifth generation iPods, including the iPod mini, iPod Photo, iPod Shuffle, iPod nano, and iPod Video. Rhythmbox can transfer music to these iPods and create playlists.

I think your answer can be found here in the 10.04 manual:

Portable music players


How do I get rid of old Ubuntu installation in GRUB?

Boot your computer with Ubuntu live CD/USB.
Open Nautilus and carefully check if you have any data to preserve in the partition (sda5?) where your old Ubuntu installation is, especially looking at your Home sub-folders, e.g. Documents, Downloads, Pictures, etc. and either copy & paste or move them to your new Home sub-folders.
After making sure that you no longer need anything on the old partition, start GParted Partition Editor, and be very careful to delete that old, unneeded partition (sda5?) and not any other.
You can then choose from a number of options to use this new unallocated free space at this stage.
Finally, boot your computer normally and update the Grub menu by entering this command in terminal: sudo update-grub


How can I add Ubuntu to a windows domain with LikewiseOpen?

As you can read here, likewise-open is not supported anymore, and it's not in the repositories. You probably tried to follow an old tutorial like me and failed because of that.

They recomend the use of Beyond Trust, open edition, but I've never tried myself, so maybe someone can add a better solution.


Filtering lines based on pattern of couple of words

You can straightforwardly combine regular expression tests logically in awk e.g.

$ awk '/city/ && /language/ && /x/ && /y/ && /z/' file.txt
city=london&language=en&x=12345&y=6789&z=7
city=dublin&language=en&x=12345&y=6789&z=7
city=madrid&language=en&x=12345&y=6789&z=7


How Do I make a program with Ubuntu Command Line

You do not have to use a filename extension, but the file permission has to be set executable for the user who should be able to run it (unless you source a file in shell). See man chmod.

By using a shebang you can tell which interpreter to use to execute a script.


Yes, Universal Media Server is a Java based application that is distributed as a Java executable jar file, among others (folders, configuration). Installing it only means that you have to unzip the downloaded distribution package file in a folder.

The distribution includes a UMS.sh file that starts the JVM with the appropriate parameters. This is the way to start and use the Universal Media Server.

The java application is using by default as working directory the folder where the downloaded file has been unzipped. So, it's good you deleted that.

Furthermore, the application creates a configuration folder under ~/.config/UMS. So, you have to delete this also: rm -r ~/.config/UMS.


2 ethernet ports, one on 100mbps, one on 1000mbps problem?

Hi check the cabling as 1000Mbps generally needs cat6 Ethernet. my network dropped to 100 and it turned out the problem was a piece of cat5 between a pc and the switch: got 5m of cat6 back to 1000Mbps networking.


cant upgrade by sudo apt- get upgrade, hash sum mismatch, ubuntu 16.04, problem upgrading firefox

Try the following:

sudo rm -rf /var/lib/apt/lists/*
sudo mkdir /var/lib/apt/lists/partial
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade


Where do I find the UUID of a network connection on Ubuntu Server? (no Network-Manager)

The UUID is part of Network Manager. If you don't have Network Manager installed and enabled, then you don't have this UUID.

It is not related to OpenStack Quantum UUID at all.

Therefore, you cannot find the UUID. It does not exist.


How do I stop my fans from going crazy after resuming after suspending?

You can have scripts or commands run automatically before and after suspending. Just create a script in /etc/pm/sleep.d/. It should be named without an extension, like 75ati_toggle. The Arch Linux Wiki has some shows the general convention for naming the scripts (link here). Anyway, the contents of the script could be something like this:

#!/bin/bash
# Script to disable and enable the discrete graphics card before suspend and after resume

case "${1}" in
suspend)
  # Commands to enable the graphics card before suspend goes here
  ;;
resume)
  # Commands to disable the graphics card after resume goes here
  ;;
esac

Hope this helps!


BIOS
Dell I7352-4445SLV
You have BIOS version A13, from 9/26/2019.
There's a newer BIOS available, version A14, dated 7/14/2020, and it can be downloaded here.
Note: Confirm that I have the correct web page for your model #.
Note: Have good backups before updating the BIOS.
Swap
You currently have 17G of swap spread out over two locations. ~1G on a disk partition, and ~17G in a /swapfile. That's unnecessarily large.
sudo swapoff -a # turn off swaps
sudo -H gedit /etc/fstab # edit this file
Comment out this line to disable disk partition swap:
/dev/mapper/vgubuntu-swap_1 none            swap    sw              0       0

Let's create a 4G /swapfile:
Note: Incorrect use of the dd command can cause data loss. Suggest copy/paste.

sudo swapoff -a           # turn off swap

sudo rm -i /swapfile      # remove old /swapfile

sudo dd if=/dev/zero of=/swapfile bs=1M count=4096

sudo chmod 600 /swapfile  # set proper file protections
sudo mkswap /swapfile     # init /swapfile
sudo swapon /swapfile     # turn on swap
free -h                   # confirm 8G RAM and 4G swap

Confirm this line in /etc/fstab... and confirm no other “swap” lines...
/swapfile    none    swap    sw      0   0

reboot                    # reboot and verify operation

swapon -s should look similar to this:
Filename                Type        Size    Used    Priority
/swapfile               file        4194300    0   -2

Retest sleep/resume.


tool/command to know the speed of individual network connections

For monitoring I use iptraf
With iptraf you can chose interface for monitoring and lock for ant session

sudo apt-get install iptraf
sudo iptraf

Chose interface and look.


xinput property 'Synaptics Noise Cancellation' doesn't exist - Thinkpad x220 - jittery touchpad - ubuntu18.04.3

I found a working answer provided by Manfred Hampl (m-hampl) on this page:

https://answers.launchpad.net/ubuntu/+question/678600

"Your output shows that you can install xserver-xorg-input-synaptics-hwe-18.04 without removing anything else.

sudo apt install xserver-xorg-input-synaptics-hwe-18.04

I tried that and was able to install the synaptics drivers and then use the command

xinput --set-prop "SynPS/2 Synaptics TouchPad" "Synaptics Noise Cancellation" 20 20

This fixed the jumpy cursor problem I was experiencing.


File permissions in /var/www not changing

Use commands, from terminal. Ctrl + Alt + T by default, but you can find it in GNOME menu.

So open that terminal, and type:

sudo chmod 775 FILE(S) - for folders, use recursive option: sudo chmod 775 DIR(S) -R

The numbers are from the permissions: 7 means rwx(read, write, execute), 5 r-x(read, execute), 6 rw- (read, write).

The tree number combination is: ogx (owner, group, everyone).

To change group an owner, use:

sudo chown OWNER:GROUP FILE/FORDER -R eg. owner: root, group:users; (R=recursive)

To change group only, use:

sudo chgrp GROUP FILE/FOLDER -R ... same thing...

Please read the manual pages of these programes: man chmod chown chgrp - for more details.


I need help with this install error on VMWare player?

sudo vmware-modconfig --console --install-all


How can i reverse a Linux swap partition bact to a ntfs? (with loosing data)

I generally assign about half of my RAM to a swap partition. This used to be recommended at least. So for my 8GB RAM on my desktop, I created a 4 GB swap.
As you've seen, yours is a little too big (!).
You can delete or resize the swap partition using the graphical program gparted. You might need to install it with sudo apt install gparted first.
There shouldn't be any "useful" i.e. user data in swap, it is a system partition.


Issue dual booting windows 10 and ubuntu

Probably your the image you loaded on your bootable pendrive has not been properly loaded. Try creating a fresh bootable USB drive using software such as "Win32DiskImager". Choose your Ubuntu ISO and just burn the image on the pendrive again. And try the installation again. Hopefully your hanging screen will go away!


Unity Tweak tool fails to start with the error "com.canonical.unity.webapps schema is missing"

Install the package unity-webapps-service


That is not an error, the "W" is a warning.

This message can be ignored, it is telling you Ubuntu is looking for packages on the "cdrom", but there is no cdrom on your system.

Remove (uncheck) the CDROM from your sources:

See https://help.ubuntu.com/community/Repositories/Ubuntu for additional information.


Can't run visudo within Docker; sudoers file does not exist

I worked it out from another answer: sudo is not installed by default. To install sudo:

apt-get update
apt-get install sudo


The very latest version of Asunder does not in fact use freedb, having successfully moved the default cddb lookup to gnudb. Older versions of Asunder (versions before 2.9.6) can be brought back to life by changing the relevant settings under:
Preferences --> Advanced --> CDDB

Alter your settings in this location to match the following:

And then all should be well...


Need help to change name of highlighted below

You should find out what's the drive name, and you can do that runnig fdisk -l.

Assuming that the highlighted item is names /dev/sda1, to change the labels use one of these commands:

sudo e2label /dev/sda1 Computer

or

sudo sudo tune2fs -L Computer /dev/sda1


The problem was with Nvidia drivers I think, although I do not know why. This worked:

sudo apt-get --purge remove nvidia-*
sudo apt-get install nvidia-common
sudo apt-get install xserver-xorg-video-nouveau
sudo apt-get install --reinstall xserver-xorg-core
sudo dpkg-reconfigure xserver-xorg
sudo reboot


Even if you were able to get the os.getcwd() approach to work, it would probably break when you run the program installed. If you look in the program_name_lib directory, you'll see that quickly provides some convenience functions for you. The easiest way to do what you want is to put the text file in data/media and use the get_media_file() helper. Like so:

from program_name_lib.helpers import get_media_file
text_file = get_media_file("my_file.txt")


Kubuntu 16.10 + Plasma 5.8 - can't add UK keyboard layout properly!

The problem is not coming from the Kubuntu/ Ubuntu. It is from the Microsoft Universal Foldable Keyboard.

I have to switch the the OS to Windows on the keyboard in order to have the UK keyboard layout!

Hope this will help others who use Microsoft's.


how to fix error E: Sub-process /usr/bin/dpkg returned an error code (1)

Try to move problematic NodeJS executable out the way with

sudo mv /usr/bin/nodejs ~/nodejs_broken

then resume your operations with

sudo apt-get install -f

and reinstall NodeJS with

sudo apt-get install --reinstall nodejs


as I understand - you want to share your directory to somebody over network. If so - try to look in the direction "/etc/exports" for example here


Encrypted home with Ecryptfs - How to store the key file if i missed it on first boot?

I happened to get the Message again now, after an update:

  Record your encryption passphrase

  To encrypt your home directory or "Private" folder, a strong
  passphrase has been automatically generated. Usually your directory
  is unlocked with your user password, but if you ever need to manually
  recover this directory, you will need this passphrase. Please print
  or write it down and store it in a safe location. If you click "Run
  this action now", enter your login password at the "Passphrase" prompt
  and you can display your randomly generated passphrase. Otherwise, you will need to run "ecryptfs-unwrap-passphrase" from the command
  line to retrieve and record your generated passphrase.

So ecryptfs-unwrap-passphrase is the answer.


How to completely remove ldap and remove the directory tree

A simple sudo dpkg-reconfigure slapd should perform the task.


does installing ubuntu desktop modify existing installed packages?

I had to add the following to the .bashrc file in my home directory. This modifies the environment PATH variable for all consoles to include the bin directory for ruby. There's probably more paths needed as well to fix bundler and others.

PATH=$PATH:$HOME/.rvm/gems/ruby-2.0.0-p0/bin


You can use ubuntu-builder. More information can be found on its Launchpad page:

ubuntu-builder


I think your problem in the whitespace(space ,tabs , Enter, whatever...) added to the name of the script.

And here obviously you press enter

I'll show you in example using terminator in my system:

$ '/home/maythux/Documents/ts3client_runscript.sh'
Outpout

While when running:

$ '/home/maythux/Documents/ts3client_runscript.sh
>
> '
bash: /home/maythux/Documents/ts3client_runscript.sh

: No such file or directory

So all you have is to remove those whitespaces(enter in your case)

'/home/senpai/Documents/Stuff/TeamSpeak3-Client-linux_amd64/ts3client_runscript.sh'


During suspend, there is far from negligible battery use so the computer will still shut down after a while. For some reason, that is the case even without a full battery drain-out; sometimes I can power it back on and confirm like 1% before starting charging.


iptables -L lags on non localhost or anywhere address

Firstly, --dport localhost doesn't seem right; 'localhost' is an address, not a port specifier.

However, delays during iptables output are generally due to address resolution. iptables is trying to query the name for the IP address that it prints out, and this may take some time, especially where there's no match. You can avoid this by giving the -n flag to iptables:

iptables -Lvn


Cannot copy from ubuntu terminal (not a shortcut misunderstanding)

You may very well be experiencing a bug where launching Terminal by right-clicking on desktop and selecting "Open Terminal" causes weird behaviours. Failure to copy/paste properly is one of the symptoms.

As a workaround you may launch Terminal always by other means, e.g. by running gnome-terminal or opening from the "Activities"/"Show Applications" etc.


Locked computer gets very hot despite no CPU-intensive tasks running

I noticed some heat issues with Ubuntu as well, that is to say I really noticed the heat after picking up a very hot idle laptop.

Ultimately for me the solution was as simple as a can of well applied air duster to make sure the cooling system could function more efficiently.


You should be able to use the bash shell's built in wait command. From man bash (emphasis mine):
       wait [-n] [n ...]
              Wait for each specified child process and return its termination
              status.  Each n may be a process ID or a job specification; if a
              job  spec  is  given,  all  processes in that job's pipeline are
              waited for.  If n is not given, all currently active child  pro‐
              cesses are waited for, and the return status is zero.  If the -n
              option is supplied, wait waits for  any  job  to  terminate  and
              returns  its exit status.  If n specifies a non-existent process
              or job, the return status is 127.  Otherwise, the return  status
              is the exit status of the last process or job waited for.
So
command file1 &
command file2 &
command file3 &
command file4 &
command file5 &
command file6 &

wait

command file7 &
command file8 &
command file9 &
command file10 &
command file11 &
command file12 &


nohup does not disconnect a command from terminal, it makes your script ignore SIGHUP, and redirects stdout/stderr to a file nohup.out, so that the command can continue running in the background after you log out.

nohup does not automatically put the command it runs in the background. One must do that explicitly, by ending the command line with an &.

$ nohup ./script.sh &
[1] 3390
$ nohup: ignoring input and appending output to ‘nohup.out’

jobs can print currently running jobs and their status. If the command jobs cannot find it, then it is no longer a child process of that shell.

$ jobs
[1]+  Running                 nohup ./script.sh &

One can be bring back a background job to foreground in bash using fg even if it is run with nohup. But that won't change the output redirection, which will still be going to the file nohup.out.

$ fg
nohup ./script.sh

If you close the shell/terminal or log off, your command is no longer a child of that shell. It belongs to init process. If you search in pstree you'll see it is now owned by process 1 (init). That cannot be brought back to the foreground because the foreground no longer exists.


Check BIOS settings , make sure that USB bootable is enable.


Why does Chrome have so many processes on my machine?

Chrome renders each page (tab) in a different process. This makes it faster on multi-processor machines.

The behaviour you're seeing is normal.

futex_wait_queue_me refers to a type of mutex lock (fast userspace mutual exclusion) that is used to schedule many processes work on one processor. The state indicates that your process is enqueued to receive the lock.

Sometimes, an unusually high amount of waiting for a lock can be caused by cpu throttling, but most often, it's normal. Take a look at the sort of website you have open; Perhaps something like Flash is causing the high CPU load.

To see what tabs or plugins are slowing down your system or filling up your memory, you can use Chrome's built in task manager:

In my example, omgubuntu's javascript uses a lot of cpu.


13.10 login loop workaround creates unwanted root access

I had a similar issue with a Lubuntu login loop.

@NikTh suggested this which worked for me:

"Try to remove the file ~/.Xauthority . Login from a TTY (CTRL+ALT+F2) and"

rm ~/.Xauthority .

"Be careful with the dot and the capital X. This file is hidden in your home directory. It is safe to remove it. It will be generated again in next login. After the deletion restart lightdm."

sudo service lightdm stop ; sudo service lightdm start


How can I convert images of pdf files to text?

First install poppler-utils which contains Pdfimages. Pdfimages is a tool command line, which allows to extract all images from a PDF file and save them as JPEG files.

Open a terminal, by pressing Ctrl+Alt+T

Install the software:

sudo apt-get update
sudo apt-get install poppler-utils

The syntax of this tool is:

pdfimages -j file.pdf output_directory

Where file.pdf is the file you want to extract images and output_directory is the directory where you want to save the images.

Images are saved in the following format:

output_directory/output_directory-nnn.jpg

It's funny, but they are named with the same name of the directory where you extracted, a consecutive number and extension.

Second, just install an application for ocr, for example ocrfeeder:

sudo apt-get update
sudo apt-get install tesseract-ocr ocrfeeder tesseract-ocr-eng gocr cuneiform ocropusocrad

Once the program opens, select the search engine you want to use. Select the Edit menu and select Preferences from the dropdown menu.

In the dialog that opens select the Tools tab. Here you will see an option that puts favorite engine. In this option, select Tesseract and then press the OK button.

After completing the settings we can start with the action

To do this we press the + symbol:

Then select the image file you want to open.

If necessary retouch the image, only you have to access the Tools menu. Once inside the Tools menu select the option unpaper. The display will find various options and filters to retouch the image.


Switch to another running application from terminal

You can do it using wmctrl. To install it use in terminal,

sudo apt-get install wmctrl

To switch to firefox use the following command in terminal,

wmctrl -a firefox

Actually it switch to a window with name containing 'firefox' in it. see man wmctrl for more.


Can an integrity check be run against a USB boot disk?

You can find the md5sum of an Ubuntu iso here.

The above md5 value is the checksum of the entire disk, not of the individual files.

When you prepare a bootable USB, the files from the iso file are copied over to the USB and the bootloder of the USB is overwritten, thus making it bootable. You see here, a single file(for ex, lubuntu 14.04.1 x64 iso) with a md5 sum(a5f97cd6a9f171c70cf816de8728f13b) is now destroyed and multiple files are present in the USB instead. So you don't have an iso anymore to compare the original lubuntu iso's md5 sum to.

If you want to check the integrity of each of the individuals files, then you need to boot from the USB and then select check cd for defects from the boot menu. There's a file ms5sum.txt in each ubuntu iso which contains the md5sum of each individual file in the iso. The check cd for defects option verifies the md5sum of each file with the md5 list present in the iso.

From LiveWireBT's answer, just navigating into the usb drive and running md5sum -c md5sum.txt should perform a consistency check of the individual files.


Unknown applications installed on Ubuntu 20.04

after much research I have discovered what the programs are associated with and was able to delete them as root user. Thanks for the suggestions as they steered me in the right direction.


Bluetooth detects no devices and vice versa in Ubuntu 16.04 LTS

When opening system settings and clicking on the Bluetooth option, I got the message 'No Bluetooth found'

This what worked for me to fix it (terminal command line):

sudo modprobe -r btusb
sudo modprobe btusb
sudo service bluetooth restart

sudo apt-get install blueman

Then go to Search for files on the computer (), type in blueman (this is the bluetooth manager).
You can then enable bluetooth once it opens up.


Live CDs are magic!

Ok, seriously. I've had this happen to me before, and I was able to use a Live CD to get it fixed.

Boot from an Ubuntu live CD.
Mount your Ubuntu partition by clicking on it in the Dash.  (It will appear somewhere in /media; we'll find exactly where in a second.)
Open a terminal with Ctrl+Alt+T.
Here's the cool part:  type sudo chroot /media/ubuntu/, and hit Tab to fill in the really long folder that is your Ubuntu partition.  Hit Enter.  Now (in the Terminal session) you are root, but in your regular Ubuntu install, not the Live CD!
Now type passwd USERNAME, replacing USERNAME with your username (NOT your actual display name).
You should be prompted for a new password.  Enter it twice; you won't see it being typed.
Close the terminal and reboot.  You should be ready to go - I told you Live CDs are magic!


For windows to be installed alongside ubuntu first you need to make the partition of the format NTFS in your ubuntu
you can do it using gparted application in ubuntu.
After this start booting your windows.
then install windows on that particular NTFS partition.
for more info go here How do I install Windows 7 alongside a pre-existing Ubuntu installation?


Ubuntu on Toshiba p50-12z with nvidia optimus

I have searched for a solution to this problem, but I could not find anything on the web.

I have a Debian installation where my custom kernel wouldn't boot, but the stock kernel would with the LAN enabled. I noticed that the framebuffer would detect the native resolution with the LAN on and stay at a low resolution with it off.

I discovered that if you start booting with the simple framebuffer you can boot with the LAN on. The following are are the kernel config options that seems to "fix" the issue (for Kernel v3.14.2):

CONFIG_X86_SYSFB=y

\# CONFIG_DRM_NOUVEAU is not set

CONFIG_DRM_I915=y

CONFIG_DRM_I915_KMS=y

CONFIG_DRM_I915_FBDEV=y

CONFIG_FB_SIMPLE=y

CONFIG_FRAMEBUFFER_CONSOLE=y


Cannot boot into Windows 8 after successful Ubuntu installation

Have you resized the Windows partition, especially the Windows boot partition during the Ubuntu installation? If so, that might be the cause of the problem. I had this problem with Windows 7 on an OEM system after installing Ubuntu if I deleted Windows's boot partition.

Booting from the Windows installation medium (DVD or USB flash drive with your Windows ISO image written to it) and using its recovery tools to perform automatic repair may help.


Ubuntu installer no partition type option

Boot in "Try Ubuntu without Install" mode. Search for and open GParted Partition Editor and create the desired partition. For creating desired partitions. This answer would help  "Root file system not defined. Please correct this from partitioning menu" Ubuntu 14.04 installation problem in pre-installed win 8 laptop

Then go ahead with installation and you will find required partitions as you expected.


Yes, the output of ls /usr/lib/apt/methods/ should be similar to this:

bzip2  cdrom  copy  file  ftp  gpgv  gzip  http  https  lzma  mirror  rred  rsh  ssh  xz


How to get munin to monitor and show CPU temperatures

Found the solution. Answer for the benefit of future users.
Make sure plugin output matches supported regexes
Looking at the plugin implementation: /usr/share/munin/plugins/sensors_ I noticed that the plugin has detailed regexes in a global hash called %config.  There are 4 supported sensor categories:

fan (Fan speeds in RPM)
temp (Temperature in Celsius)
volt (Voltage in Volts)
power (Power in Watts)

Since the regexes are very specific, it is important to make sure that the output of the sensors command-line utility, matches these regexes exactly.  You cannot call sensors -u when the munin plugin expects output in the format generated by sensors (without the -u option).
Make sure symlink name matches a sensors category
The name of the symlink from /etc/munin/plugins to /usr/share/munin/plugins/sensors_ must match a supported category. The category name is used as the %config key which defines each regex. Extensions like fan or temp, which match a supported category are good:
sensors_fan -> /usr/share/munin/plugins/sensors_
sensors_temp -> /usr/share/munin/plugins/sensors_

But using tmp or cpu_temp instead of temp will not work.
Restart the munin-node service
Another detail that I missed, was the need to restart the munin-node service after every change in configuration or adding a plugin symlink:
sudo systemctl restart munin-node

Remove empty charts of unsupported/missing devices
If you see empty graphs for non-existent devices. It is also recommended to remove reports on non-exiting devices:
munin-node-configure --suggest --remove-also --shell | bash

Result
Now munin shows my CPU temperatures:


Open a Terminal and run the following command :

unity  - - reset

dconf reset -f /org/compiz/

Log out of your desktop session and back into Unity for changes to take effect.

Step 2

To refresh your Unity launcher with the default set of icons, run the following in a Terminal:

unity --reset-icons

This command will “restart” Unity immediately, running from the Terminal. Closing the Terminal will also ‘close’ Unity, so it’s best to log out and back in after running this command.

Hope this might work indirectly.


Firefox - how to avoid duplicate file data download when using "save page as"?

If you're using pdf.js (the default, built in Firefox plugin used to show PDFs), there's a button to download  the PDF within the PDF viewer. This doesn't re-download content.

Test with this file (1.1MB).


Thanks for all the input. I know a fresh install is the sensible way to go - but even if I did a fresh install - which I probably will do in due course - I would still want a bootable clone that was updated by rsync on a daily or hourly basis in case my system drive crashes.
I have managed to get sdd bootable and the cloning looks to be working well. I generated a new UUID for the partition (using sudo tune2fs -U random /dev/sdd1) and edited the clone's /etc/fstab. I had already labelled the clone partition so I used the label in /etc/fstab although I'm sure I could just have used the new UUID.
I discovered a useful utility called boot-repair -https://sourceforge.net/p/boot-repair-cd/home/Home/. I used it but it didn't work - because, as I realised afterwards, I had rsynced to the clones /etc/fstab. (I have now excluded /etc/fstab and some other files/ directories from the rsync).
I am not sure exactly which step solved the issue - it seems like generating the new UUID made the difference (and obviously editing the clone's /etc/fstab) - after which I chrooted into the clone and did a grub-install and update-grub.
I will now upgrade to Ubuntu (probably Xubuntu) 20.04, stop rsyncing to the clone, and recommence the rsyncing after a couple of days if all is good with the 20.04 upgrade.


About to install Ubuntu 16.04 on a M.2 harddrive. Which file system should I use for speed?

Quite simple. You use the filesystem which is best suited for your OS. For most Linux Distributions, Ubuntu included, this is:

ext4

NTFS and fat32 are not suited for Unix/Linux systems, since they are lacking features Linux needs. They might be a good choice for data partitions that need to be accessible from Windows systems. Be aware that fat32 cannot store files larger than 4GB, but it is the most compatible choice. Even old DOS can read/write fat32.

ext2 and ext3 are basically predecessors of ext4.

By the way, speed is not really a matter of filesystem. Harddrive and Bus (Connection, USB-Port) determine the speed of your file operations.


What does the [DEFAULT] written in the beginning of some files indicate and mean?

The [DEFAULT] in the file you posted in comments is part of an INI file configuration and in that context is called a "section" and can contain 0, 1 or more keys or properties (ie. in the format name=value) (but not other sections).
From the link:

Sections
Keys may (but need not) be grouped into arbitrarily named sections. The section name appears on a line by itself, in square brackets ([ and ]). All keys after the section declaration are associated with that section. There is no explicit "end of section" delimiter; sections end at the next section declaration, or the end of the file. Sections may not be nested.

Regarding Nova itself you can have several other sections (and it also explains DEFAULT):

Sections
Configuration options are grouped by section. The Compute config file supports the following sections.
[DEFAULT]
Almost all of the configuration options are organized into this section. If the documentation for a configuration option does not specify its section, assume that it should be placed in this one.
[cells]
The cells section is used for options for configuring cells functionality. See the Cells section of the OpenStack Compute Admin Manual for more details.
[baremetal]
This section is used for options that relate to the baremetal hypervisor driver.
[conductor]
The conductor section is used for options for configuring the nova-conductor service.
[trusted_computing]
The trusted_computing section is used for options that relate to the trusted computing pools functionality. Options in this section describe how to connect to a remote attestation service.

Regarding the coloring: it is more than likely that the editor you use is aware of INI file configuration and understands "sections" and "keys/properties".


In the manual page for hexdump, there is an entire section dedicated to the structure of the format strings (search for "A format string contains any number of format units").

To get the output you are after, the following invocation should do the trick:

hexdump -e '7 2 "%04X:" 1 2 "%04X\n"' input_file

The format string here has two parts.  The first is repeated 7 times, formatting two bytes at a time formatted with "%04X:" (four hexadecimal digits with zero padding, followed by a colon).  The second part is repeated once only and takes two bytes formatted with "%04X\n" to complete the line of output.  This process is then repeated as more data is read from the input file.


OK, I started to figure it out. Part of it was related to installation issues. Mainly, a logout is required before the IME is functional!

How to completely uninstall/disable Korean input: I uninstalled Nabi the same way I installed it: via Ubuntu Software Center. Languages can be enabled/disabled via "System Settings" > "Language Support".

How to identify which IME I'm using: I uninstalled Nabi, so now I'm pretty sure IBus is the IME being used.

How to tell which input mode the IME is currently in (Korean Hangul or English 'Roman'): The IME does overlay a status panel above other windows. However, it won't be enabled/visible until after a logout. The IBus keyboard icon in the panel also changes to a Korean-design icon when in Korean Hangul input mode.

How to switch between Korean Hangul mode and English 'Roman' mode: The keyboard shortcuts are configurable from IBus preferences. By default, Ctrl - Space. The keyboard short-cuts do not work until after a logout has been made.

... and I guess the random switching to Korean mode was a bug because the IME was in a weird state before logout.


How to use USB connection for Internet from a PC to a cellphone?

The answer may not work on your phone. The following worked on my phone

My phone was Google Nexus 6P running factory standard Android 8.x Oreo

This process is called USB reverse tethering. Not all phones support it. Some Android phones have to be rooted for this to work. There are some guides in the links below.

https://forum.xda-developers.com/showthread.php?t=2287494
https://www.howtogeek.com/214375/how-to-reverse-tether-an-android-smartphone-or-tablet-to-your-pc/

You may need an app on your phone. I didn't need it.
https://medium.com/genymobile/gnirehtet-reverse-tethering-android-2afacdbdaec7

My phone is not rooted. This is what I did:

First, find the MAC address of the USB port you will use

Connect your phone to your PC using an USB cable.

Turn USB tethering on in your phone. This will use your phone's
mobile data to connect the PC to the Internet. This is not what we
want, but this will give us the device address we will use later.
Open the Network Manager edit window from the Network icon on the
top right corner.
Highlight the USB connection. It may be called Ethernet Connection
1 or Ethernet Connection 2.
Click on the Edit button and go to the Ethernet tab.
Copy the information in the Device field:

Press cancel button to get out of the Network Edit menu. Do not
close the Network Connections window yet.
In your phone turn off USB tethering.

Second, setup a new network connection

Click Add in network connections:

Give the new connection a new name if you want.
Go to the Ethernet tab and paste the device information you copied.
Go to the IPv4 Settings tab and select Shared to other computers:

Save and close network connection windows.

Third, Test with your phone

In your phone, turn off mobile data, and WiFi while connected by
 USB to the PC.
Surf the web and use other Internet connected apps.

It looks like the USB port gets a random Ethernet MAC address every time it is plugged in. If this is the case, you will have to first find the MAC address and then edit the saved settings every time you want to do this.

Hope this helps


Error when Installing java 8 on ubuntu 15.10

The following commands are illustrated in details here
Install Oracle Java 8 / 9 in Ubuntu 16.04, Linux Mint 18

Simply, steps are:

Add the PPA. Open terminal (Ctrl+Alt+T) and run the command:

sudo add-apt-repository ppa:webupd8team/java

Update and install the installer script

sudo apt update; sudo apt install oracle-java8-installer

Check the Java version: To check the Java version after installing the package, run command:

javac -version

Set Java environment variables

sudo apt install oracle-java8-set-default


Alternative to software for Windows phone

you could try running zune through Wine, perhaps that will work.


The version of Python that Ubuntu ships with is still there, it just doesn't have priority in your path, because /usr/local/bin/ trumps /usr/bin/. And that's poisoning your entire system.

The best option at this point is do the opposite of what you did to create /usr/local/bin/python3. We don't have any detail on what's happened here so if that's a symlink you've created, delete it, or if it's a real binary you've compiled or extracted, take the appropriate action.

If you want Python 3.6, install it in a different environment. Don't attempt to replace the system version. Ubuntu needs its version of Python to do Ubuntuey things. There are tools like virtualenv that allow you to map python and python3 to whatever version you like, and install Python packages without breaking Ubuntu's.

If you want a supported version of Python 3.6, it's available in 17.10, though you'll need to upgrade Ubuntu again in ~9 months.


blank screen after upgrade from 11.10 to 12.04

I would try a fresh install from a cd or USB drive. my old Dell laptop messed up after restart. now I have to do a fresh install. its probably not necessary but from windows you could format the Ubuntu partition first.

UPDATE
As an alternative solution, maybe you don't need to format the partition. Perhaps you could just install a fresh longside copy and then copy what you need from the home folder in the old installation.


I had the same problem. It resolved itself when I upgraded to Jewel. The release notes state that Jewel (the latest version) is the first release where Ceph FS is declared stable, but you can only have one metadata server.

  This is the first release in which CephFS is declared stable! Several features are disabled by default, including snapshots and multiple active MDS servers.


What MAME UI frontends are available for Ubuntu 12.10?

I've tried Gnome Video Arcade, and it also didn't list any ROMs. After investigating, it turned out that one of my ROMs was corrupted, and that prevented GVA from showing any ROMs at all!

So, care to do a little test?

Backup your current MAME config/rom folder:

mv ~/.mame ~/.mame.bak

Recreate it with default settings:

mame
mkdir ~/.mame/roms

Copy a single game to the default roms folder, and test it with no launcher:

cp /path/to/roms/for/example/rastan.zip ~/.mame/roms
mame rastan

If that works, great!

Now delete (or backup) the GVA database so it is re-created from scratch, and test it:

    rm -rf ~/.local/share/gnome-video-arcade
    gnome-video-arcade

I did this, and it worked nice. Then it was a matter of finding and deleting th offending ROMs and rebuild my MAME settings.


Installing Nvidia Drivers Breaks Computer

Try ctrl+alt+f1 before logging in graphically. It will bring up a terminal. In that terminal after you type your login name and password type startx and it should display any errors causing you not to be able to log in. If you are able to log in I would definitely consider opening up synaptic and reinstalling your Nvidia driver. sudo dpkg --configure -a (configure pending packages) at the terminal before login might help in this case as well.


How to use clock to run program on time?

Alarm Clock (alarm-clock-applet) in the Ubuntu Software Center provides an easy way to execute certain commands at certain times on a repeating schedule.

I imagine your commands executed at each alarm would look something like this:
banshee --hide --stop; banshee --hide --play <Your .mp3 filename and path here>


How do I get my Canon Pixma IP1500 to work with 12.04?

sudo add-apt-repository ppa:michael-gruz/canon-trunk
sudo apt-get update
sudo apt-get install cnijfilter-pixmaip1500series

The source


Grub menu working but hidden, can't make it visible

I had exactly the same problem.
After trying several solutions, one did the trick (explaining with details in case someone else needs it):

Edit /etc/default/grub by running in terminal while in the correct folder:
sudo gedit grub

Uncomment the line #GRUB_TERMINAL=console. The correct version shall be:
GRUB_TERMINAL=console

Save the file.

Run in terminal:
sudo update-grub

Restart. GRUB menu shall appear now.

Note: I don't know why but graphical terminal wouldn't work. The console is a bit uglier but I don't care.


Is there software that can fill PDF forms?

Xournal will allow you to draw/write anything on the top layer of any PDF document and then export it back to PDF. It doesn't allow to actually fill PDF forms, but if writing text / drawing on top of your PDF is enough for you, you may find it useful.

To install from terminal, use the following command:

sudo apt-get install xournal


How do I pin my favorite folders in Ubuntu dock like in Windows?

Follow the steps below.

Create a .desktop file (say custom-filemanager.desktop) in ~/.local/share/applications. You can do this by running the following command in Terminal

touch ~/.local/share/applications/custom-filemanager.desktop

Open the .desktop file using a text-editor, for example by running

gedit ~/.local/share/applications/custom-filemanager.desktop

Add the following lines to the file:

[Desktop Entry]
Name=File Manager
Comment=Access and organize files
Keywords=folder;manager;explore;disk;filesystem;
Exec=nautilus --new-window %U
Icon=org.gnome.Nautilus
Terminal=false
Type=Application
Categories=GNOME;GTK;Utility;Core;FileManager;
Actions=new-window;open-downloads;

[Desktop Action new-window]
Name=New Window
Exec=nautilus --new-window
[Desktop Action open-downloads]
Name=Open my Downloads folder
Exec=nautilus /home/YOUR-USER-NAME/Downloads

Replace YOUR-USER-NAME by your user-name in the last line.
Save the file.
Click on "Activities" and search for "File Manager". It should appear.
Right click on the "File Manager" and select "Add to Favourites". It should be added to the dock.

Now if you right click on the newly added File Manager icon in the dock, you should see a "Open my Downloads folder" option which should work as expected.

Similarly you can add shortcuts to other locations by adding new Desktop Actions and adding the name of the action to the Actions= line. For more info see this.


This should make it

#!/bin/bash
#Run ./x.sh username password
crypting=`perl -e 'printf("%s\n", crypt($ARGV[0], "password"))' "$2"`
useradd -m -p $crypting -s /bin/bash $1

I made something like this a while ago, when I was bored

#!/bin/bash
#Run ./y.sh username password
crypting=$(perl -e 'print crypt($ARGV[0], "password")' $2)
randomid=$(echo $[ 1000 + $[ RANDOM % 10000000 ]])
mkdir /home/$1
echo "$1:$crypting:16760:0:99999:7:::" >> /etc/shadow
echo "$1:$crypting:$randomid:$randomid:$1:/home/$1:/bin/bash" >> /etc/passwd


Red5-Server intall fails on Ubuntu 14.o4

this is bug see here.
you can install it manually .you can follow step explained in my another answer
how to install red5


16.04 Headphones detected but not working properly

Hy,

I had a similar effekt (hearing a short spark) when i first tried headphones (16.04 notebook here). I had to change Soundsettings -> Play sound through -> Headphones Built-in Audio, and change the Output volume to a pretty high level.

I have however no experience with alsamixer, if this was your concern.

In the end i used a audioplayer (vlc) and a song i knew, as a reference, to avoid having to go Test sound, as changing the Outputvolume did not regulary produce a signal.


If you are using

BIOS version 1.6.0 or 1.7.0
RAID Ctrl SAS 6G (D3116C) or (D2616) or (D2607)

then let's try "ghes.disable=1" parameter as install option.

You press F6 and Ecs at the installation booting menu, then you can put the parameter.

This information comes from Fujitsu official page (in Japanese)
http://jp.fujitsu.com/platform/server/primergy/software/linux/products/distribution/pdf/rx200s8-non-support-os.pdf


you can install the latest version of Ubuntu, but use a different desktop enviorment beside the default (unity). there are lots of great desktop enviorments like xfce, which are faster, and functional.


Reinstall the version of the old reader via sudo command in the terminal or thru the browser if that's how you got it. Once you install it you need should go thru the software centre and uninstall it from there and if that doesn't work then try sudo .... You could also just change the name of the application I'm assuming by its .jason or json file ?? I know that works via windows and or you could find the package in your system folder and try to do it from there however I would use the first two and I strongly thing the last shouldn't be used becuase it may cause instability on the system if you remove bits an peice instead of chunks ... Have you checked to make sure the package name is correct if you have two of the same application I wouldn't think they could run at the same time using the same package name. Also just thought of it : have you tried removing both thru the software centre ??? Try removing the new and then the old or via versa ..

A wild guess also check your system for viruses some are cross platform and adobe reader would be a good way to sneak in a virus.....  And yes I know you said that you had downloaded it from there website but maybe it was a very good phishing version??? It's happened to me before with avg


How to change hardware for my Ubuntu server 16.04

If you don't want to use a tool like clonezilla, then what you can do is:

take a live or rescue disk or USB stick
boot from that
partition the disk of your new computer (maybe take a hint from the partition setup on your old computer)
either attach your old disk to your new computer or vice versa or connect both computers on a network
then copy the contents of the filesystems on the old computer to the new one - see here: https://superuser.com/questions/307541/copy-entire-file-system-hierarchy-from-one-drive-to-another
once the content is copied make the system bootable
make sure /etc/fstab is correct (i.e. either contains the correct blockdevice UUIDs or contains /dev/sdaX style block device identifiers)


Brain f*rt! Right Click on the video clip, Properties, Video and uncheck "Maintain Aspect Ratio" (Normally only create videos once a year, oops!).


I installed Unity Hub and Unity but I have to run hub using the DL file. Can I make it appear in apps or pin it to dock somehow?

I have the exact same problem, can't find how to open the Hub as it does not appear in my list of applications or anywhere else. What I did was the following:

I saved unityhub.appimage in my unity folder.
I then set it up to open when the system starts so it goes in the system tray and is available anytime. (I do this by going to "Session Settings > Autostart > Add")

It's not the best but it works for me, I hope this helps.


The top bar of the desktop environment is called the panel.


Have you tried sudo poweroff? Does it have the same problem?

If yes try this:

See /etc/init.d/rc and change concurrency=none.
Reboot.

This may help.


How can I save frames from an IP camera to disk on demand?

I don't know whether this is the best tool, but did you have look at Zoneminder?


How can I workaround the XFCE4 power manager being broken?

I had this problem, i unchecked "Power Manager" from "Application Autostart" list in Settings -> Session and Startup and added another application with this command xfce4-power-manager --no-daemon then i have not have this problem yet.


How to setup deja-up (backup) with "copy" cloud service?

I wonder if it would be possible to set the deja-dup backup directory as the 'copy' folder in /home/username/copy? Admittedly there's no way yet to automatically sync unless you download the copy app but apparently they're working on a .deb package.


How to allow non sudoers users to run a script that does root operations

I am not familiar with Postgres enough, but I see at least 4 options:

Change permissions of /opt/expe with chmod to allow all users create files within this directory.
Create a separate group for the users which need to write there and change /opt/expe group permission with chmod to allow this group write there.
Create a separate group and add sudoers rule to let them execute this script as described for example here: How can user mount an encrypted file container in VeraCrypt?
Use label security for fine-grained access control. Here is brief description of security labels and some further links: https://unix.stackexchange.com/questions/53028/what-are-ext4-security-labels

Please bear in mind that the permission to create/remove files is a property of the directory and not the file itself.


Error when starting Redis server: "Address already in use"

I had this same problems, but I forgot that redis persists. If you get this error, try this command:

redis-cli ping

And this solved my issue:

[root@tannetto tannetto]# ps -ef |grep redis
root      4871  4836  0 11:07 pts/0    00:00:00 grep redis
redis     4995     1  0 Jun23 ?        04:21:50 /usr/bin/redis-server *:6379

After finding redis, kill -9 it!

[root@tannetto tannetto]# kill -9 4995
[root@tannetto tannetto]# service redis restart
Stopping redis-server:                                     [  OK  ]
Starting redis-server:                                     [  OK  ]
[root@tannetto tannetto]# service redis status
redis-server (pid  4919) is running...


Install Brother MFC295CN drivers to Ubuntu

You have to follow the instructions on this page. I installed a Brother HL2250DN just one hour ago and it works perfectly.

Because the instructions are a bit hard to follow, here the summary for Ubuntu (with updated instructions for cups):

(0. If you are a 64-Bit Ubuntu user:)

sudo apt-get install ia32-libs lib32stdc++

1. Turn on the printer

2. Download the LPR and cupswrapper driver from this page (you need the .deb packages).

3. Open a terminal by pressing CTRL+ALT+T.

4. Install the LPR driver

In the terminal type dpkg  -i  --force-all  downloaded-lpr-driver where "downloaded-lpr-driver" is the filename of the downloaded deb for the LPR driver (something like mfc295cnlpr-1.1.3-1.i386.deb)

5. Install the cupswrapper driver

In the terminal type dpkg  -i  --force-all  downloaded-cups-driver where "downloaded-cups-driver" is the filename of the downloaded deb for the cupswrapper driver (something like mfc295cncupswrapper-1.1.3-1.i386.deb)

6. Test your installation

dpkg  -l  |  grep  Brother
should show both drivers to be installed.

7. Setup cups

Point your Browser to http://localhost:631/printers and click on your printer. In the Administration dropdown choose Modify Printer. The next step wants you to choose the connection type.

If you're using USB to connect the printer, the connection should allready be set to something like usb://Brother/(your printer's model name). If your Printer is not listed, go to http://localhost:631/admin and add your printer.

If you're using a network connection, choose from Discovered Network Printers or if your printer was not discovered, select "LPD/LPR Host or Printer" or "AppSocket/HP JetDirect" and insert lpd://(Your printer's IP address)/binary_p1 with the correct IP of your printer.

See these examples for working configurations.


I found the answer. Use the command metacity --replace. I am surprised that I didn't recieve a response to such a simple question! Well, at least I earned the tumbleweed badge :)


How to install Telegram Desktop in Ubuntu 14.04 LTS

How to install Telegram Desktop in Ubuntu 14.04

Download the Telegram Desktop client and extract tsetup.0.6.15.tar.xz. You can easily do this in the file manager (nautilus). Just right-click the file and click extract here. Now you have a folder called Telegram.

Move this folder to /opt. You can do this using the file manager, but you'll need to start it with root privileges. You can do this by typing the following in a terminal: (you can find the "opt" folder in "computer")

sudo nautilus

After the move, double-click the telegram binary /opt/Telegram/Telegram. The last thing we need to do is add Telegram to the "applications" menu. This happens automatically if you right-click the icon of the running app and choose "lock to launcher".

Other options for using telegram in Linux

Telegram is also available as:

Google Chrome app
web-app
scope, and other platforms.

You can find different alternatives here: https://askubuntu.com/a/456121/172367


Is it possible to execute an action by double clicking on the Desktop?

I'm guessing you mean by clicking on the desktop itself, rather than an Icon on the desktop (the latter can be done just by having the script in your desktop folder...)

If you're willing to compromise a little, using CCSM

apt-get install compizconfig-settings-manager

The 'commands' plugin allows you to bind commands (like running your script) to events. Under the 'Button Bindings' tab you can assign your command to when you Click while your mouse is on one of the edges. I appreciate this isn't the complete solution, but as you can select all of the edges, it'll almost do what you want.

Hope that gets you some of the way.


how would I run a script or application when idle?

Two ideas:

nice

Run your program with a really low priority in the background. Use the nice command for that

nice -n 19 your_command &

19 is the lowest priority. You could create an autostart entry for that in ~/.config/autostart/
This works best for CPU intensive tasks, not IO intensive ones.

A disadvantage is that it's always running.

dbus hook

Gnome screensaver fires a dbus event; when this event is fired, you could invoke a script.

See How do you get Ubuntu to automatically run a program every time the screen is unlocked? on superuser.com.

I have not tried this though.


How often is the time/date updated automatically?

First of all, this is a must-read for those needing to keep time consistent in VMs:
Timekeeping in Virtual Machines

  How often does the date/time get checked when Ubuntu is set to do it automatically?

That depends entirely on how you do it, as there are multiple ways to keep your time in sync:

ntpdate using cronjob
ntpd
VMware tools
something else that I don't think of right now

I recommend using ntpd. In that case, the poll interval is variable:

  By default, ntpd runs in continuous mode where each of possibly several external servers is polled at
  intervals determined by an intricate state machine. The state machine measures the incidental
  roundtrip delay jitter and oscillator frequency wander and determines the best poll interval using a
  heuristic algorithm. Ordinarily, and in most operating environments, the state machine will start
  with 64s intervals and eventually increase in steps to 1024s. A small amount of random variation is
  introduced in order to avoid bunching at the servers. In addition, should a server become unreachable
  for some time, the poll interval is increased in steps to 1024s in order to reduce network overhead.

Source: ntpd manpage


Deja Dup Backup to Cd/Dvd Possible or Not?

To backup through deja-dup to a CD or DVD, change the backup location to local folder and select choose a location (approximate translations), then choose your CD/DVD in the location.

Thanks, mjchopperboy


VM Player Ubuntu upgrade from 12.04 to 16.04 failed - entering into emergency mode

If I get you correctly your trying to upgrade Ubuntu from 12.04 to 16.04 in a virtual machine. I don't think that's possible in a Virtual device, only real installs can get upgraded. You have to store those files using a folder in you host system, then install the new version using a newly downloaded Ubuntu 16.04.


I noticed this on my own system, running Ubuntu 18.04 "Bionic" with the default GNOME desktop. Both Audacity and GIMP had this problem.

On my system, it was a problem with the Adwaita and Radiance application themes. (I also saw that some other themes I switched to were much worse.) You can easily change GNOME themes by installing and using the gnome-tweaks tool.

I believe the problem was caused by installing several desktops (cinnamon, Kubuntu, Mate, others) on my system, and apparently especially Kubuntu causes a theme conflict. Here's the askubuntu question that finally helped me discover the fix.

On my system I fixed the problem by removing Kubuntu

$ sudo apt remove kubuntu-desktop kubuntu-settings-desktop
$ sudo apt autoremove

(I also used Synaptic to remove every package with "kde-" in the name or description.)

Then I reinstalled the Ambiance and Radiance theme files AND removed the two .gtkrc files in the home directory installed by KDE:

$ sudo apt install light-themes --reinstall
$ rm ~/.gtkrc*

By the way, the first workaround I originally used was to install the snap versions of Audacity and GIMP, which was a quick way to get my project done. (In 18.04 the snap packages don't respect the desktop themes, though I believe that's being addressed and may not be true in later releases of Ubuntu.) However, I created a fresh Virtualbox installation of Ubuntu 18.04 "Bionic" and didn't see the problem there, so I knew it was something corrupted in my main installation.

Just in case reinstalling the themes doesn't help, note that a similar problem afflicted Audacity several years ago.


Laptop flashing/blinking in between on Fresh Ubuntu 16.04 install via USB

This is long running bug of Intel driver https://bugs.launchpad.net/xserver-xorg-video-intel/+bug/1432194

Let's try different desktop environment, like MATE. Some guy said it works.


Ubuntu 13.10, kernel 3.11 blank screen issue with hybrid graphics

Turns out that everything was more or less fine, just that the screen brightness upon boot was set to 0. I have no idea why this change in behaviour coincides with going to a newer kernel, but at least now everything works when I just increase the screen brightness.

Next step: Figure out how to make it boot with full brightness.


Pair Bose QuietComfort 35 with Ubuntu over Bluetooth

It seems the Bose Quiet Comfort 35 does has issues with pairing with Bluetooth LE (Low Energy).

Get back to a clean state

I would recommend to clean up you past attempts to pair:

On Ubuntu, remove the headphones from the Bluetooth paired list.
On the headphones, hold the switch in Bluetooth pairing position for 10 seconds to delete all paired devices (You'll get a voice confirmation).
If you can, deactivate Bluetooth on other surrounding devices to make sure they won't interact.

Deactivate Bluetooth LE

Edit Bluetooth configuration file:

sudo nano /etc/bluetooth/main.conf

Replace:

#ControllerMode = dual

with:

ControllerMode = bredr

Restart Bluetooth:

sudo service bluetooth restart

Pair

Make sure the headphones are in pairing mode.
Pair with System Settings > Bluetooth
Select & test the headphones in System Settings > Sound. You may want to choose High Fidelity Playback (A2DP Sink) for high playback quality.

Reactivate Bluetooth LE (optional)

As it is only the pairing that has to be done without Bluetooth LE, once it is paired you can go back to the original configuration:

sudo nano /etc/bluetooth/main.conf

Replace:

ControllerMode = bredr

with:

#ControllerMode = dual

Restart Bluetooth:

sudo service bluetooth restart

Troubleshooting

If you have issues connecting back after disconnecting/rebooting:

Make sure you have the computer and Bluetooth turned on before the headphones.
If Connection is grayed out in System Settings > Bluetooth, you can use the Bluetooth menu in the menu bar (next to the clock) to do Connection On/Off.


Different appearance between gtk3 and gtk2

I am absolutely certain this is a theme issue. When you do an update, depending on what repositories you have added, your GTK 3.x version can get updated making existing GTK3.x themes incompatible due to changes with GTK 3.x styles.

What GTK version are you using? Can you please run: dpkg -l libgtk-3-0 and let us know?

The fix for this is to create a gtk-3.xx folder in the theme folder of your theme while replacing the .xx with the version number of GTK, for instance gtk-3.20 and create a file called gtk.css and add the correct settings but doing this manually is tedious so you need to find an existing one that matches your version of GTK and edit that one. You can start with downloading the Arc theme.

Here is an example:

When GTK gets updated, some CSS property tags get replaced with different tags.


run 64 bit version on 32 bit operating chip

Nothing is impossible.

That said, there is no reasonable argument to support wanting to run a 64-bit OS on a 32-bit processor.

The emulation overheads alone will fully negate any possible / theoretical advantage over just running 14.04 LTS (32-bit).


I want to host webserver befind Wi-fi router which is using Static IP.

The trick here is to use dynamic dns to give your external ip from your cable modem a name. Then you need to open a port on your wifi router to pass through to the Ubuntu box. Please note that many if not all ISP's block port 80 from being accessed.

Here's some helpful docs for you:

Dynamic DNS: https://help.ubuntu.com/community/DynamicDNS

Port forwarding your router: http://portforward.com/


will ubuntu 13.04 with gnome work on a dell optiplex GX 260

For future postings when asking about compatibility, please include your hardware specs so that we can determine the best course of action for you to follow. That said..

That Dell is an old system (c. 2002) and I would recommend using an alternate 32-bit distribution such as Lubuntu or Xubuntu that have leaner DE's (Desktop Environments) than Gnome. I might lean towards Xubuntu using the 12.04 LTS release as this will have current security updates available for a few more years; Lubuntu does not offer an LTS version at this time.


How do I change where PCmanFM mounts partitions?

Normally PCManFM mounts partitions to /Media/Username/Partition-Label. If you change the partition label it will then mount under the new name.

Eg: /Media/Username/Example could be changed to /Media/Username/Changed.

Steps:

Step #1

In PCManFM unmount the partition for your external drive by clicking the unmount icon.

Step #2

Go to the main menu, accessories, and click Disks.

Step #3

In Disks click on your device (from left hand side menu), then under volumes click on the partition so it's highlighted, and then click the cog beneath it and choose "edit filesystem".

Step #4

Change the partition label as desired, and click "change".

Step #5

Re-open PCmanFM and you will see it mounted under the new name.

Screenshot links are dead.


sudo passwd -l root is the command you run if you want to disable direct root login. It is a good thing. You do not want to enable root login. (By this I mean it's impossible to log in from a proper login prompt or directly over SSH)

You can still "get root" by running sudo su from your normal user (assuming they're in the admin/sudo group), or you can run single commands as root by prepending them with sudo.

Anyway, /var/www is in the www-data group so if you run:

sudo usermod -a -G www-data $USER  # add the user to the www-data group
sudo sudo chmod -R g+w /var/www  # allow the group to write

After you log out an in again, you should be able to write in /var/www


Better file previewer than Gnome-Sushi in 13.10?

This may not be what you wanted, but...

How to install gloobus previewer in Ubuntu 13.10

This installs the recent one for 13.04 (probably)

sudo add-apt-repository "deb http://ppa.launchpad.net/gloobus-dev/gloobus-preview/ubuntu raring main"
sudo apt-get update
sudo apt-get install gloobus-preview gloobus-sushi

If it needs libgtksourceview-3.0-0, you can get it from here, and install (the 32bit version) with:

wget http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu/pool/main/g/gtksourceview3/libgtksourceview-3.0-0_3.7.90-0ubuntu1~raring2_i386.deb
sudo dpkg -i 'libgtksourceview-3.0-0_3.7.90-0ubuntu1~raring2_i386.deb'


Brightness Control : Asus X453MA : Xubuntu 14.04

Use keyboard shortcuts to run xbacklight commands with the options to reproduce Fn+F6 and Fn+F5 feature keys on actual keyboard, without using Fn key.

To increase brightness by 10%: xbacklight -inc 10

To decrease brightness by 10%: xbacklight -dec 10

First, run the suggested commands above in the terminal. After you have confirmed these commands work on your machine, then you can proceed to add keyboard shortcuts for these commands.

In Xubuntu 14.04, the steps to add keyboard shortcut as follows.

Go to Settings Manager - Hardware > Keyboard
Select Applications Shortcuts and click Add.
In the first dialog window, enter the suggested command (one at a time) and click OK.
In the next dialog window, press keyboard keys of your choice to be assigned for the command.

Once you have pressed keyboard keys of your choice, the dialog window will close automatically and the new keyboard shortcut will be registered. Repeat the steps for the other command.

Do not use Fn key because that will not work. Suggested keyboard shortcuts as follows.

To increase brightness: Shift+F6

To decrease brightness: Shift+F5

For Asus laptops, which may vary by model, F5 key has icon for dimming the screen and F6 key has icon for brightening the screen. Therefore, these keys are better reused with one of modifier keys (Shift, Ctrl, Alt, Super) to give similar experience to adjust the brightness. Although, this is a matter of preference.


Nautilus crashing when running gksu nautilus

If Nautilus crashes, chances are this is because of

1) nautilus-open-terminal package, so remove it:

sudo apt-get remove nautilus-open-terminal

2) You can try to remove ubuntuone-client-gnome and keep nautilus-open-terminal

sudo apt-get remove ubuntuone-client-gnome

It is a way to speed up nautilus too if you don't need it.

Eventualy try also :

gconftool-2 --type bool --set '/apps/ubuntuone/nautilus/show-location' false

https://bugs.launchpad.net/ubuntu/+source/nautilus-open-terminal/+bug/865115
For more.


How to append text to file every morning?

Write

#!/bin/bash
date +%Y-%m-%d >> /path/to/file

Save that in a file under /etc/cron.daily/ and make it executable. It's important that the file does not have an extension.

The files in /etc/cron.daily/ are run daily by anacron in the morning (not exactly 7am, but around then) or during boot if it hasn't already been run that day.