Samba is not sharing NTFS filesystem folders. (Kubuntu 20.04)

I found the solution.
Adding this line into the [global] section of this file /etc/samba/smb.conf  solved the problem.

usershare owner only = false

After adding this line the Samba worked perfectly.
But if you having problem by accessing from another machine. Then you also need to add this line to the [global] section of /etc/samba/smb.conf

client min protocol = NT1

or

client min protocol = CORE

So now it looks like this:


Cannot SSH/SFTP to remote server without using another remote server

Yes that is possible.
I have the following setup which works, but there might be easier ones.

In the file ~/.ssh/config, add the following lines:

ControlMaster auto
ControlPath   /home/yourusername/.ssh/tmp/%h_%p_%r
Host A
  HostName hostname.of.server.a

Host B
  ProxyCommand ssh -e none A netcat -w 5 hostname.of.server.b 22

You have to replace yourusername, hostname.of.sever.a and hostname.of.server.b
After that, you can (in Nautilus) go to Places->Connect to Server (its actually File->Connect to Server on my machine). And then enter B.
That should be all to see the server B.


Is there any way to use microsoft office in ubuntu without using wine? or any other alternative similar to microsoft office which uses the same format

You can't use Microsoft Office in any way without a license ... It is payware. You need an windows emulator like wine to run Microsoft .exe files on any Linux.
You can use LibreOffice. It reads and writes MS-Office format files. LibreOffice is free software.


For that particular while loop (using getopts) you would usually put it in a shell script and then call the script with your options/argument(s) e.g.

#!/bin/bash

while getopts "f:t:d:g:o:p:b:q:r:" opt; do
  case "$opt" in

  f) fan=${OPTARG}
  ;;
  t) echo "doing somthing with option t = $OPTARG"
  ;;
 esac
done
shift $(( OPTIND - 1 ));

then make it executable

chmod +x yourscript.sh

then run it as

$ ./yourscript.sh -t 3
doing somthing with option t = 3


How do i revert back to windows vista from ubuntu 12.10 on a Packard Bell laptop

It sounds like the hard drive was wiped clean before the Ubuntu install. If this is the case, it will not be possible to do a system restore as the recovery partition is non-existent.

The only way to get Vista back would be to order a new set of recovery disks. How easy this process is varies from supplier to supplier.

It looks like you will have to contact their customer support:
http://packard-bell-scandic.custhelp.com/app/answers/detail/a_id/16593

Be ready to read the device serial number, etc.


recovering ubuntu in dual boot system with window 10

while bootloading(before showing the Windows logo), try keep pressing left shift button. if Grub is there it will load the grub. If grub loaded then you can access Ubuntu or boot with advanced options and fix broken packages. else you have to manually install grub.


If you already ran "make install" and there were no error, you are probably OK.

"make install" will not do anything to the package information, so you system will still have the old package installed

What it does is install the new software in /usr/local/bin (if you kept the default configuration)

The old software should still be in /usr/bin . By default Ubuntu first check /usr/local/bin

You can check by doing

which hciconfig

in a terminal. it will tell you if you are using the new version (/usr/local/sbin/hciconfig) or the old one (/usr/sbin/hciconfig)

If you feel adventurous, you can remove the executable associated with the old bluez packages


Why does gnome-control-center have png images for a fingerprint reader? Does it have one and can I use it?

Those are there when you need them. You don't need a fingerprint reader for those images being there at all, when you get a fingerprint reader the images don't need to be downloaded and installed.

Those images are provided by the gnome-control-center-data which provides non-architecture dependant files needed for Gnome Control Center to work. The fact that the images are there doesn't mean that you have a fingerprint reader, but that your system will be ready the very moment you install one.


I think this is the issue:

* * * * * env DISPLAY=:0.0 /usr/bin/gnome-calculator

Setting to it to this seems to work:

* * * * * env DISPLAY=:0 /usr/bin/gnome-calculator

The env DISPLAY=:0 tells it to to export to the display :0 - you can find yours under TTY in the output of w

Then run crontab -e as your normal user where you want the application to run, and  paste in this line:

* * * * * env DISPLAY=:0 /usr/bin/gnome-calculator

If you don't want to to crontab -e to edit it using vim, run this beforehand to use nano instead:

export EDITOR=nano ; export VISUAL=nano

Note the asterisks means it will run every minute, every hour and every day, so it will probably get VERY annoying unless you remove it.

If it still does not work, try running this command:

sudo bash -c "echo $(whoami) > /etc/cron.allow"

And, if you don't want to muck around with text files, you can use gnome-schedule instead.

References:

https://help.ubuntu.com/community/CronHowto


Ubuntu 20.04 - How to set a forced shutdown command via termial, that you can't cancel as non-sudo?

Using 'at' to schedule a shutdown at next 11:00 as root
(You might have to install 'at' first: sudo apt install at)
$ sudo at 11:00
[sudo] Password for <user>:
at> shutdown now
at> Ctrl-d

To see root's at-queue:
sudo atq

See man at for other options and parameters.
Cron, as I mentioned too, executes a command at a given time, every time that time happens, like 15 minutes past, every 5. day of the week or combinations of minutes, hours, day, day of week and day of month. This is usefull for commands that have to run at specific times every day, week or month, but not for a onetime command. There at is better.


The default DocumentRoot directory within the XAMPP installation is /opt/lampp/htdocs/. But if you have installed so called Apps or Add-ons (WordPress, MediaWiki, etc.) their DocumentRoot directories will be placed into /opt/lampp/apps/<app>/htdocs (/opt/lampp/apps/wordpress/htdocs, /opt/lampp/apps/mediawiki/htdocs, etc.).

The necessary information could be found in the article Configure Virtual Hosts from section HOW-TO Guides from the default page of XAMPP, which can be found at http://localhost.

In my opinion - under Linux - XAMPP makes the things unnecessarily complicated.

Update: Here is a simple relevant article:

How to setup a Virtual Host locally with XAMPP in Ubuntu


I have only one partition but I want to have one more

You can resize the partition of the bootfiles. You can resize it with livecd. This is the complete guide of partitioning:
Why I'm seeing a lock besides the partition I'm trying to modify with gparted?

After resize, you can add a new partition.


Where is the xorg.conf file in Ubuntu 18.04?

Lot of info in the man pages, try this in a terminal:

man xorg.conf

tldr;

You should find your xorg.conf file or yours config files in one or more of the following directories:

/etc/X11/<cmdline>
/usr/etc/X11/<cmdline>
/etc/X11/$XORGCONFIG
/usr/etc/X11/$XORGCONFIG
/etc/X11/xorg.conf
/etc/xorg.conf
/usr/etc/X11/xorg.conf.<hostname>
/usr/etc/X11/xorg.conf
/usr/lib/X11/xorg.conf.<hostname>
/usr/lib/X11/xorg.conf

Finally, configuration files will also be searched for in directories reserved for system use.

These are to separate configuration files from the vendor or 3rd party packages from those of local administration.

These files are found in the following directories:

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

PS: would you mind sharing your xorg.conf? I'm trying a setup similar to yours. Check my question here


sorry for previously posting an answer without actually answering - I would have made it a comment to the question, but either this feature is disabled here on askubuntu.com or I don't have the permission to comment on questions..

But now I've got a real answer, at least one that worked for me (on my Dell Inspiron 1520):

checked my usb-medium for errors, found one.
checked the md5hash of the iso, was correct.
recreated the usb-media from the iso file, but this time not with unetbootin, but the ubuntu built-in "Startup Disk Creator".
checked the new usb-medium for errrors too, found none.
redid the installation, and now everything works fine.


First please check whether or not atime has actually been used as mount option.
In a terminal type:

mount

This should show you all mounts, including all mount options, such as relatime
This could look something like this:

/dev/sda1 on / type ext4 (rw,relatime)

So the mount options in this example root dir were 'rw' and 'relatime'

If this does not show relatime for your root dir then relatime was not used.
Check that relatime is set in your fstab

cat /etc/fstab

Did you reboot after you changed the setting.
If not, please reboot now.
If that does not help please try

sudo mount -o remount,relatime /

This should manually set relatime.
Check again with:

mount

If this helped, then probably your rootdir used the fstab from initrd to mount your rootdir, in stead of the fstab in your normal filesystem.
Look on the internet or askubuntu to find out how to change fstab in initrd. (Warning, making mistakes in initrd can make your computer not boot)

Please also make sure you understand relatime.
The first time a file or directory is read after it has been written to, the time accessed time (atime) will be updated.
Only the second and later times it is read (after a write), the atime is not updated anymore.
So the way to test is:

Create a file or directory.
Read the file or directory once.
Look at the directory contents
atime should be upodated now
Wait some time
Read the file or directoy again.
Look at the directory contents again.
atime should not be updated now.


ubuntu 12.04, openvpn with network manager issue

I had probably the same problem. I found different 2 solutions searching the web.

Go to IPv4 setting->Routes and check the "Use this connection only..." . [This did not work for me]
The other is to specify a DNS: Go to IPv4, change the Method to "Automatic (VPN) addresses only" , and specify a DNS (for example Google's 8.8.8.8) [Worked for me]


"We are unable to get it to connect to any computer" sounds like the USB is pretty much dead.

But does anything show up on linux/Ubuntu from lsblk or sudo blkid or sudo fdisk -l? If nothing about the usb, that's a big red flag that it's dead.

What are the messages in dmesg or files in /var/log/ (like /var/log/syslog) when it's plugged in? Should have some messages about "new usb device", then if it's able to communicate a message containing something like "/dev/sdc" (or sda, sdd, maybe hdb, hdc...) shortly after. But then it should show up with lsblk or blkid


Is e4rat is still(2016) faster than ureadahead on HDDs?

Let's look what does the beasts do

ureadahead only caches frequently used files, and reads them into RAM on boot.

e4rat consist of different tools, one is e4rat-realloc, which moves around frequently used files so, that their blocks would lay close one to another, reducing movement path of a magnetic head of HDD for loading those files.
And e4rat-preload tool, which does (upon added to kernel parameters) the same job as ureadahead. Interestingly, Archlinux wiki mentions possibility to use e4rat and ureadahead at the same time, though without details. They perhaps meant using ureadahead instead of e4rat-preaload.

Hence for HDDs e4rat would always be faster than ureadahead is. For SSDs, for their random access time is the same as for adjacent blocks, re-fragmentation of files makes no sense. Hence the only tools touching perfomance are e4rat-preload and ureadahead, and for their job is the same, the perfomance would be the same too.
NB: due to SSDs being fast, ureadahead boosts perfomance not that much there. This led to discussion between systemd developers, who're using primarily SSDs nowadays. As it's useful anyway, they asked if anybody wanted to take maintainership for its analog systemd-readahead. Nobody stood up for, and so it was removed from the systemd. So, I'd expect that development of ureadahead and e4rat would slow down too, if it isn't already.


Kubuntu 15.04 Vivid Vervet: Why do GTK apps look ugly?

The new KDE Theme is called Breeze, but there is no Breeze for GTK (yet?).  The old KDE theme is called Oxygen.

Close your GTK apps.

Install Oxygen by:

sudo apt-get install plasma-theme-oxygen oxygen-molecule  \
gtk2-engines-oxygen  gtk3-engines-oxygen

Then go to:

System Settings
Appearance Section
Application Style
Gnome Application Style (GTK)
GTK Themes section
Switch to a different themes for both GTK2 and GTK3, press apply
Switch back to oxygen-gtk


Plymouth boot screen not showing after enabling Nvidia drivers

I don't know if this is the same problem that I had but I found this solution which might help you.

Purple start screen - no splash screen


Routing audio from two different browsers using qjackctl and JACK

use command

pactl load-module module-jack-sink sink_name=voip_in client_name=voip_in

you should get 2nd sink loaded called 'Pulseaudio Jack Sink 01' available in QjackCtl

command can be added to QjackCtl 'Execute script after startup' to load 2nd sink automatically when JACK is started

Also need to change one of the browsers to use new sink in pavucontrol --tab 1 from drop-down list of playback outputs


VMPlayer in ubuntu 15.10 cant compile several modules into the running kernel

Please ensure that you have also added

Run
sudo apt-get install build-essential in your terminal.

These will be needed for all of the VMWare products

VMPlayer 7 has several known patches, which you can obtain and apply from github - the process of applying the patches is pretty easy if you follow the directions closely.

There is a second, and I think probably superior alternative:  Download the current version of VMPlayer (version 12.01) from vmware.com


Ubuntu 16.04 hangs on startup with nvidia 361 drivers

I had this same problem. What fixed it for was to edit the grub configuration.

In /etc/default/grub change the GRUB_CMDLINE_LINUX_DEFAULT line to:

GRUB_CMDLINE_LINUX_DEFAULT="nomodeset quiet splash"

then run sudo update-grub


How do I start a program on my desktop from an SSH session?

That's as easy as telling the program to run on your the default display 0 for your desktop X server, which is normally also 0.

For example, to start shutter, you would execute this from the SSH terminal:

DISPLAY=:0.0 shutter &


ubuntu 16.04.3 stalls on AMD A9-9420 Processor, Radeon R5 Graphics

I had a very similar issue, just today I tried installing Ubuntu 17.10 to see if maybe it would work better which it seems to thus far (have only been testing it out for a couple hours now but haven't had any more issues). Maybe give that a try?


Opening Kubuntu DVD in Windows (EFI) gives message "Wubi doesn´t currently support EFI"

This is a new patch to Wubi introduced with Ubuntu 14.10 that spares users such as yourself who have computers with EFI firmware from installing Wubi only to find that it doesn't work. What used to happen is that the install would have appeared to succeed (in Windows), sometimes after downloading 1GB of data, only to find upon rebooting an error message about wubildr.mbr being corrupted.

Now Wubi checks and helpfully refuses to install, thus saving you a lot of pain. Do a normal dual boot as suggested here: Installing Ubuntu Alongside a Pre-Installed Windows with UEFI

Note:

Wubi.exe is also set to autorun when you insert an (K)Ubuntu DVD in Windows. Even if you don't intend to install Kubuntu using Wubi it will autorun and then terminate with this popup on EFI computers.


How do I install the Google Wave server software?

DJango version? http://code.google.com/p/pygowave-server/

Java: code.google.com/p/wave-protocol/wiki/Installation


How to install wireless-tools exclusively from command line?

wireless-tools is installed by default in Ubuntu 16.10. Verify:

sudo dpkg -s wireless-tools

You should see Status: install ok installed

If not, install with:

sudo apt update
sudo apt install wireless-tools


ATI HD4xxx driver installation problem on 12.04.3

is there any chance you can provide some screen logs or other relevant frame of reference / error messages, so that we can help you?

For example, the proprietary driver will log to a file:

/usr/share/ati/fglrx-install.log

If you could post errors from there..?

cheers

sc.


In regular expressions, [...] indicates a range of characters to match, and (in that context) ^ indicates negation. So [^\"] means any character except literal double quote. So "[^"]*" means a double quote, followed by a sequence of zero or more characters except double quote, followed by the closing double quote.

Note that the backslash escapes are only required because you've used double quotes around the expression - you could simplify that to

grep -o 'temp="[^"]*"' ~/.cache/weather.xml

If you want it to output just the numeric temperature reading, you can use a Perl-compatible RE instead

grep -Po 'temp="\K[^"]*'


There's a specific package for that, install it and run the upgrade:

sudo apt-get install update-manager-core
sudo do-release-upgrade

The upgrade will get you a new kernel, 3.2 in the case of 12.04. This means that all packages installed must be upgraded too, to versions compiled against the new kernel. Since 10.04 is now 3 years old, there might be some relevant changes to the software installed. Say that a particular application uses a different configuration method, after the upgrade you must change the old configuration to the new method.

You can do a search for the relevant packages to check the versions available for 10.04 and 12.04. You can then compare what may have changed between the two.


My Touch pad is not working properly (keeps jumping to the recycle bin)

I had this type of problem.
I fixed was by changing Touchpad Settings from Advanced to Basic on the Bios menu.
It will work for me try it maybe works for you too.


How to install latest Code::Blocks from tar.xz?

You should extract downloaded archive with

cd ~/Downloads
wget https://kent.dl.sourceforge.net/project/codeblocks/Binaries/17.12/Linux/Debian%20stable/codeblocks_17.12-1_amd64_stable.tar.xz
tar -xf codeblocks_17.12-1_amd64_stable.tar.xz

Then install extracted deb-packages:

sudo dpkg -i *17.12*.deb

And finally install missed dependencies:

sudo apt-get install -f

Please note that codeblocks-contrib will be removed on 16.04 LTS and on 18.04 LTS because of missed libhunspell-1.4-0 dependency.

Do not forget to install compiler such as GCC.


On an EFI-based system, boot loaders reside on the EFI System Partition (ESP), but many distributions (including Ubuntu) configure GRUB to rely on configuration and support files elsewhere -- in /boot/grub/grub.cfg in the case of Ubuntu. Thus, if you delete the Ubuntu root (/) partition (or, if you use one, a separate /boot partition), GRUB will remain behind, but won't be able to load a boot menu because its configuration file will be gone.

Since you say you want to re-install Ubuntu, there are a number of ways you can work around this issue:

Delete the GRUB files now, then re-install -- You can use an emergency disk or EFI shell (if your computer provides one built in) to delete the Ubuntu and Parrot OS boot loaders from the ESP. The Ubuntu boot loader would be in EFI/ubuntu on the ESP; you can delete that entire directory. I don't know offhand where the Parrot OS boot loader would be, but it would normally be a subdirectory of EFI on the ESP. Once these files are gone, you can re-install Ubuntu.
Skip deleting GRUB; just re-install -- When you re-install Ubuntu, it will write a fresh copy of GRUB to the ESP, overwriting its old copy. This is likely to be simpler and easier than trying to muck with the existing files. The main drawback is that it won't delete the Parrot OS boot loader (unless that's an Ubuntu derivative, in which case it might have put GRUB where Ubuntu does).
Adjust the boot order -- Many EFIs let you adjust the boot order via a menu in their firmware setup utilities. You can use this feature to raise Windows above the ubuntu entry and whatever Parrot OS created. You can do the same thing with efibootmgr in Linux or EasyUEFI in Windows -- but of course you'd need an emergency disk to boot into Ubuntu to use efibootmgr. (There's an easier way to get into Windows temporarily; see the next bullet point.) The main point of doing this rather than just re-installing is that you could then use Windows for a while before you attempt to re-install Ubuntu.
Boot Windows temporarily -- Chances are you can boot to Windows temporarily by using your firmware's built-in boot manager. You probably used this tool to boot your Ubuntu installation medium, and you'd access it in the same way. (Unfortunately, details of how to do this vary greatly from one computer to another. It's usually done by pressing Esc, Enter, or a function key shortly after you turn on the computer.)

Whatever you do, you should NOT delete the ESP entirely. The Windows boot loader resides there, in EFI/Microsoft/Boot, so deleting the ESP, or even just deleting that directory, will render Windows unbootable until you restore the Windows boot loader using Windows recovery tools.


Library necessaries to build the configuration files

sudo apt-get install intltool libtool

Dependency necessary to compile this plug-ins

sudo apt-get install gedit-dev

Build the configuration file

touch config.rpath
./autogen.sh

Configure and compile

./configure --prefix=/usr
make
sudo make install

If you are using a 64bit distribution, you also need to pass --libdir=/usr/lib64
to ./configure script.

    ./configure --prefix=/usr --libdir=/usr/lib64

With a 64bit distribution, I also had to create two symbolic links, otherwise the plugin would not show up:

sudo ln -s /usr/lib64/gedit/plugins/latex.plugin /usr/lib/gedit/plugins/
sudo ln -s /usr/lib64/gedit/plugins/latex /usr/lib/gedit/plugins/


Those files are explicitly excluded because it will sometimes make either the syncdaemon or libreoffice get its knickers in a knot. If you want to test and see if it works for you to have them synced, remove the appropriate line from the "ignore" configuration option in syncdaemon.conf (I'm not going to point you at it; if you can't figure it out from here, you won't be able to fix it if it breaks).


Is there a command that can be sent into a usb port to request the system's time?

The command that outputs system time is date.

You can use format parameters to output only the time.

Also you can send its output to USB using > redirection.

Example

date +%R > /dev/ttyUSB0

The user needs to be a mamber of dialout group or have some other permissions to be able to write there.

You can use man date to see for other formatting options.


Right-click, new Document, Empty Document. (create it anywhere you like). Name it anything ending with .sh (example: StartupCommands.sh)
Type #!/bin/bash in the first line
(the tricky bit) Type your copy command in the next line. It should look exactly like the line below. Don't forget ' the quotations

cp '/path/to/user_data/somePrefs.txt' '/path/to/software_location/somePrefs.txt'

and the path has to be an "absolute path" (starting from root and all the way down to your files).

...so finally the file should look like this:

#!/bin/bash
cp '/path/to/user_data/somePrefs.txt' '/path/to/software_location/somePrefs.txt'

Right-click your .sh file, Properties, under Permissions, check the box "Allow executing file as program"
open "Startup Applications" (press the start button and search for it)
click "Add"
You can type what you want in the "Name" and the "Comment" fields
click "Browse..." and select your .sh file

done. cheers.

If you need help with step 3 tell me in a comment

Hint for step 3

You can open a new terminal. Drag and drop the somePrefs.txt files (one at a time) into the terminal. What appears in the terminal is the absolute path.


How to compile the latest version of the command-line video download tool - cclive

Compile libquvi

Ok,  to compile libquvi you will need to do the following:

Download the  latest version of quvi from http://quvi.sourceforge.net

Install some necessary packages:

sudo apt-get install libcurl4-gnutls-dev libpcre++-dev libtolua++5.1-dev

Now extract the package you have downloaded

cd ~/Downloads
tar -xvf <package name>
cd quvi-<version>

now run .configure

./configure --prefix=/usr --enable-nsfw --enable-broken

Now compile and install the deb

make
sudo checkinstall -D

i.e. checkinstall will guide you through the create deb and install process - just hit enter to all the questions.

Compile cclive

Ok,  to compile cclive you will need to do the following:

Download the  latest version of cclive from http://cclive.googlecode.com

Install some necessary packages:

sudo apt-get install libboost-dev libboost-graph-dev libboost-iostreams-dev libboost-date-time-dev libboost-program-options-dev libboost-system-dev libboost-filesystem-dev

Now extract the package you have downloaded

cd ~/Downloads
tar -xvf <package name>
cd cclive-<version>

now run .configure

./configure

Now compile and install the deb

make
sudo checkinstall -D


Automount encrypted fs with selfcompiled ZFS

Try to manually enable all the installed parts.

To see what zfs-related services your system has installed:

sudo systemctl list-unit-files | grep zfs

Next, enable all the services. I'm being verbose:

sudo modprobe zfs
sudo systemctl enable zfs-import-cache
sudo systemctl enable zfs-import-scan
sudo systemctl enable zfs-import.target
sudo systemctl enable zfs-mount
sudo systemctl enable zfs-share
sudo systemctl enable zfs-zed
sudo systemctl enable zfs.target

If complaints about things being masked show up on your terminal, force remove all masks:

sudo systemctl unmask zfs-*

You probably don't need this, but for completeness, some older systems have fewer services and prefer update-rc.d:

update-rc.d zfs-import enable
update-rc.d zfs-mount enable
update-rc.d zfs-zed enable
update-rc.d zfs-share enable


How do you remove network server 'servername.local'?

That's not how DNS works. servername and servername.local both point to the SAME server. The .local domain is specified in /etc/resolv.conf with the search local directive.

On MY system,

walt@bat:~(0)$ host bat
bat.localdomain has address 192.168.100.90
walt@bat:~(0)$ host bat.local
bat.localdomain has address 192.168.100.90
walt@bat:~(0)$ less /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
search local

Like it says, read man resolv.conf;man resolvconf (man resolver if you're programming)


QNIX Nvidia Display Issue with 331 Driver and 770

Try using the -r option with cvt:

[~] cvt -r 2560 1440
# 2560x1440 59.95 Hz (CVT 3.69M9-R) hsync: 88.79 kHz; pclk: 241.50 MHz
Modeline "2560x1440R"  241.50  2560 2608 2640 2720  1440 1443 1448 1481 +hsync -vsync

Tried the same as you and screen was dark and had burn-in. Tried this and it finally works, Hooray!

The rest of my xorg.conf followed the blog you linked.

My setup:
GTX 750 ti
NVidia driver 340
Ubuntu 14.04


Dual monitor error on single monitor setup

I was not able to find the cause, but I solved the issue by setting the "Launcher placement" to "laptop" under "display settings".


You can also check it by df -T

Sample output:

Filesystem    Type   1K-blocks      Used Available Use% Mounted on
/dev/hdb1     ext3    19228276  14737848   3513680  81% /
tmpfs        tmpfs      383960         4    383956   1% /dev/shm

You can also try df -hT

From man df:

-h, --human-readable
              print sizes in human readable format (e.g., 1K 234M 2G)
-T, --print-type
              print file system type


Is downloading Ubuntu via the windows installer a better alternative to using Ubuntu within a virtual box?

(Not only) for the purpose of "getting your feet wet" using a virtual machine is perfectly fine. Additional benefit: you can use snapshots to undo things you tried. I definitely recommend that approach.


You need to enable "Animation add-on" option:

Open Compiz setting manager
Check Animation add-on checkbox
open animation ... and do as suggested


GRUB not showing windows 8.1 already installed

Windows 8 does not shut down properly by default. I suspect this is your problem.
In your code I see:

Failed to mount '/dev/sda3': Operation not permitted
The NTFS partition is in an unsafe state. Please resume and shutdown
Windows fully (no hibernation or fast restarting), or mount the volume
read-only with the 'ro' mount option.
mount /dev/sda3 : Error code 14
mount -r /dev/sda3 /mnt/boot-sav/sda3

Try mounting as suggested and run

sudo update-grub


while installing ffmpeg giving error during make

For licensing reasons, FFmpeg does not include all codec libraries. You have to download, compile and install them separately. This is the case for MP3 and H.264 codecs.

A great guide that deals with this can be found here:

Compilation Guide Ubuntu


Error in running webcam using Cheese application on Ubuntu 18.04

You can try uninstalling and reinstalling Cheese.

sudo apt-get --purge remove cheese
sudo apt-get install cheese


Recommended way of packaging a boost::python module?

I finally used distutils (very short setup.py) then run dh_make which sets up debhelper-based (almost empty) debian/rules and most of the rest. Result is here.


Some Steam games won't start up, gameoverlayrenderer.so error

You need the 32 bit libGL drivers (libgl1-mesaa-dri:i386).

You can issue this command via terminal,

sudo apt-get install libgl1-mesa-dri:i386

If you already have it, try reinstalling,

sudo apt-get install --reinstall libgl1-mesa-dri:i386

Restart your computer and try again.

If that doesn't work, check out this: Error loading libGL.so.1


1st, take a look at Linux Ate my RAM to understand how memory management is done by Linux kernel.

2nd, remove all server packages that you don't need, .e.g. apache2, mysql, sendmail etc...

Paste your pstree output so that we can help you to figure out what you don't need.


How to resume install-tl installation for tex live after interrupted download?

I ran into this problem when trying to install TeX Live 2017. The best approach appears to be first downloading the entire TeX Live repo (from a nearby mirror), and then pointing the installer to your local copy.  So first you want to download the files (see the TUG docs):

rsync -a -v --delete --progress rsync://somectan/somepath/systems/texlive/tlnet/ /your/local/dir

Be careful with that command, as it will make an exact mirror by deleting anything in the local directory that doesn't exist on the remote directory! If the download fails, running the above command again will resume the download from the last failed file transfer.

After that's done, you would run the installer like this:

./install-tl -repository /your/local/dir

If you have a very poor connection then you might like to have rsync auto-resume on disconnects, and also resume partial file transfers. I used the following script:

#!/usr/bin/env bash

# remote mirror
MIRROR=rsync://somectan/somepath/systems/texlive/tlnet/
# local directory (local files NOT on the mirror will be DELETED)
LOCAL=/your/local/dir
# flags for the transfer
RSYNC_FLAGS="--archive --delete --timeout=10 --partial-dir=.rsync-partial $MIRROR $LOCAL"

# some colours for output
RED='\e[1;31m'
NC='\033[0m'

# test run (i.e., don't really download or delete anything)
cd $LOCAL
rsync --dry-run --stats $RSYNC_FLAGS

# prompt to check the output
echo -e "\n${RED}Warning${NC}: About to ${RED}delete${NC} all non-mirror files in ${RED}$LOCAL${NC}\n"

# confirmation to continue
read -p "Continue (y/N)? " confirm
if [ "$confirm" != "y" ]; then
    echo "Aborting"
    exit 1
fi

# do the real rsync transfer (and loop until it's finished)
RESULT=1
while [ $RESULT -ne 0 ]; do
    echo "STARTING ($RESULT) @" `date`;
    # add flags to see what's being transferred
    rsync --verbose --progress $RSYNC_FLAGS
    RESULT=$?
    echo "Sleeping for 10 seconds"
    sleep 10
done


How do I Prevent the file manager from opening when I click to open a file from outside the file manager

@MHC Thanks for the links and suggestions. The problem was indeed with exo-utils. I installed it as an easier route to make dolphin the default file manager rather than editing a script. With exo-utils installed. xdg-open and gnome-open they opened the file as a folder and so called up the file manager. However exo-open will open the file straight. When I uninstalled exo-utils then gnome-open and xdg-open worked normally. I also realized that I had to set the files defaults from inside nautlius and not just dolphin if I want synapse to open files by default in my preferred application.


I downloaded Ubuntu but I can't find the ISO file

According to your screenshot you have actually mounted the .iso file and are browsing its contents.

As @ipse-lute correctly pointed out:

  [...]Your uTorrent program is probably set to open the downloaded
  content (either upon completion or by double-click) with Windows
  Explorer, because the ISO file-type is associated to Windows Explorer
  by default.[...]
  Go one level up in Windows Explorer and you will see the ISO file.

Navigate to D:\Ubuntu and there will be a file named ubuntu-16.04.1-desktop-amd64.iso. This is the ISO file you downloaded.

My guess is that you have Hide extensions for known file types ON, thus you cannot see the .iso extension on the file (default behavior on windows).

In order to view file extensions:

Start Windows Explorer, you can do this by opening up any folder.
Click Organize.
Click Folder and search options.
Click the View tab.
Scroll down until you find Hide extensions for known file types,
Un-check it by clicking the check box.
Note To hide file name extensions, check this line.
Click OK


Why is Update Manager getting stuck unless I hit 'q'?

apt-listchanges is a package that does exactly what you describe:

apt-listchanges is a tool to show what has been changed in a new version of a package, as compared to the version currently installed on the system. It does this by extracting the relevant entries from the changelog file, and the NEWS files.
It can be run on several .deb archives at a time to get a list of all of the changes that would be effected by installing or upgrading a group of packages. It can be configured to do this automatically during upgrades using apt.

This package has probably been installed on your system. If you don't want this behaviour, remove the package or change the configuration.


Press Ctrl+Alt+T to go to a terminal and type:

mkdir ~/Desktop

and then press F5 on the desktop to refresh it.


How can I shred all disks but /dev/sda and log the output to a file?

This script should do what you want. Note that it must run as root!

#!/bin/bash
logpath="/home/ben/ProjectsInProgress/ShredLogs"
lsblk -l | grep -o '^sd[b-z] ' | while read f; do
    logfile="$logpath/$(hdparm -i "/dev/$f" | grep -oP "(?<=SerialNo=)\w+")"
    shred -fvz "$f" &> "$logfile"
done

Thanks to @terdon for providing this improved (and hopefully now fixed) version.

Please tell me whether it works, I'm not really motivated to test shredding my own disks...


Steelseries Arctis Pro Wireless on Stereo very quiet

Gaming headsets like the Arctis Pro Wireless support multiple audio channels, one for voice chat in mono, and the stereo output. The volume for the stereo channel is not controlled when using the Settings/Sound volume setting.
But you can use command line alsamixer tool increase the volume for the stereo channel. Open a terminal, launch alsamixer. Press F6 to select the sound card Arctis Pro Wiresless. You should see the following screen:

Select the PCM 1 channel which controls the stereo volume and raise it to a higher value like 90% (use arrow keys left/right to select, up down to increase decrease volume). You can leave alsamixer pressing the ESC key.
This should fix the problem, but you need to save the setting so it's reapplied after a reboot. This can be achieved by running:
> sudo alsactl store


Pidgin script with Python/ Get Focus Signal

Disclaimer: I haven't tested this method

I see you already cover the part regarding to the Launcher API, if not it's quite similar to what you already have done.

About Pidgin integration, looking into the API I've found that Pidgin notify via DBus of almost everything that happens with the client.

Looking carefully you can see there's a list of available signals. One of them is the conversation related ones. One of them is the conversation-updated signal. Detailed by:

  Description:
     Emitted when a conversation is updated.

  Parameters:

  conv:   The conversation that was updated.
  type:   The type of update that was made

Looking into the types of updates that can come with ths signal you find PURPLE_CONV_UPDATE_UNSEEN that is triggered when the unseen state is updated.

So, now all you have to do is to adapt your code to handle this signal.

Edit:

I've tested the method, and it works. In this pastebin is my example code if you want to take a look.


tar command junkfiles how to find it out

If you have extract the tar file to home. You can run

du -ah --max-depth=1 ~/

to figure out which fold take most space.

Or check the tar file with out extract tar.

tar vtf your.tar.gz

If you want to backup your home dir, you can exclude some path like this:

tar --exclude /path -zcvf file.tar.gz /etc /home


Ubuntu Installation: Attempt to mount a filesystem with type ext4 at / failed

Solved the problem.

Brought a new 1TB HDD. But even after completing the entire installation, Ubuntu wasn't booting. I check what was wrong by looking in the boot menu, my Internal HDD was listed in the Legacy boot table. So, I converted my BIOS setup from UEFI to Legacy, made my bootable USB in BIOS/MBR format and started installion.

Rather than selecting 'Something Else' and going for manual partition, I selected 'Erase disk and install' and after seven days of hard work and research, I finally got Ubuntu 16.04 LTS on my laptop.

However, I still don't know if the problem was my HDD or coz my BIOS setup was in UEFI.

But, now it works...


It depends in which shell you are. type itself is a shell buitin, hence if the shell has no builtin called type and there is no executable in $PATH it will throw the error no such file or directory.

For example in csh, there is no type command. Use the which command instead:

user@host:~$ csh
# which cd
cd: shell built-in command.
# exit
user@host:~$


Go to terminal and enter

sudo dpkg-reconfigure lightdm

You'll be prompted with a list of the DMs you have installed, and asked which you want to configure.  You could equally use your newly-installed DM in place of lightdm (eg. gdm3 which is the new default for Ubuntu 18.04) as it lists your choices.


What "flavour" or type of LAN should I be using?

eth0 = Ethernet 0 = Wired connection
ppp0 = Point-to-Point Protocol 0 = Connection to the Internet
lo0 = Loop-back 0 = doesn't connect to any other computer then your own.

Warning: All the below links are provided for documentation purposes only (a.k.a. RTFM).  Don't install anything from these sites, just use the Ubuntu Software center!

If you don't know anything about networking, the easiest to install would be the Very Secure File Transfer Protocol Daemon (Daemon = "server")  For obvious reasons, you'd bind it to eth0 so it doesn't have to go all the way to the Internet to exchange files and you'd have to install it on both machines, turning them both into servers and would access the files from one of the clients to one of the servers with something like FileZilla
The easiest to run would be Samba which turns your PCs into Windows-like servers, allowing you to use the file manager and to just browse files on the other machine (again: if you want both machines to be servers: install it on both.)

However Samba would be a tiny bit more difficult to install.

If I were you, I would start off with 1. and if you get fed up with having to go to FileZilla to exchange files, go on to 2. (or don't if you're happy with it)


When specific string in output, do another command

I found a solution while searching the internet: https://stackoverflow.com/questions/26371665/bash-script-to-read-a-file-and-run-a-command-based-on-a-specific-string

Based on this post, I was able to write a functional script. It certainly can be done better and prettier, but this works for me:

#!/bin/bash

DIR_TO_WATCH=/root
STRING=ATTRIB
WATCHED_FILE=".bashrc"
BRC=/root/.bashrc
ORIG_PATH=<origin-path>
DEST_PATH=<dest-path>

cd "$DIR_TO_WATCH" || exit

inotifywait -qme attrib --format '%f' ./ | while read -r WATCHED_FILE; do
    if grep "$STRING" "$WATCHED_FILE" &>/dev/null; then
        if cp "$ORIG_PATH".bashrc "$DEST_PATH"; then
            sleep 1
            rsync "$BRC" "$ORIG_PATH"
            echo "Bashrc was changed."

        else
            echo "There was an error while copying the old bashrc."
        fi
  fi
done


In the standard Ubuntu desktop, with Gnome Shell, Super+Space is the default keyboard  shortcut to switch between input sources (i.e., different installed keyboard layouts).
If you have more than a few layouts installed, the keyboard shortcut Super+Shift+Space will be valuable to cycle in reversed order through the available input sources.


What piece of the last update could break keyboard switcher, systray, clipboard and Adobe Flash in Xubuntu 11.04?

There have been some problems with GTK in 11.04 - your problems could well be related.

Sidenote: I would encourage you to take most discussion of/problems with development releases to the Natty part of the Ubuntu Forums.


How to get Nvidia Graphic card to work on Thinkpad T430?

I have same problems with my Alienware M17xR4 (intel 4000 and nvidia 675M).

After googling for a while i found that your laptop has only VGA and Mini DisplayPort.
Unfortunately same trick does not work over DpisplayPort (I still get those lags on mouse and while scrolling or watching movies) so this probably will not work for You but it might help someone else.

So far the best solution i found is to run one monitor through VGA

and the second one (2560x1440) through HDMI cable with lowered refresh rate suggested by Linus Torvalds in his g+ post https://plus.google.com/+LinusTorvalds/posts/HQsCY7ErAL4

With this workaround everything seems to work fluent even movies.


Word selection using Ctrl+Shift+Arrows doesn't work in ubuntu 16.04

As @N0rbert suggested, I checked Guest session and found out that Ctrl+Shift+Arrows shortcut keys work correctly there, which means it's a matter of settings in my account.

I started to backup and remove "." folders in my account and at some point I did something wrong and my Unity settings were completely reset and Ctrl+Shift+Arrows started to work correctly.

To my regret I didn't correctly backup my wrong settings, so at this point I can't know where exactly these settings are saved, but I'm sure it's related to some Unity settings...


Using minimal ubuntu as type 1 Hypervisor, viz-a-viz oVirt?

oVirt Node is not just a minimal CentOS, it's made upon squashfs and imgbased for smart installation, upgrade and rollback.

I suggest you to read the oVirt Node Next Development Guide to better understand its design.


Installing Ubuntu 16.04 on MSI GE72MVR, system freezes when I restart

The problem is most likely with graphic card driver.
In grub entery, press E and in the new page add nomodeset before quiet splash. This disable default driver. Press F10 to return to login page.
Follow the instruction in :
How can I uninstall a nvidia driver completely ?
 to remove old driver. Then reboot and login in using nomodeset again.
Then you should install new driver.
Don't download driver from Nvidia website. It's likely to be incompatible. You should download it from ppa repository:

sudo add-apt-repositorty ppa:graphics-drivers/ppa

sudo app-get update

sudo app-get install nvidia-381

Then restart computer and you'll be able to login normally.


Wifi Problem: Connection failed (Activation of network connection failed)

Use below command and it will work. I had similar issue. Thank me later.

echo "options 8192eu rtw_power_mgnt=0 rtw_enusbss=0" | sudo tee /etc/modprobe.d/8192eu.conf
echo "blacklist rtl8xxxu" | sudo tee /etc/modprobe.d/rtl8xxxu.conf


List of drivers for Samsung NP300E5Z-S08IN

Ubuntu has almost all generic drivers. So everything should work out of box.

However, you can open dash, search for additional drivers. This will install nvidia driver.

The spec doesn't specify wireless card. You may need to install that driver.

Best way is to create a cd or live usb and run ubuntu in live mode. So that you can see whether everything works fine or not. If anything doesn't work. Post a question here.


How to Connect & Share your Internet Connection (Wired & Wireless)

Since this is like the #1 question I get from students and newcomers to Ubuntu I will try to answer it with a couple of things everyone should know about Ubuntu in regards to sharing an internet connection. This is divided in 3 sections:

Sharing your Internet Connection via a Wired Connection
Sharing your Internet connection via a Wireless Connection
Sharing your Wireless Connection with Mobile Devices
Connecting to a Wired or Wireless Device

Know that, in order to share your Internet connection either Wired or Wireless, you NEED to have at least 2 network cards, they can be a mix between a Wired card and a Wireless card, 2 Wired cards or 2 Wireless cards. The point is, you need to have at least 2 network cards, one card that receives your internet connection and another that sends it to other computers or devices on your network.
Sharing your Internet Connection via a Wired Connection
Configuring the PC that will share the connection

Assuming you are receiving Internet through a second Wired connection or a Wireless connection, Open your Network Manager via the Network Icon on the Unity Panel:

Go all the way down to the Edit Connections option and click on it.

You will appear on the Wired Tab. Each Wired connection is by default related to each Ethernet Wired NIC card you have. For example if you have 2 Wired NICs you will see 2 options here. In the image below you see one since this is a Laptop and they normally have one. Select the Wired connection you wish to edit which should be the one connected to your LAN and not the one that is receiving the Internet connection. Double click on it or select the EDIT button.

You will appear on the Wired Tab (Again). This time, go to the IPv4 Settings if you are using IPv4 or IPv6 if you are using that one. On the Method option select Share to Other Computers. Now SAVE. You are done.

This will do all the stuff that was normally done 6 or 7 years ago with all the terminal commands and iptable stuff.
Now just connect the 2 computers and you are done.
NOTE: If both computers have a Wired Gigabit Ethernet NIC then you can actually connect them directly since most 1000BASE-T have automatic MDI/MDI-X. If not just connect them to your switch, router, hub, whatever and that is all.
PC That will receive Shared Internet Connection (Depends on Network Setup)

Open your Network Manager via the Network Icon on the Unity Panel:

Go all the way down to the Edit Connections option and click on it.

You will appear on the Wired Tab. Each Wired connection is by default related to each Ethernet Wired NIC card you have. For example if you have 2 Wired NICs you will see 2 options here. In the image below you see one since this is a Laptop and they normally have one. Select the Wired connection you wish to edit and double click on it or select the EDIT button.

You will appear on the Wired Tab (Again). This time, go to the IPv4 Settings if you are using IPv4 or IPv6 if you are using that one. On the Method option select Manual. The options in Addresses will be editable now. Add the IP you want, the Mask you need and the IP of the PC that is sharing the connection. In this case I said that the IP of the Client PC will be 192.168.0.2, the Mask is 255.255.255.0 to imply that is a Class C (LAN) network and 192.168.0.1 to mention that the computer sharing the connection has the IP 192.168.0.1 with it. Additionally add the same IP of the computer sharing the connection to the DNS Servers (As shown in the image).

You can also (Depending on the network setup) select instead of Manual, select Automatic and just put the IP of the computer sharing the Internet in the DNS Servers section.

Note that this depends on the network setup. For example if you have both PCs connected to a switch or router, the switch/router will take care of the Client, so you only need to setup the PC Sharing Internet and just connect both to the switch/router. If by chance you are connecting the PCs directly together then it is better to do the additional setup of the Client.
In most cases, you will not need to setup the client, just connect to the network and done. Ubuntu will take care of everything. I just added the Client part for specific cases where problems might arise.
This should cover all the possible scenarios in a home LAN when one wants to share the internet connection over Wired cable.
Sharing your Internet connection via a Wireless Connection
NOTE: Read below for Android user information.
Since a couple of Ubuntu versions ago, there is no need for using masquerading techniques through terminal commands to share the internet connection. There isn't even the need to use iwconfig and echo commands to forward stuff. For the many computers and laptops I have tested (Almost 1000 with Ubuntu) I can frankly say for sure that with the following steps you can share your internet connection with no trouble at all.
This is the same for open sourced and proprietary drivers. I can confirm for example Broadcom, Ralink and Atheros chipsets wireless cards will work out of the box, they will work since NetworkManager will take care of the low level details. The latest versions of Network Manager, specially since 0.9.x are excellent in this aspect.
Step 1 - Go to Network Manager and select Create New Wireless Network..
Note that there are other ways, terminal and GUI like, that can also do the job, but this is the easiest and fastest way possible (Even faster and easier than doing it in Windows XP or Windows 7). Also know that I am assuming you are receiving Internet through another network card (Wired or Wireless) and you want to share this Internet connection wirelessly.

Step 2 - Type name of SSID (The name that other devices will see when looking for the hotspot)

Step 3 - As you can see here I put as the SSID name "Ubuntu Ad Hoc Power" and it has an encryption of WEP. The encryption type depends on the network card. Some cards do no support Ad-hoc with WEP, others with WPA, and others with any security whatsoever. After setting the SSID name and security just click create.

Step 4 - For cases where you will share internet with somebody close to you on the same room, I normally just share the device with no security. Easier for them to connect. Of course do not do this in a party or in an office full of wireless vampires.

Step 5 - When a shared connection is created, the next time you try to share it, it will appear in a connection list, saving you the trouble of naming the connection and setting security.

After doing the above steps, you should have a computer sharing the internet connection with no problems at all. Now for the part that so many of us forget (specially me)
Sharing your Wireless Connection with Mobile Devices
Many users always ask why doesn't my phone (Android, IPhone, Blackberry) see the internet connection shared from my laptop?
In many of this cases, Android, IPhone or Blackberry will have disabled the option to "find" Ad-Hoc hotspots. This is for security measures. So they will only see actual Wireless routers and not Ad-hoc enabled devices like a Wireless PCI card, Wireless USB card or even another Ad-Hoc enabled phone. To be able to do this, at least in Android you need to root the device. For IPhone you need to jailbreak them. For Blackberries is more complicated. I have only done this on Androids and Iphones. After doing this you should see the Ad-Hoc device with no problem at all.
Of course this does not affect all models. Only some of them. Some you will only just buy and they will see Ad-hoc spots from day one. Others you will have to root/jail to fix this annoying problem.
I don't know if I can recommend some sites or ways to accomplish this here but google is your friend. Anyway a quick way to see this is to try to connect another computer to the one sharing the internet. It should work. Another way is to look for another cellphone that can see ad-hoc.
ANDROID USERS
For Android users our sister site Android has a nice article on How to ROOT an android device
I also recommend this article which talks about several terms we should know when working with stuff like this: Phone Hacking Terminology
Lastly, sites like cyanogenmod and tools like clockworkmod are very good. But always remember that with great root cow power comes great responsibility.
For example I have a Huawei cellphone that had Android 2.2 originally. After I rooted the device and upgraded to 2.3 using Cyanogenmod I could see ad-hoc devices which saved me from several problems and added a bonus to my cellphone for stuff like using it as a remote control for XBMC.
I should also mention that I have read several of the answers in the Android SE site about Ad-Hoc support. Most are wrong in the sense that they confirm Ad-hoc not working on several older versions of Android (Version 4 and below). This is false since I have done probably more than 50 Android phones ranging from Samsung to Huawei and they all have worked. There might be some that do not get Ad-Hoc even after enabling Root and installing the needed apps but I have not yet come across one that had this issue.
So do not be discourage about looking to get your Ad-Hoc working on your phone. Trust me, it is easy. I hope I have shed some light with this to help you share quicker and easier and to understand when in some cases they do not find ad-hoc devices.
Connecting to a Wired or Wireless Device
Take a look at the image below:

If you click on the Network icon (The green circle at the top) it will drop a menu where you can see all the devices  (Wired Connections and Wireless Connections) that you can use to connect. By clicking on them, they will automatically connect to the desire network. In the case of having a Wireless card and have not yet installed the drivers (In the case you need drivers for them), you can visit one of the following links that provide the steps needed to correctly install any Wireless card:
How do I get a Ralink RT3290 wireless card working?
Installing Broadcom Wireless Drivers
Drivers for Realtek wireless module for Toshiba C850-A965?
Wireless card Realtek RTL8723AE-BT is not recognized
https://askubuntu.com/questions/tagged/wireless+drivers
As a bonus I recommend reading the How to connect and disconnect to a network manually in terminal?
(In cases where the need arises).


Ubuntu One notifies me every ten minutes that my account is full but there is nothing in it

Can you please try the following:

1. Quit the Ubuntu One Preferences, if open

2. Open (Lucid): Applications->Accessories->Passwords and Encryption Keys
(Maverick): System -> Preferences -> Password and Encryption Keys

3. Click on the arrow next to "Passwords"

4. Right-click on the Ubuntu One token and select "Delete"

5. Go to https://one.ubuntu.com/account/machines/

6. Click on the checkbox next to your computer

7. Click the "Remove selected computers" button

8. (Maverick): killall ubuntu-sso-login; u1sdtool -q; u1sdtool -c
(Lucid): u1sdtool -q; killall ubuntuone-login; u1sdtool -c

9. a web page, if in Lucid, or a window, in Maverick, should open,prompting you to add your computer to your Ubuntu One account

10. Add your computer


Purisa font renders strange symbol instead of TM

A font can contain tables which instruct it to replace certain combinations of characters with a glyph that represents them written together as a ligature. You won't come across it that often, and might not have noticed when you have. The image below is an example of this with the Tekton Pro font with the letters "ff" together and separated by a space. Note the ff is a glyph with one continuous line. If it were two normal f glyphs, that line would be staggered.

For some reason the Purisa font has such a substitution for "TM", replacing it with an entirely different glyph. This may be a designer's signature or some such whim. As it is primarily designed for writing Thai, perhaps TM wasn't thought a likely combination for someone to want to type.

This is a version of the font that I have edited in fontforge, and removed the instruction to substitute TM. You could use this to replace /usr/share/fonts/truetype/thai/purissa.ttf as a quick fix (after replacing the file you need to run fc-cache -r and might need to log out if you are using it as a system font). I've filed as a bug.


14.04 login problem, are solutions affect the user file?

No, it will not affect user files. It's simply asking password to do privileged task. Reinstalling ubuntu-desktop package.

However instead of that one liner, use these instead -

sudo apt-get remove ubuntu-desktop
sudo apt-get install  ubuntu-desktop


How to stop a dual boot system from Auto starting on xubuntu after hibernation?

You could either change the default OS to boot in grub, which sounds like what you want, or disable the autostart completetly.

To change the default OS to boot you can take a look here.

If you want to disable the autostart completetly go here


your missing the pika package
Before you installing the pika ,install python-pip and git-core, since the pika installation depends on these packages.
Then install pika Packages

sudo apt-get install python-pip git-core

sudo pip install pika==0.9.8


I had the same problem some days ago. Someone told me in private that you have the ^@ character printed every second on tty. That's a known bug in the peaq-wmi driver. Blacklist it and reboot.


Can I access files between a ubuntu 14.04 guest and a mac host on virtualbox guest additions?

You can access files between host and guest operating systems. It is done via so called shared folder. This is folder on your host file system and it is mounted, and hence accessible, in the guest system.

You can create and set up the shared folder in the virtual machine properties - just look into it and you will easily find proper options. The tricky part is that your guest user account must belong to proper group to access shared folder mounted under guest Ubuntu - just look into /mnt to find shared folder mounting point and check the group name. After adding your account to that group and re-login, you will have full access to write and read files in shared folder.


How can I adjust the setting for OggVorbis encoding in Rhythmbox on Ubuntu Precise (12.04)?

I found this on here This might be the  answer for your question Link


QML/Qt Development path verses "Quickly" and Gtk

We've now reviewed the content on the App developers site so that it is clearly stated that the focus and the recommended way to write Ubuntu apps is the Ubuntu SDK.

While Quickly will still be available in the archives, and you will still be able to write Python + GTK applications with it, the only supported and recommended technology to develop applications that can run on multiple devices will be the Ubuntu SDK.

I hope this answers your question!


Try loading the oibaf drivers from the launchpad website.  They have good instructions for both loading and unloading the drivers, and they work really well with the integrated intel graphics in my laptop.

sudo add-apt-repository ppa:oibaf/graphics-drivers
sudo apt-get update
sudo apt-get upgrade
sudo reboot

will install the drivers

sudo apt-get install ppa-purge
sudo ppa-purge ppa:oibaf/graphics-drivers

will remove the drivers


I invested days into trying many ( vpn server + client ) and this is by far the easiest to install and use ... on your remote ubuntu server issue following to install vpn server

wget https://git.io/vpnsetup -O vpnsetup.sh && sudo sh vpnsetup.sh

at bottom of output from above it will show something similar to

Server IP: 111.222.333.444
IPsec PSK: foobar
Username: vpnuser
Password: yoyoyo

Write these down. You'll need them to connect!

Important notes:   https://git.io/vpnnotes
Setup VPN clients: https://git.io/vpnclients

then simply read client setup using above link ...  its free and open source

client works on linux / android / osx / iOS / Window$

  PSK stands for Pre-Shared-Key

see details at https://github.com/hwdsl2/setup-ipsec-vpn


How to install Lubuntu to an external USB drive as part of a dual boot?

From what i understand you don't want software like MultiBootUSB, YUMI or MultiSystem. You already installed WindowsToGo, all you need to do is create linux partition after Windows partition and install Lubuntu to it just like you would install it to any other hard-disk. Your USB drive will be probably listed as sdb, sdc, etc. Make sure you don't mistake it for hda or sda, that being the internal hard-disk of your PC. And make sure GRUB (LUbuntu's bootloader) will install to /sdb (the root of your USB drive), otherwise Lubuntu will remain installed but unavailable.


Messed up with a Window Manager, how do I disable it from GRUB menu?

you can try to get into different tty session. just open and wait for everything to settle. then CTRL + ALT+ F2 to go into different session. log in as normal. and after that it is just command line. you can delete every other window manager and install gnome or unity, or whatever you want.


To tell the kernel to reboot you can use
ALT+SysRq REISUB
continue holding down ALT key as you type all letters
From Wikipedia the REISUB the the kernel

unRaw (take control of keyboard back from X),
tErminate (send SIGTERM to all processes, allowing them to terminate gracefully),
kIll (send SIGKILL to all processes except init, forcing them to terminate immediately),
Sync (flush data to disk),
Unmount (remount all filesystems read-only),
reBoot.

To shutdown the machine instead of reboot, you can replace the B with a "O".  All keystrokes are worth it to ensure a clean system (sync or flush buffers to disk & umount protecting data on your system prior to reboot or power-off.   SysRq keys are far safer than trying to use the power-off or pulling a power cable on a box as the kernel can cleanly shutdown the system (or obey other commands, refer wikipedia page for clues)
PS: I'd not recommend the Alt-SysRq + B as it won't leave a clean file system; REISUB is safer.


Problem with root password, Ubuntu 12.10

Ubuntu does not have a root password. What your being asked for in software center is your password. Check your caps lock, etc. and try again.

Failing that reset your password from the terminal with passwd

And if that doesn't work, run sudo ls from the terminal and see if your allowed to sudo.


impossible to unmount a truecrypt partition after accessing it via samba

Sorry, it appears that the problem has gone away.


How do I get a matching theme when I run a program as root?

Themes you install via GNOME Appearance Settings reside in ~/.themes - your own home directory, where root won't be looking for them. You'll notice that themes that are installed system-wide (like ambiance/radiance) work fine, since those live in /usr/share/themes

To fix the issue, open your terminal and type

sudo ln -s ~/.themes /root/.themes

That way, root and your normal user will share the theme directory and everything will look the same.


How to create an desktop application that appear in the top menu bar?

It's a system tray. In Qt there is a class for that: QSystemTrayIcon.

It should work on all supported platforms.


You say you also get these rows, so I assume you get the output you want, along with these stderr messages. You could just redirect the stderr parts to /dev/null like this:

ssh user@server-name "df -hP | egrep '(/home|/cors)' 2>/dev/null"

or

ssh user@server-name "df -hP 2>/dev/null | egrep '(/home|/cors)'"

Depending on what's making the error.


Lenovo ThinkPad E530 nvidia gt 630m Ubuntu 12.04

It sounds like for some reason enabling these drivers sets your screen resolution lower. Simply set it to the appropriate resolution using the Displays tool. As for the lagging, if this is an nvidia driver that we are talking about, just search "nvidia" in the dash. I think that the application you want is something like "Nvidia X Server" and one of the options is to set the graphics to high performance mode. It is made to seem as if when you set to high performance, your graphics quality goes down, but when I set mine to high performance there was no noticeable difference. Hope this solves your problem!


Problem in making customized Kubuntu LiveCD

Finally made my custom kubuntu iso with the same Ubuntu Customization Kit, but this time I did it with help of VirtualBox.

First installed VirtualBox.
Then inside it, I installed a fresh copy of Kubuntu. Inside that, I installed Ubuntu Customization Kit. Then copied Kubuntu iso file, selected and configured it for my needs with Ubuntu Customization Kit.

I tested it and it worked well.


I tried to install mtp , terminal says libmtp is the newest version and finally this answer worked for me.

$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0BB4A1B2FA1A38EB
$ sudo add-apt-repository "deb http://ppa.launchpad.net/samoilov-lex/aftl-stable/ubuntu artful main"
$ sudo apt-get install android-file-transfer


The docker template that I am using is for Discourse. I solved it by editing the containers/app.yml file to include this under the ''expose' section:

 - "127.0.0.1:20080:80"

This means that it routes port 20080 on 127.0.0.1 to port 80 on the docker instance, thus removing the need entirely for a ufw rule.


How do I upgrade from software center 3.20.5 to osftware center 3.28.1

Ubuntu uses a snapshot method of placing software in repositories. A snapshot of software is added during pre-release. After release, the software receives bugfix and security updates...

...but not major release updates. Ubuntu 16.04 shipped with gnome-software 3.20, and will use that version for it's entire lifetime. This method keeps the number of bugs minimized and the support requirements small enough for volunteers.

The easy and supported method of upgrading software is by upgrading your entire system. For example, Ubuntu 18.04 has gnome-software 3.28 -- and will have that version for the next five years. If you upgrade to 18.04, you will upgrade all your software including gnome-software.

Alternately, you can search for a PPA or other non-Ubuntu repository that provides a 16.04-compatible package. Or you can compile 3.28 from source and install it manually. Both of those methods require a bit of skill.

Another solution, currently making slow progress to become supported, is for gnome-software to be a snap instead of a deb. Snaps are not subject to the deb snapsot method, and update independently of the Operating System.


You can easily check the current CPU frequency using the following command:

watch -n 0 "lscpu | grep 'MHz'"

You can also get the current cpu frequency with this command:

cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq

Most modern CPUs can adjust their clock frequency. The default governor on linux is "on demand" which keeps the clock speed low to save power when idle, and speeds it up to do work when needed.

Visit https://www.kernel.org/doc/Documentation/cpu-freq/governors.txt for further details.


Looks like it's using fake transparency instead of taking advantage of the compositing window manager. You should check that you have real_transparency = 1 in your tint2 configuration.

If this doesn't help, try running tint2 from the terminal, and check the output for messages about transparency.


Okular and other applications open HTML Links in wrong application

Old post, but if someone also have this problem, as I also encountered this problem, here is a solution I found to solve this problem with Okular (and may be other apps if using KDE as desktop environment).

If you are using KDE, open Configuration panel -> Applications -> File association

Search for "http", then in "inode", select "vnd.kde.service.http".
Add Firefox in applications (or other browser) and set it as first application (if other).

You'll probably have to quit Okular if it's running (or restart session).

Note : Some indications may be different, because my interface is not in English.


How to extract Synopsys .tz files on ubuntu

Using the Gui ,I got the files installed. Later on I checked the tcl script that is working behind the gui. In that script, they renamed the file to .taz , then added/appended some details to the file using some function. After which , I could extract the file using

zcat filename | tar -xvf-

or using

gzip -d filname.taz | tar -xvf-

or directly

tar -xvf filename.taz

I think since this is a file related to a proprietary tool, they have some sort of encryption script which is to be run to make the file a tar archive. In the earlier versions they directly gave the tar file.


Difficulties to maintain and to move the Eclipse launcher icon in the desktop toolbar

Inspired by AndAC's answer to How can I add "Show desktop" to the GNOME dash or Ubuntu Dock?, here is a method to add a launcher for Eclipse to the Gnome dash:

Create a file eclipse.desktop in the directory $HOME/.local/share/applications containing the text

[Desktop Entry]
Type=Application
Name=Eclipse
Icon=/opt/eclipse/jee-2018-09/eclipse/icon.xpm
Exec=/opt/eclipse/jee-2018-09/eclipse/eclipse

Open Gnome's application menu, search for "eclipse", and draw the icon which appears to the dash.


I was having the same issues, but after disabling C-state in the BIOS as suggested in this reddit post the USB ports have been working without a hitch.


If I change the UID of the user I SSH into the machine as, are there going to be problems?

As long as your public key lives on that user's home directory at remote machine, there will be no issue and your key will work fine, even if you change username or your user's home directory.

So you can still login and work as you are doing it right now.

However if you are using sshfs to mount a directory from remote machine on your local system, the remote user ID should match your local's one, otherwise you might experience permission problems on that mount point.


Is there a checks \ steps that can prevent damaging the Ubuntu partition?

Don't touch the partitions Ubuntu is installed on. Don't even mount them during the Windows installation. Make damn sure you pick the correct partition(s) for Windows.
Make a backup so if it does get destroyed you can re-install Ubuntu and re-install that backup.

  Is there a good reference (step by step) that outlines pitfalls and good practice?

Not really. It is often a very specific situation you are in when you run into problems. So the pitfalls are many. Installing W7 might lead to a crash and we can not start to list the many problems you could end up with.
BUT! If anything burn a boot repair DVD before you start. That will give you the option to restore grub and access to Ubuntu whatever the deal is with the Windows installation.

Some other advice: I myself have stopped using dual boots. Depending on your Windows and Ubuntu usage opt for installing the 2nd OS in a virtual machine (virtualBox or VM Ware). Then you have both systems ready without the need to reboot to use the other system. Using an SSD as a boot disk for this would be advisable though.


Inspirion 7k temp low fan high - Ubuntu 20.04

The same issue here with a fresh installed Ubuntu 20.04 but on an Asus Laptop.

I thought that it's a non-selected driver issue when I go to Software & Updates -> Additional Drivers. It was marked as continue using a manually installed driver and the others were disabled.

Than I followed this https://askubuntu.com/a/1032365/829928 instructions to select a driver:

$ ubuntu-drivers devices    # list drivers that are available to be installed from the default Ubuntu repositories
$ sudo apt install [xserver-xorg-video-nouveau]

I installed xserver-xorg-video-nouveau for my system then rebooting solved the fan speed issue.

Maybe this method can work for your system as well.

Edit: The issue occurred again within a few days. Trying $ ubuntu-drivers list then $ sudo apt install nvidia-driver-440 didn't work as well.


How to organize desktop icons in Disco Dingo

At this point it's not possible.

Ubuntu 19.04 comes with gnome shell extension: "desktop icons". In previous versions of Ubuntu desktop icons was provided by nautilus, but new version of nautilus (3.32) lost desktop icons functionality.

Unfortunately looks like extension's author decided not to implement any sorting/rearranging features: https://gitlab.gnome.org/World/ShellExtensions/desktop-icons/issues/98


First off, these are partition not drives. Did you back up your data?

Second, Windows can not read linux partitions without third part software being installed. This is why the two disappeared from windows.

Third, if these were NTFS partitions, Ubuntu formatted them both so it could install it's file system.

You can probably recover your partitions and files using recovery tools in Windows; howevver there will be data loss as some of the files were invariable overwritten by the install


Problem solved.
I solved the problem by changing the graphics driver to version173-updates.
Hope that it helps others too.


If the directory /folder (under root directory, /) does not exist, and if you were working as root, you have renamed (moved) the file file.txt as folder under /.

Doing a ls -l /folder should show you the file.

Another point is, if a directory /folder does exist, then look under that directory for the file i.e. /folder/file.txt.

Also note that if you append a / to the destination path, you would get a different message like:

mv: cannot move ‘file.txt’ to ‘/destination/’: Not a directory

and the file will not be renamed.

For example:

% sudo mv file.txt /spamegg/
mv: cannot move ‘file.txt’ to ‘/spamegg/’: Not a directory

% sudo mv file.txt /spamegg

% ls /spamegg
/spamegg


Try this package:

sudo apt-get install kubuntu-low-fat-settings

It is specifically designed to minimize ram consumption and speed up the system as much as possible.


Evolution will not allow me to download e-mails from exchange server

There are 2 Exchange-plugins for Evolution:

evolution-exchange which uses the "Outlook Web Access" interface over the HTTP protocol
evolution-mapi which uses the proprietary MAPI protocol (this is what Outlook uses)

Both ways to access Exchange have to be enabled separately on the server, and probably also in firewalls etc. to work.

Which one are you using, and did you try the other one?


Problem during Ubuntu 15.10 boot process

You might want to have a look on this post. Seems like you are encountering the same issue.


How can I improve color saturation in Ubuntu?

this can be made with xrandr, first identify you video output running "xrandr" and look into the output sor something like this:
DVI-I-1 connected 1600x900+1600+0 (normal left inverted right x axis y axis)

in my case, my output is DVI-I-1, now i run "xrandr --props" to know what properties can i change.
scaling mode: None
    supported: None, Full, Center, Full aspect
color vibrance: 180
    range: (0, 200)
vibrant hue: 90
    range: (0, 180)
non-desktop: 0
    range: (0, 1)
link-status: Good
    supported: Good, Bad

to change the saturation, in my case (Old GeForce GT 520), i run the following:
xrandr --output DVI-I-1 --set "color vibrance" "180"

Hope this works for all you guys.
(same response: how-to-adjust-screen-settings-contrast-color-saturation-etc)


Is it possible to store Ubuntu updates on a server that can share them with other Ubuntu computers on the LAN?

Spacewalk is Free & Open Source Systems Management Tool from which Red Hat Satellite was driven. There are workarounds to configure and manage the Ubuntu hosts as well. Check their wiki pages.


Copy the iso file to some other location(Destop or home directory). Then format the usb to FAT32 filesystem using gparted partition Editor.
Remove the pendrive and then reinsert it.
It will automatically get mounted, then run winusb application.
Select the copied iso file and create a bootable windows flash drive.


Flash drive can no longer be booted from

I've found out why it wasnt working, the program I was using was attempting to reformat the drive in fat32, but the drive is 64GB, so it's not supported by the file system. After I stopped the program from attempting to reformat it worked again.


You can easily install gns3 with these commands:

sudo apt install python3-pyqt5 python3-pyqt5.qtsvg
sudo pip3 install gns3-gui
sudo pip3 install gns3-server


Update TextEntry of WebBrowser in Python

Assuming you're using WebKit. You'll have to connect to the load-status property signal to see if a new page is being requested and change the netry accordingly.

Here's a bit of code from an old project of mine.

    # Snipped init and stuff...
    self._webview = WebKit.WebView()
    self._webview.connect('notify::load-status', self.on_load_status)

def on_load_status(self, webview, status):
    status = webview.get_load_status()
    if status == WebKit.LoadStatus.COMMITTED:
        self._set_loading(True)
        self._entry.set_text(webview.get_uri())
    elif status == WebKit.LoadStatus.FINISHED:
        self._set_loading(False)

def _set_loading(self, loading):
    self._stop.set_sensitive(loading)
    self._reload.set_sensitive(not loading)
    self._back.set_sensitive(self._webview.can_go_back())
    self._forward.set_sensitive(self._webview.can_go_forward())

The _set_loading() method is used to enable/disable the stop/reload/back/forward buttons on the toolbar. If you don't have those, leave it out (otherwise, change the names to your needs ofcourse).


Having issues moving file and folder from one directory to another

/var is not in your home folder. The command you want is:

sudo mv -v /var/www/html/* /var/www/


How do I install Jensen Scandinavia Airlink 100ac driver?

Download build-essential package (32/64 bit: uname -m) on the laptop with Internet Access from here: http://packages.ubuntu.com/trusty/build-essential
Copy the build-essential package onto your USB-Stick
Install the package onto your laptop:

  sudo dpkg -i /path/to/build-essential*.deb

Now type:

  make clean

Create/compile driver

  make

Install driver

  sudo make install

Load driver

  sudo modprobe 8821au

Driver should be installed


Unable to mount Internet Manager ZTE MF-195 USB wireless modem

I've had trouble with usb 3g internet sticks on linux before and got it working using sakis3g. Give it a try!

https://github.com/Trixarian/sakis3g-source


qemu: how to select from which hdd to boot?

Yes, "sata" device is probed first, but you can change the boot device either "hand-off" with:

-boot order=c

or by manual selection with:

-boot menu=on

Both option can be used thogether:

-boot order=c,menu=on


I cannot rename files in bulk using ubuntu's rename feature

You can use the rename command, which is usually included in a default installation:

rename 's/.*/sprintf("filename (%d)", ++$ENV{c})/e' *

This would do precisely what you asked for. Use the -n flag if you want to do a test first:

rename -n 's/.*/sprintf("filename (%d)", ++$ENV{c})/e' *

This assumes that the environment variable c is undefined, which will cause the count to start from 0. If you want to be extra safe, you could call it like this:

c=0 rename -n 's/.*/sprintf("filename (%d)", ++$ENV{c})/e' *


Has anyone tried Passware Kit which claims powerful FDE cracking?

From your comment on Lew's answer, I assume you are referencing this PDF.

  "Passware pioneers in releasing the commercial software, which recovers
  LUKS passwords at an incomparable speed of 300 passwords per second"

This is not an exploit, but rather CUDA accelerated brute-forcing. 300/sec is ridiculously slow. You need to be at a couple million/sec to crack the password within your lifetime :D


First of all your /dev/sdb isn't partitioned. I am assuming this is the disk you want to mount.

WARNING: THIS WILL DESTROY ANY DATA ON YOUR TARGET DISK

Run sudo fdisk /dev/sdb

Press O and press Enter (creates a new table)
Press N and press Enter (creates a new partition)
Press P and press Enter (makes a primary partition)
Then press 1 and press Enter (creates it as the 1st partition)
Finally, press W (this will write any changes to disk)

Okay now you have a partition, now you need a filesystem.

Run sudo mkfs.ext4 /dev/sdb1
Now you can add it to fstab

You need to add it to /etc/fstab use your favourite text editor

Be careful with this file as it can quite easily cause your system not to boot.

Add a line for the drive, the format would look like this.

This assumes the partition is formatted as ext4 as per mkfs above

#device        mountpoint             fstype    options  dump   fsck

/dev/sdb1    /home/yourname/mydata    ext4    defaults    0    1

Then on the next reboot it will auto mount.

This web page has a lot of useful info on fstab


How do I make an amd64 version of my application?

What architectures your application is built for depends on the Architecture field in your debian/control file.

all will build architecture-independent packages.
any will build architecture-depend packages, once for each of the supported architectures.

You can also explicitly specify the architectures that should be build (e.g. Architecture: amd64 armel).


To revert any modifications you might have done to your .bashrc file, just delete it and replace it with a fresh copy of the default /etc/skel/.bashrc.


This is a known bug and is reported in launchpad here, please go to this bug and click "this bug affects me" and you'll get notified when it's fixed. There's also a workaround noted in the bug.

Very sorry for the inconvenience.


That's because the Wubi installation of Ubuntu is not "the real thing". Disk IO is much slower.

See the answer to this question

I never understood the appeal of Wubi. Install the OS as an actual OS. Put the .iso on a dvd or flash drive and install it next to your windows install. As it stands now, your Ubuntu is pretty much an app running inside Windows. (I exaggerate a bit here)

Once you've installed Ubuntu properly, you realize that the sluggishness is on the Windows side of things.


How do I limit the amount of RAM that WINE sees?

I'm not sure if this will work, but I found a script here that limits the memory of a process.

The script is as follows:

#!/bin/sh

set -eu

if [ "$#" -lt 2 ]
then
        echo Usage: `basename $0` "<limit> <command>..."
        exit 1
fi

limit="$1"
shift

cgname="limitmem_$$"
echo "limiting memory to $limit (cgroup $cgname) for command $@" >&2

cgm create memory "$cgname" >/dev/null
cgm setvalue memory "$cgname" memory.limit_in_bytes "$limit" >/dev/null
# try also limiting swap usage, but this fails if the system has no swap
cgm setvalue memory "$cgname" memory.memsw.limit_in_bytes "$limit" >/dev/null 2>&1 || true
bytes_limit=`cgm getvalue memory "$cgname" memory.limit_in_bytes | tail -1 | cut -f2 -d\"`

# spawn subshell to run in the cgroup
# set +e so a failing child does not prevent us from removing the cgroup
set +e
(
set -e
cgm movepid memory "$cgname" `sh -c 'echo $PPID'` > /dev/null
exec "$@"
)

# grab exit code
exitcode=`echo $?`

set -e

peak_mem=`cgm getvalue memory "$cgname" memory.max_usage_in_bytes | tail -1 | cut -f2 -d\"`
failcount=`cgm getvalue memory "$cgname" memory.failcnt | tail -1 | cut -f2 -d\"`
percent=`expr "$peak_mem" / \( "$bytes_limit" / 100 \)`
echo "peak memory used: $peak_mem ($percent%); exceeded limit $failcount times" >&2

cgm remove memory "$cgname" >/dev/null

exit $exitcode

You'll have to install cgmanager (sudo apt-get install cgmanager), but it's little more than half of a megabyte.

It's possible WINE (or the executable) will detect all the RAM you have, despite the limit, in which case this will most likely fail. If that happens, you can always delete the script and then uninstall cgmanager with a quick sudo apt-get autoremove --purge cgmanager.


Here is what I did and not sure how, but it worked:

Restarted the system.
Connected a wired usb (my phone) to port.
lsusb - recognosed it.
unpluged phone and connected the mouse.
Ran lsusb again. mouse recognised and working again.


There are CLI editors available in Ubuntu:

nano
vi

If you're unable to simply call nano or vi you can try with absolute paths:

/bin/nano .profile

or

/usr/bin/vi .profile

And if you want to bring the default .profile back you can use the template from /etc/skel/.profile

/bin/cp /etc/skel/.profile /home/yourname/.profile


I found the problem...

I had my .desktop files in ~/.local/application, and they should be in ~/.local/share/applications

I just dragged them to the unity launcher and now I have them available at the dash


Ubuntu 14.04 Compiz taking lot of CPU resources

It is a official bug.
Compiz CPU usage dramatically increased in Ubuntu 14.04
https://bugs.launchpad.net/compiz/+bug/1293384
Very high cpu usage for compiz in 14.04 (mesa incorrectly using llvmpipe)
https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1268146


backing up and compressing /home directory using lzma

Your --lzma argument will work if you put it there but you have problems elsewhere.

You need to put space between backboxhome.tar.gz/home/user, also you are creating a lzma compressed archive, not a gzipped one so rename the backboxhome.tar.gz to e.g. backboxhome.tar.lzma (it would be ok if you name it as gz but you would get a hard time remembering what it is really and also while extarcting).

Your command as a whole could take the form:

sudo tar -cvpf backboxhome.tar.lzma /home/user --lzma

Although a better practice is to use the options one after another:

sudo tar --lzma -cvpf backboxhome.tar.lzma /home/user

Note that lzma and xz both uses the same compression algorithm, in fact lzma is deprecated in favor of the newer xz. So you would be better off using xz (tar -J):

sudo tar -cvpJf backboxhome.tar.xz /home/user


There are some very good points in the comments. There are many ways the security of your financial dealings can be compromised. I will list a few.
Some Features of Ubuntu
There are a couple of features of a dual boot system running Ubuntu that are relevant to your question:
File System
The file system used in a default installation of Ubuntu is not readable from Windows without installing a third party driver. What this means is, the Ubuntu partition is completely unknown to Windows. Windows cannot read anything that is in the Ubuntu partition, and it cannot write to the Ubuntu partition.
This in turn means if your Windows partition is infected by a malware designed to work on Windows it will have no effect on the Ubuntu partition.
The Executable
Software (and malware) designed to run in Windows do not work in Ubuntu default installation. One can get around this restriction by installing Wine in Ubuntu. However, for your purpose you don't need and should not install Wine.
This means even if you inadvertently download a Windows (or Mac) malware while in Ubuntu, it will not work in Ubuntu. Of course, this is not true if the malware is designed for Linux.
Some Specific Threats You will be Safe from
This is by no means a complete list. These are just a few I could think of:
Keylogger
A Windows malware keylogger that records every key you press can capture your online banking user ID and password and send it to the thief. In a dual boot system when you are using Ubuntu, the Windows system is turned off. Therefore such a malware installed in Windows will not present a threat to your online activity in Ubuntu.
Phishing
If you use the Windows to read your email and Ubuntu for online financial activities, you will be relatively safe from phishing attacks. Phishing is an email based attack where you get an email that looks like it is from your Bank (or Amazon, or Tesco). The phishing email usually contain links that would take you to a fake website where the thief would capture your banking credentials.
However, if you can control the urge to click on the link in the email and boot to Ubuntu to login to your bank's website, you will be safe.
Rootkits (some)
This is a broad class of malware that can steal passwords. They are hard to detect. Some of these are Windows specific, and may not work when you boot Ubuntu.
In General
You will be safe from malware that need to install or run something in Windows to work.
Some Specific Threats to Worry About
These days there are malware that do not need to have a local executable to work. They may work on various servers or divert you to malicious websites. For example:
Rootkits (some)
There are some Linux specific rootkits. Some rootkits are OS agnostic. Some of these may hide in the UEFI/BIOS. That means they can do their dirty work irrespective of which OS you are using. Booting Ubuntu will not stop these kinds of malware.
Encryption Malware
Encryption malware that targets Windows files is not a threat to dual boot Ubuntu. Similarly, encryption malware that targets Linux servers may affect Ubuntu desktops as long as the desktop does not run any server daemons.However, some encryption malware infect the internal drives Master Boot Record (MBR) and make the drive unbootable. If such a malware infects your computer when you use Windows, you may not be able to boot either Windows or Ubuntu in a dual boot system until you fix the MBR.
DNS Hijack (and Other Server Side Threats)
DNS is the server that interprets the web address you type (or use from Bookmarks/Favorites) and sends your browser to the correct web page. A DNS hijack can send you to a malicious web page that looks exactly like your banking page. This kind of threat works at the Internet scale, and does not depend on which operating system you are running.
Running Ubuntu will not save you from such threats.
Cookies
If you select the option to "keep me logged in all the time" option at a site like Amazon, the information stored by the browser can be read by either some local malware or by some server side malware. Though you will be relatively safe from local malware (particularly, those intended to run in Windows) there is no safety in Ubuntu from any server side threats.
Good Practice
In general it is a good idea not to save your passwords in the browser or select "stay logged in all the time" option.
One option is not to Install Ubuntu in a partition. You can use a Live USB/DVD for your financial activities. A Live USB/DVD is the same one you would use to install Ubuntu into your computer. Normally, you would boot from the Live USB/DVD and select "Install Ubuntu" option. However, in this scenario you do not want to install Ubuntu, but use it directly from the Live USB/DVD. For this you will select "Try Ubuntu without Installing" option.
The advantage of the Live USB/DVD is that it is a read only system. That is nothing is saved when you visit your banking and other website. There is a way to get around this limitation by making a Live USB persistent, but you don't want that.
Nothing is saved means it is impossible to have a permanent malware infection in the Live USB/DVD, even one specifically built for Linux. It also means no passwords are saved and you will have to login again when you boot from the Live USB/DVD. That is, "keep me logged in" does not have any effect.
Hope this helps


Option 1: if the program shows an icon on left-side start bar when you open the program through terminal, then right click on that icon , and select " Lock to launcher" option.

Option 2: install GNOME Do. This little program shows up on login, and you type the name of any app that you wanna start.

Option 3: Classic menu.
In software center download Classic Ubuntu Menu. It's an equivalent of start menu in Windows XP, and lists almost all programs you installed on Ubuntu.

Option 4 : Configure File Manager in Edit-> Properties -> Behavior to "Run executable text files when they are opened. " That way, you can make a scrip to open this program in xterm or another terminal emulator.

So having changed file manager behavior, create a new text file on desktop , and open with your favourite text editor. For me that's nano, so i would type in terminal:

nano ~/Desktop/Shortcut_Script.sh

And in this script file put the following lines

#!/bin/bash

xterm -hold -e " /path/to/your/program/java -cp jts.jar:total.2013.jar -Xmx512M -XX:MaxPermSize=128M jclient.LoginFrame "

A small explanation here: this script basically calls xterm window, tells it to stay on (hold), and execute the commands enclosed by double quotes. From reading your question, I understand that you first need to navigate to the right folder, and then call the program, right ? So /path/to/your/program/ part should let you call that program in the right folder, while staying in the original start folder for xterm (which is your home/user folder). Now, if this does not work, and you do need to navigate to the folder, what you can do is this:

xterm -hold -e " cd /path/to/your/program/ ; java -cp jts.jar:total.2013.jar -Xmx512M -XX:MaxPermSize=128M jclient.LoginFrame "

Notice the semicolon. As you may know, it separates commands to bash. It will execute cd /path/to/your/folder first, and call the program second.


Quantal Quetzal 12.10 has just been released.  The servers are extremely busy.  Added to this, a large number of updates for Quantal have just dropped.

I suggest you try a BitTorrent download.

I've been getting my iso images through the official bitTorrent for a few years now, for several reasons:

Packets are fully verified and fixed if faulty.  I haven't had a bad md5sum since I started using this method (had a couple of expensive dud downloads prior to that though)
It's quicker than downloading directly at times like this, when many thousands of people are all trying to get a new release.
Nothing can completely ruin the download.  As soon as you start your BitTorrent client (eg Transmission) the download will continue where it left off. Poor or slow internet connections cannot ruin your download competely


How to reset .bashrc file which edited before to set PATH ANDROID sdk?

How to reset .bashrc file which edited before to set PATH ANDROID sdk

The original .bashrc is located in /etc/skel/. So just run the following command:

cp /etc/skel/.bashrc ~

That way you can restore your .bashrc to the way it was when you created the account for the user.

Regarding the problem you are facing: it would be helpful if you post the content of your .bashrc, or at least the code you have altered/added.


Add this code to  dhcpd.conf to ignore requests from a set of MAC addresses

class "deny" {
            match if substring(hardware,1,4) = 00:11:22:33;
    }

    pool {
            deny members of "deny";
            range 192.168.1.10 192.168.1.254;
            }

Change the Mac and the range as your network fits .

Hope it help you


It looks like you have an inaccurate or inactive mirror you're trying to use in your sources list.  It may help to look at the webpage below, and find the country you are in and the mirror URL you should use.  That would be where I would start, since everything else seems to be downloading properly, according to your output of apt update.

https://launchpad.net/ubuntu/+archivemirrors


Partition Permissions - chgrp cannot access

A space is a dilimiter (seperates arguments). You have to enclose the drive name in quotes. try:

sudo chgrp adm /media/nevil/'Big Drive'


I think the best way to do this is via a cron job. Type crontab -e in a terminal (you have to be root).

And add a line with the following content:

* * * * * /bin/echo "content" | /usr/bin/mail -s "subject" email@provider.tld

And save the file. It will send every minute a mail. After that restart the cron daemon:

service cron restart

See cron for how to set other time scheduling.


How to remove shortcut key created with Ubuntu Tweak?

Double-click the command to display the window shown.

Then press ESC i.e. the escape key and the key will be removed that is displayed as disabled

That just leaves the Command itself.  Double click the Command to edit and type None.  Press Enter and the Command will be removed.


If you use GDM, you can't fix it, since that feature was removed.

If you use LightDM, and install lightdm-gtk-greeter, you can still set the language at login. Open Language Support, click the Help button and select "Alternative language settings" for a short instruction.


Cinnamon 3.2 is available from the universe repository - remember to enable this from Software & Updates. Then simply run

sudo apt install cinnamon-desktop-environment -y


Clock time indicator display on center top of screen sometimes shows outdated times for a few moments Ubuntu 20.10 due to graphics issue

A quick google search gave me this web site. https://help.ubuntu.com/community/ReportingBugs


ROOT_MISMATCH error after following FAQ directions

Before proceeding with the following please make sure that you have a backup of your local Ubuntu One folders.

Syncdaemon stores the information about server and local filesystem in ~/.local/share/ubuntuone/syncdaemon - this folder should have been removed as a part of the procedure  mentioned in the FAQ. This should also be done while syncdaemon is not running:

u1sdtool --quit

The command below should return empty result:

ps auxww | grep [u]buntuone-syncdaemon

Then please double check that you have removed your ~/.local/share/ubuntuone/syncdaemon folder completely:

$ rm -rf ~/.local/share/ubuntuone/syncdaemon
$ ls ~/.local/share/ubuntuone/syncdaemon
ls: cannot access /home/rtg/.local/share/ubuntuone/syncdaemon:↩
No such file or directory

Then you can start ubuntuone as u1sdtool --start and check whether it started with an empty metadata in ~/.cache/ubuntuone/log/syncdaemon.log.


libqt5core5a dependency/version conflict in 16.04

I don't know exactly if i'm doing it right, but this seems works for me:

sudo apt install libqt5core5a:i386