For your processor, Core i7 9750H, the default TDP is 45 Watts.
If your proccessor supports it, you can adjust TDP.

Method 1
For this example a i5-9600K is used. First I use turbostat (linux-tools-common package) to see what TDP is now, and what the scale factor is:

doug@s18:~$ sudo turbostat --Summary --interval 5 --show Avg_MHz,Busy%,Bzy_MHz,IRQ,PkgTmp,PkgWatt,GFXWatt
...
cpu0: MSR_RAPL_POWER_UNIT: 0x000a0e03 (0.125000 Watts, 0.000061 Joules, 0.000977 sec.)
cpu0: MSR_PKG_POWER_INFO: 0x000002f8 (95 W TDP, RAPL 0 - 0 W, 0.000000 sec.)
cpu0: MSR_PKG_POWER_LIMIT: 0x4283e800dd8320 (UNlocked)
cpu0: PKG Limit #1: ENabled (100.000000 Watts, 28.000000 sec, clamp ENabled)
cpu0: PKG Limit #2: ENabled (125.000000 Watts, 0.002441* sec, clamp DISabled)
...

So, we know the scale factor is 0.125 watts, and someone seems to have already adjusted the power limit up to 100 watts from the default 95, but let's check by reading the MSR directly:

root@s18:/home/doug# rdmsr --bitfield 14:0 0x610
320

root@s18:/home/doug# rdmsr --bitfield 14:0 -d 0x610
800

notice that I read the register twice, once in hexidecimal (base 16) and once in decimal (base 10).

And 800 * 0.125 = 100 watts.

Now, say I wanted to make it 50 watts, first read the register again, but keep everything:

root@s18:/home/doug# rdmsr 0x610
4283e800dd8320

and now change the appropriate bit fields (14 to 0 from above). For the least significant 16 bits, we have:

8    3    2    0
1000 0011 0010 0000

take out the 0x320 (800 base 10) and put in 50 / 0.125 = 400 = 0x190:

8    1    9    0
1000 0001 1001 0000

root@s18:/home/doug# wrmsr 0x610 0x4283e800DD8190
root@s18:/home/doug# rdmsr 0x610
4283e800dd8190

And check it with turbostat:

doug@s18:~$ sudo ~/turbostat --Summary --interval 5 --show Avg_MHz,Busy%,Bzy_MHz,IRQ,PkgTmp,PkgWatt,GFXWatt
...
cpu0: MSR_RAPL_POWER_UNIT: 0x000a0e03 (0.125000 Watts, 0.000061 Joules, 0.000977 sec.)
cpu0: MSR_PKG_POWER_INFO: 0x000002f8 (95 W TDP, RAPL 0 - 0 W, 0.000000 sec.)
cpu0: MSR_PKG_POWER_LIMIT: 0x4283e800dd8190 (UNlocked)
cpu0: PKG Limit #1: ENabled (50.000000 Watts, 28.000000 sec, clamp ENabled)
cpu0: PKG Limit #2: ENabled (125.000000 Watts, 0.002441* sec, clamp DISabled)
... And now test it:
Avg_MHz Busy%   Bzy_MHz IRQ     PkgTmp  PkgWatt GFXWatt
0       0.02    921     205     29      1.90    0.00
0       0.03    834     195     29      1.90    0.00
14      0.42    3440    384     29      2.06    0.00
0       0.03    800     196     29      1.90    0.00
0       0.03    812     190     29      1.90    0.00
0       0.03    800     212     29      1.90    0.00  <<< System idle
0       0.03    811     204     29      1.90    0.00
3148    72.23   4358    9875    63      97.48   0.00  <<< Heavy load applied
3612    82.93   4355    11226   65      111.60  0.00  <<< Lots of power being used
3609    82.94   4351    11182   65      111.50  0.00
3120    83.35   3743    11145   45      72.32   0.00
2833    83.58   3389    11141   45      49.79   0.00  <<< Power limited to 50 watts
2838    83.58   3395    11179   45      49.85   0.00
2836    83.58   3393    11191   45      49.89   0.00
2837    83.58   3394    11119   46      49.90   0.00
2839    83.58   3397    11160   46      49.94   0.00
2838    83.58   3395    11148   46      49.91   0.00
2838    83.58   3395    11160   46      49.94   0.00
2838    83.58   3395    11284   46      49.94   0.00
654     19.28   3390    2807    32      12.97   0.00
0       0.03    803     202     32      1.90    0.00
0       0.03    802     172     32      1.90    0.00

Reference: Intel SDM

Method 2

There is actually a much easier way:

Look to determine if this method can be used:

doug@s18:~$ grep . /sys/class/powercap/intel-rapl/intel-rapl:0/*
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_max_power_uw:95000000
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_name:long_term
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_power_limit_uw:100000000
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_time_window_us:27983872
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_1_max_power_uw:0
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_1_name:short_term
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_1_power_limit_uw:125000000
/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_1_time_window_us:2440
grep: /sys/class/powercap/intel-rapl/intel-rapl:0/device: Is a directory
/sys/class/powercap/intel-rapl/intel-rapl:0/enabled:1
/sys/class/powercap/intel-rapl/intel-rapl:0/energy_uj:259409601961
grep: /sys/class/powercap/intel-rapl/intel-rapl:0/intel-rapl:0:0: Is a directory
grep: /sys/class/powercap/intel-rapl/intel-rapl:0/intel-rapl:0:1: Is a directory
grep: /sys/class/powercap/intel-rapl/intel-rapl:0/intel-rapl:0:2: Is a directory
/sys/class/powercap/intel-rapl/intel-rapl:0/max_energy_range_uj:262143328850
/sys/class/powercap/intel-rapl/intel-rapl:0/name:package-0
grep: /sys/class/powercap/intel-rapl/intel-rapl:0/power: Is a directory
grep: /sys/class/powercap/intel-rapl/intel-rapl:0/subsystem: Is a directory

Notice the enable line and the current value (which is as it was above):

    /sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_power_limit_uw:100000000
/sys/class/powercap/intel-rapl/intel-rapl:0/enabled:1

Now change it and check:

doug@s18:~$ echo "93500000" | sudo tee /sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_power_limit_uw
doug@s18:~$ cat /sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_power_limit_uw
93500000

And also check with turbostat:

doug@s18:~$ sudo ./turbostat --Summary --interval 5 --show Avg_MHz,Busy%,Bzy_MHz,IRQ,PkgTmp,PkgWatt,GFXWatt
...
cpu0: MSR_PKG_POWER_LIMIT: 0x4203e800dc82ec (UNlocked)
cpu0: PKG Limit #1: ENabled (93.500000 Watts, 28.000000 sec, clamp DISabled)
...

Note that on another computer,even though the processor is an unlocked and the locations shows as root writable, this stuff does not work (either method):

doug@s15:~$ ls -l /sys/class/powercap/intel-rapl/intel-rapl:0/enabled
-rw-r--r-- 1 root root 4096 Apr 26 08:00 /sys/class/powercap/intel-rapl/intel-rapl:0/enabled
doug@s15:~$ echo 1 | sudo tee /sys/class/powercap/intel-rapl/intel-rapl:0/enabled
1
tee: '/sys/class/powercap/intel-rapl/intel-rapl:0/enabled': Function not implemented


Eclipse installing problem on Ubuntu 16.04

You need to install a newer version of OpenJDK to be compatible with the Eclipse file that you downloaded. Open the terminal and type:

sudo apt-get install openjdk-8-jdk

OpenJDK is a development environment for building applications, applets, and components using the Java programming language.


I think you might need to reinstall the file as you don't have the backup. Please refer to the below URL to install the /etc/apf/apf file -

http://akyl.net/how-properly-install-apf-advanced-policy-firewall-centos-or-ubuntu


Cannot launch software centre, neither update

Looks like you made some typos when adding the gnomebaker repo. Remove it and apt wil work again.

sudo rm /etc/apt/sources.list.d/gnomebaker*


Computer becoming unresponsive when changing display

I have had similar problems in the past with my Toshiba Laptop which was resolved by installing the proprietary nVidia driver as my laptop had an nVidia GEForce graphic card.


Get only one package from 11.10 to install on 11.04

While I stress that this probably isn't a good idea, you can download the package you mentioned in the comment here.

Download it for your specific system (i386 or amd64)

Then, to install it, run the following:

sudo dpkg -i <path-to-.deb> in a Terminal.

Please, again, this is likely to break things, because this is a xserver level package.


Installed Ubuntu 12.04 alongside Windows7, now win7 wants me to format drive D?

You didn't mention exactly how you installed both os. A quick fix if D is the drive where you installed ubuntu, would be to go to windows and remove drive later from computer management. Go to Computer-Right click- Management- Disk management and remove 'D' Letter from that drive. now windows will not detect it. Tell me if some thing else that you have asked.


Why only one usb camera shows two Video4Linux devices?

Very shortly
Your application should use /dev/video0, for usual stuff, as /dev/video1 gives you meta-data image, to be used by algorithms, to improve image quality.
A bit more deeply
Look at the Device caps section, as they are different for both devices:
$ v4l2-ctl -D -d /dev/video0
...
Device Caps   : 0x04200001
    Video Capture
    Streaming
    Extended Pix Format

$ v4l2-ctl -D -d /dev/video1
...

Device Caps   : 0x04A00000
    Streaming
    Extended Pix Format

The device caps is documented as follows:
  * @device_caps:  capabilities accessed via this particular device (node)

The bits, that are different for these are:
 #define V4L2_CAP_VIDEO_CAPTURE     0x00000001 # bit 1
 #define V4L2_CAP_META_CAPTURE      0x00800000 # bit 23

The applications need to check this in order to know what kind of buffer it will receive, as this should be used by the streaming ioctls: VIDIOC_REQBUFS, VIDIOC_QBUF, VIDIOC_DQBUF

Read more about this discussion from https://bugzilla.kernel.org/show_bug.cgi?id=199575


Placing many (10 million) files in one folder

Would there be any problem with me saving the potential circa 10 million results in separate files in one directory?

Yes. There probably are more reasons but these I can post off the top of my head:

tune2fs has an option called dir_index that tends to be turned on by default (on Ubuntu it is) that lets you store roughly 100k files in a directory before you see a performance hit. That is not even close to the 10m files you are thinking about.
ext filesystems have a fixed maximum number of inodes. Every file and directory uses 1 inode. Use df -i for a view of your partitions and inodes free. When you run out of inodes you can not make new files or folders.
commands like rm and ls when using wildcards expand the command and will end up with a "argument list too long". You will have to use find to delete or list files. And find tends to be slow.

  Or is it advisable to split them down into folders?

Yes. Most definitely. Basically you can not even store 10m files in 1 directory.

I would use the database. If you want to cache it for a website have a look at "solr" ("providing distributed indexing, replication and load-balanced querying").


Will my existing operating system be deleted? Or will Ubuntu be installed alongside Mac OS X?

Yes, Ubuntu is safe to install. When you put your installation media in, you may have to choose to boot from that drive. Since I don't use a mac, I am not entirely sure how to do that on a mac, but here is a link that should show you how to do that.

http://support.apple.com/kb/ht1948

this link might provide an even simpler solution (I think all you have to do is hold down "C" during startup):

http://support.apple.com/kb/HT1533

Once you successfully boot from your Ubuntu installation media, the installation process is very easy. You can choose to install Ubuntu on a separate partition from your OS X partition. That way you will still have Mac OS on your computer, but you will also have Ubuntu. Just follow the on-screen instructions during installation and you will easily be able to set this up.

After you successfully install Ubuntu, every time you boot up, the GRUB boot loader will come up first. From this screen, you will be able to choose which operating system to load. If you don't choose one within 10 seconds or so, the default option will be chosen. This option will most likely be Ubuntu, so every time you want to boot into OS X, you will have to arrow down to it.

Ubuntu is a very safe operating system, and it is very easy to work with. I'm sure you will find the installation process to be simple. I hope you enjoy your experience with it. Best of luck!


Get rid of unity desktop on Ubuntu 18.04

Issue the command

sudo apt install --reinstall ubuntu-desktop

At some point, you will be asked which display manager to use. The gdm display manager is the default for gnome. After installing Unity, you have switched to lightdm.

After logging out and logging back into the default Ubuntu session with the gnome desktop, you can remove the unity session by uninstalling "unity-session":

sudo apt purge unity-session

Further cleanup may be obtained by autoremove:

sudo apt autoremove

This removes all packages that were automatically installed to satisfy dependencies for "unity-session".


Huh, super weird.

  Startup finished in 3.498s (firmware) + 3.332s (loader) + 6.081s (kernel)
  + 3min 3.648s (userspace) = 3min 16.561s

What's taking 3 mins in userspace?

Also, these two:

 24.771s dev-sda6.device
 12.795s systemd-udevd.service

Make me thing there's a problem with starting up the disk drive.  Is the disk going bad?  Are you doing anything out of the ordinary in etc/fstab?  Disk encryption?

I'd start by looking into how your drives are being mounted.

Also, Microsoft takes extra special time and attention to mess up multi-OS installs.  I use Linux exclusively on my laptop for that reason - I have a cheap desktop with Windows for compatibility testing.

UEFI is pretty much {insert rant}.  Microsoft likes this because it has plenty of payola.  Turning off UEFI in the BIOS may help (but Windows may complain).


I don't know how gedit handles syntax highlighting of extension-less files (there are questions about that: Can Gedit default highlighting style be set for files without an extension?), but there definitely is a plugin that handles modelines:

So, if you have a comment of the form in the first (or last) few lines:

# vi: ft=sh #

It will use shell syntax highlighting, and with ft=perl, Perl syntax highlighting and so on.


SD card cloning using the dd command - more questions

When using dd to copy block devices we need to be aware of the fact that it is a low level tool for bit per bit copying data.

This very powerful tool will copy each and every bit from the source to any destination.

The any destination part is decisive as it means that if you accidentally type in the wrong place it may mercilessly overwrite data there.
The each and every bit part also means that it will copy each single bit on any location. It will also copy NULL bits and trash content. This is very useful to create an image for recovery but it may not be what you need for a simple backup.

Because dd also does not allow incremental backups and takes considerable time I would suggest you have a look at those many different backup solutions we have to possibly find one that suits your needs better than dd.

To still answer your questions:

Yes, you can unmount partitions (i.e. not drives!) both, from Nautilus, and from the command line.
Yes, partitions (e.g. /sdb1) need to be unmounted to be able to copy them with dd.
Yes, you can copy the whole block device (in your case /sdb) including all partitions, partition tables, deleted file, boot records, deleted partitions, and what else it may hold with dd but you can not skip "unused" areas.


15.04 to 15.10 update failure "Error during update"

Looks like your sources file is corrupted.

delete sources.list by runing this command.

sudo rm /etc/apt/sources.list

now regenerate your sources.list by opening up a terminal and typing in

sudo software-properties-gtk

tick all the software sources like so

Then change main server to your country then click close. then a window will pop up. click on Reload

wait for that to finish

then run the update command.

sudo apt-get update


Does it make sense to create swap partitions for new installations nowadways?

Yes you need swap, if you just use it for suspend and minor swap actions a swap file somewhere on your disk might be fine, And i been using swap file from almost a year never ever had problem with it, just don't like partitioning the disk.

Just copy paste the following line in terminal and it will create 2 GB of swap. First become root:

sudo su

Then copy and paste pate the following (as always, make sure you understand what you are pasting on your terminal):

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

Swap (partition vs file) for performance

Down Side

You cannot hibernate to swap file, as mentioned by @Takkat, I have check and i have 1st time in my life try to hibernate but its not working, so if you want to hibernate yo need swap partition, otherwise  if swap file is good to go.

Hibernate vs. Suspend


sudo chown -R www-data:www-data /var/www/html

try this code

403 Forbidden  its mean you don't have permission

maybe its help to you

  check you .htaccess as well


How to delete User with User ID and GID 0

Instead of deleting the user you can change the UID and the GID of your user:

usermod -u <NEWUID> <USERNAME>
groupmod -g <NEWGID> <GROUP>

The default group has same name of your username.

Remember in Ubuntu the UId from 0 to 99 is reserved as system users.

Also users with UID < 1000 will not appear in the user lists so choose a UID > 1000

Now you can delete the user eaily and safely if you want to.


I failed to update in terminal in ubuntu

Open the file as super-user:

sudo nano -c /etc/apt/sources.list.d/virtualbox.list

and make sure you are on line 1(you can see the line number in the terminal like this. Then, add the # at the beginning of line 1. When that is done, press Ctrl+X. At the prompt, press y and then Enter

Then run sudo apt-get update.

Just note that:

  By commenting/removing the erroneous line the software won't be installed (if not already) or won't be updated/upgraded if that's what you try. Of which I suggest you to check where is that line coming from (which software requires it) and do the proper modifications as required in order to everything run fine.

Source.


A quick solution is to enter the following command in a terminal:

aptitude why $package

or, if you are only interested in the ultimate cause:

aptitude why $package --show-summary

Replace $package with the package's name, and you may need to install the aptitude package first.

Here is output you might get for aptitude why aspell --show-summary

Packages requiring aspell:
  inkscape

For more detail you would run aptitude why aspell. You can read the example output, below, as follows: "You manually installed inkscape, which requires libgtkspell, which requires libenchantic2a, which requires aspell". (i markers indicate installed packages; A markers indicate automatically installed packages.)

i   inkscape       Depends libgtkspell0 (>= 2.0.10)
i A libgtkspell0   Depends libenchant1c2a (>= 1.6.0)
i A libenchant1c2a Depends aspell-en | myspell-dictionary | aspell-dictionary | ispell-dictionary | hunspell-dictionary
i A aspell-en      Depends aspell (>= 0.60.3-2)

Finally, the following command

apt-cache rdepends --installed $package

lists the other packages installed on your computer that depend directly on $package. You can add the --recurse option to list all packages that depend directly or indirectly on it.


I damn sure it is an truecrypt encrypted conatiner file.

Mine looks like this,

It shows the below window when i try to open the encrypted file,

And the output of file /path/encryptedfile shows the output like below,

$ file encp2
encp2: data

If it satisfies the above then try to open the file through truecrypt. But it requires password to unlock.


command which takes in password as argument?

I sorted it out finally

echo <mypassword> | sudo -S apt-get install <package name>


The solution was to remove the Ubuntu folder from the efi partition.


Ubuntu apt upgrade = 1 monitor stuck in 1024x768 (same graphics card)

Found the solution: run xrandr to list your monitors (ie, DisplayPort-1, DisplayPort-2, HDMI-0, HDMI-1 is returned for me)

then add your desired resolution via: xrandr --addmode DisplayPort-1 1900x1280

then simply go to System Settings -> Displays and select your resolution from the drop down :)


I've had the same issue on 18.04 server virtual machine with GUI, so I can't say whether or not it's applicable to Desktop version, but I did have to install one of the packages ( specifically qtchooser ) to get qdbus.

According to Ubuntu package search for bionic (18.04), these are the amd64 packages that do contain qdbus, among which:

qtchooser
qdbus-qt5 ( referenced by OP on an old post with no answer )
qdbus

I'd recommend going with sudo apt install qtchooser since this is the  same solution I've used. However, either of these 3 should work just fine.

Sidenote: On Ubuntu server 18.04 with  XFCE4 installed via repositories , installing qtchooser produced no effect, but qdbus-qt5 did. I suspect this has to do with certain dependencies that qdbus-qt5 pulls with it, which may have been installed in other instances. I'd recommend installing this package.


Cannot move window to another workspace Ubuntu 18.04

Try the following key combination:

Ctrl+Alt+Shift+Arrow key (Left/Right/Up/Down).


Permission denied @ rb_sysopen - /home/jackattack/.msf4/database.yml (Errno::EACCES)

This issue might be that your .msf4/database.yml file is owned by another user (probably root, did you run metasploit as root before?)

You can check the ownership with ls -l ~/.msf4.

If you want to change it, run chown -R $(whoami) ~/.msf4 (assume you have logged in as jackattack)


Make an Ubuntu LiveCD/USB
Shut down the machine, remove the old drive, install the new drive
insert the CD/USB
boot the machine from CD/USB
install Ubuntu.

Easy-peasy, even easier than replacing an existing OS. What are "reboot CDs", by the way?


how can i turn on wifi and hotspot simultaneously in ubuntu 20.04?

You will need hostapd package and create_ap utility to do this. hostapd (host access point daemon) is a background process that can be used to create authenticated servers and access points.
create_ap is actually a script that offers some useful Wireless features. One of the features is creating a bridged Wi-Fi access point. You can go through its features and commands  here
First, install the hostapd package
sudo apt install hostapd
sudo apt update

Now, download the create_ap-master zip file from here
Extract the zip file, open a terminal in that directory (create_ap-master) and then run the following command
sudo make install

You have installed all the necessary tools. Now, you need to find out the Wi-Fi interface name which usually starts with wl. To get get this, simply run
ifconfig

If the above command did not work, install the net-tools package and run the above command again. The ifconfig stands for interface configuration and it gives all the possible interfaces that your network card can establish. You can see the results starting with en (ethernet), lo (loopback) and wl (wifi). Note down the wifi interface name e.g., wlo1
You can use the example commands in the official github page of create_ap that is given in the first link. For creating an ap sharing the same wifi interface, the given example is
Note that wlan0 is the wifi interface name. Replace it with the wifi interface name you got from the results of ifconfig command. So, to creat an wifi access point with <hotspot_name> and <pass_word>, run the following command.
sudo create_ap wlan0 wlan0 <hotspot_name> <pass_word>

Don't forget to replace wlan0 with your wifi interface name. Also, choose your desired hotspot name and password. After successfully doing the above steps, you can see your device's wifi and hotspot running simultaneously. It can now share the internet connection through an access point you just created.


fsck read-only file system on unmounted usb stick (SD Card Reader)

I am suspicious that VMWare Workstation is not giving you write access to the SD card. If you are confident that isn't the issue, then continue with normal non-VMWare debugging steps below.
fdisk -l is great for listing partitions, but won't tell you which partitions are actively mounted. Try mount | grep sdc instead and be sure to umount any matches.
If the fsck continues to generate Read-only errors, watch dmesg -w while fsck is running for disk failure messages. If you don't get failures in dmesg, then the lock switch or uSD adapter is likely bad. If you are getting severe disk failure messages in dmesg, then it is time to extract as much data as you can with ddrescue, safecopy, myrescue or a similar tool and scrap that SD card.


You might need to install the libdvdcss application so that your system can read DVDs.

From the /usr/share/doc/libdvdread4/README.css file:

Many DVDs use CSS[0] as a form of a Digital Rights Management (DRM) to encrypt
the content of Video DVDs. To play such discs a special library is needed to
decode them, libdvdcss.

Due to the legal limbo of libdvdcss in some particular juristictions, some
distributions including Debian do not distribute libdvdcss.
If it is legal for you to use CSS in your juristiction, you can:

  * Manually download and compile the source code from
    <http://www.videolan.org/developers/libdvdcss.html>.

  * Use packages from derivatives that include libdvdcss.

 [0] <http://en.wikipedia.org/wiki/Content_Scramble_System>

In the site of http://www.videolan.org/developers/libdvdcss.html there are instructions of how to setup a repository for installing libdvdcss.

From the above site:

  Our Debian/Ubuntu repository can be accessed by adding the following
  lines to /etc/apt/sources.list

 deb http://download.videolan.org/pub/debian/stable/ /
 deb-src http://download.videolan.org/pub/debian/stable/ /

  And by running

 wget -O - http://download.videolan.org/pub/debian/videolan-apt.asc | sudo apt-key add -

Then their instructions end, and you finish the installation with the following lines:

sudo apt update
sudo apt install libdvdcss2

Hope this helps!


Update Manager got stuck (but not frozen) while installing downloaded updates. What should I do?

Ideally you should skip configuring flashplugin-installer and reconfigure it when you have a stable connection.

You can kill the download processs to proceed without configuring the package, mostly it is wget, or sometimes curl, but here it seems that it downloads via debconf.

To abort the transaction, you can kill dpkg,

sudo killall dpkg

Then remove the lock,

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

Then when you have a stable connection, execute,

sudo apt-get -f install
sudo dpkg --configure -a


As far as I know you can't make launcher like that but you may try cairo-dock(sudo apt-get install cairo-dock) or Docky (sudo apt-get install docky) to add custom dock for ubuntu. Thank you


What is the better netbook OS for me- Jolicloud or Kubuntu Netbook Edition?

As mentioned above by João Pinto any one that is answering is likely to be subjective.

So in my experience Jolicloud is just ready for netbooks. I have tested it and installed it for many friends and customers. What they love is, its clean purpose... the net. But jolicloud is not just the web, if you like vlc for viewing your videos you can install it through a very comprehensive package manager.

Note that jolycloud 1.1 is Ubuntu 10.04 under the hood and after they test their repositories it will automatically sync with 10.10 without bothering you. You can even check if your netbook is in this list
http://www.jolicloud.com/product/compatibility
If it is, it is fully supported.... if not the check if Ubuntu 10.04 is compatible with it from : http://webapps.ubuntu.com/certification/

And last but not least, if you have tried Ubuntu 10.04 and it work then jolicloud will work.

Personally I loved Jolicloud...
You can test them both jolicloud and keep the one you loved most...


How to find the n largest files in a folder?

find . -mindepth 2 -printf "%s\t%p\n" | sort -n | cut -f 2- | tail -n $n

Here, the largest file is last. If you want to change the order so the largest file is first:
find . -mindepth 2 -printf "%s\t%p\n" | sort -nr | cut -f 2- | head -n $n
# .............................................^...............^^^^

With the GNU toolset, you can handle filenames that contain newlines (annoying but valid):
find . -mindepth 2 -printf "%s\t%p\0" | sort -znr | cut -zf 2- | head -zn $n

And to get your desired output, you can do:
find . -mindepth 2 -printf "%s\t%p\n" |
  sort -nr |
  head -n 5 |
  perl -MNumber::Bytes::Human=format_bytes -F'\t' -lane '
    push @F, format_bytes(shift @F);
    print join "\t", @F;
  '

Using perl module Number::Bytes::Human from CPAN.


I finally managed to solve the problem!

Remove current installation of pybfd by pip uninstall pybfd.
Clone my fork of pybfd which fixes the issue on 16.04 onwards. (created a pull request though)
Install the package by sudo python setup.py install.

Update #1: My pull request merged, you can now clone the original repo.


How do I select a root file system when partitioning?

You need to select a root file system in the advanced partition editor, select your hard drive where you want Ubuntu and set the mount point to /.


Unless someone reverse-engineered the protocol of your specific mouse and put a driver on Github or somewhere else (use your favorite websearch) you are out of luck. For example I know there's a tool for Logitech G300 models.

Otherwise, if your mouse has certain keys or key combinations hardcoded into it, which is often the case, you could use something like xbindkeys to remap them to whatever you like.


Issues when installing python package from github (google/protobuf)

So I got the answer from someone else, here is what finally worked for me:

First get a clean download of all the code (not only the python part as I initially did):

$ git clone https://github.com/google/protobuf.git

Then install some dependencies and compile:

$ cd protobuf/
$ apt-get install python-numpy python-scipy python-dev python-pip python-nose g++ libopenblas-dev git autoconf automake libtool curl make g++ unzip

Then follow src/README.md:

$ ./autogen.sh
$ ./configure
$ make
$ make check
$ sudo make install

Then install the python part, as described in python/README.md

$ cd python
$ python setup.py build
$ python setup.py test
$ python setup.py install


DELL XPS13 restarted for update- now freezes after 30 to 90 seconds, even if not logged in

Have you tried running "sudo apt-get autoclean" This will remove any old packages, and show if any additional updates are needed.


# To set presentation mode
inhibit_cookie=$(qdbus org.freedesktop.PowerManagement.Inhibit /org/freedesktop/PowerManagement/Inhibit org.freedesktop.PowerManagement.Inhibit.Inhibit "a name" "a reason")

# To unset presentation mode
qdbus org.freedesktop.PowerManagement.Inhibit /org/freedesktop/PowerManagement/Inhibit org.freedesktop.PowerManagement.Inhibit.UnInhibit $inhibit_cookie


The solution is here: https://stackoverflow.com/questions/36394101/pip-install-locale-error-unsupported-locale-setting

Since I am running python2.7:

$uname -a
Linux tools1-itigo-tech 4.4.0-24-generic #43-Ubuntu SMP Wed Jun 8 19:27:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
$python --version
Python 2.7.11+
$unset LC_ALL
$pip install xmltodict
Traceback (most recent call last):
File "/usr/bin/pip", line 11, in <module>
sys.exit(main())
File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 215, in main
locale.setlocale(locale.LC_ALL, '')
File "/usr/lib/python2.7/locale.py", line 583, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
$export LC_ALL=C
$pip install xmltodict
Collecting xmltodict
Downloading xmltodict-0.10.2.tar.gz
Building wheels for collected packages: xmltodict
Running setup.py bdist_wheel for xmltodict ... done
Stored in directory: /home/usr/.cache/pip/wheels/2a/dc/70/da8958d7089d994c8614bc38210f64855f09615e85707bf615
Successfully built xmltodict
Installing collected packages: xmltodict
Successfully installed xmltodict


Maybe this is something you would be best asking the developers themselves. http://banshee.fm/


Seems to be an issue with the file /etc/grub.conf. Removing the file and re-configuring seems to work:

sudo mv /etc/grub.conf /etc/grub.conf.$(date +%F)
sudo dpkg --configure -a


I can't comment, but did you end up upgrading grub at some point? This causes many people errors... And be more descriptive what grub rescue line comes up


Cannot enable unity 3D effects on Alienware M14x

I am not sure if this will help or not, but on the forums someone described they were suffering from a similar issue with the same card. They said that they removed the Nvidia Drivers and then were able to use Unity/Compiz. Here's the link to the Forum Post http://ubuntuforums.org/showpost.php?p=11197162&postcount=7 .

Hope this helps.


Tor is a unique service in how it operates - a default Tor installation doesn't have any ports you can sniff with an nmap scan from another system.

Assuming you have a default install of the Tor process, without any additional configuration on it, and only running so you can stick your browser and things to a SOCKS proxy to go into and over Tor, then this is the only listening port for Tor:
(this is from netstat -tulpn)

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:9050          0.0.0.0:*               LISTEN      -

Unless you are scanning your system from locally, you won't see a Tor port, since 9050 is bound only to localhost, which is only able to be accessed from the machine itself.

So, unless you open up the Tor proxy port binding to bind to one of the IP addresses assigned to the system and NOT to the local machine's 127.0.0.1 address, you won't see anything show up on an nmap scan from an external system that is not the system running Tor itself.

The only way any port scanner, nmap or otherwise, would see this is if you're running a local portscan from your system itself, and not from another IP address on the network.  So, regardless of the version of nmap it can't scan non-open ports.  Something bound to your localhost (127.0.0.1) just can't be scanned from externally.


Installing JetBrains Toolbox on Ubuntu 17.10

If you launch the Toolbox application once you can click the icon in the top bar and go to settings and you'll see a check box to set it to launch at startup. To get the application to show up in the application menu, you need to have a .desktop file for it (mine is in ~./local/share/applications), I'm not entirely sure how mine arrived there, but I've put it below. You'll want to replace <username> with your actual username, and you may want to comment out the Icon line because you may not have that file.

[Desktop Entry]
Type=Application
Name=JetBrains Toolbox
Exec=/home/<username>/.local/share/JetBrains/Toolbox/bin/jetbrains-toolbox %u
Icon=/home/<username>/.local/share/JetBrains/Toolbox/toolbox.svg
StartupNotify=false
Categories=Development;IDE;
Terminal=false
X-GNOME-Autostart-enabled=true
StartupWMClass=jetbrains-toolbox
MimeType=x-scheme-handler/jetbrains;


When configuring update-notifier - cannot find chardet even though it is installed

OK, found the problem.   After mucking around with it a bit, I found out that I have two different version of python3 (3.5 and 3.6) and python3 symbolic link in /usr/bin was pointing to the wrong one (3.5).   Deleted the link, re-generated to point to 3.6 - now things work:

$ sudo dpkg --configure -a
Setting up update-notifier-common (3.168.10) ...
Setting up update-notifier (3.168.10) ...
Setting up ubuntu-desktop (1.361.3) ...

So, essentially my bad from previous mucking around with my system.


I think it may be a problem with the which OS version you have. I myself have an AMD cpu & gpu, with an asus m5a99fx motherboard. How many gigabytes of memory do you have? I'm sure you know this but 32bit is 2GB or under, 64bit is 2GB and above. Again I would just double check the OS version because i've installed my 14.04 disk on 3 different computers. Hope this helps!


Did you read docs about Nautilus? There are examples of what should work. And from your tried, only this one is mentioned:

ssh://username@servername.example.com/folder

but it is automatically rewritten in "recent servers" to:

sftp://username@servername.example.com/folder

Basically, there is no ssh file transfer protocol. SSH is just Secure Shell or secure channel to pass data. If you want to transfer files, you need to use something built upon it. And sftp is the most commonly used protocol for doing so. The only more common is scp and it is too limited for remote filesystem mounts.


How do I remove an existing built package from a PPA?

You can delete packages individually from a PPA. Here, we will delete the mtr-0.82-3 package from my Sandbox1 PPA:

Click on the PPA from your Launchpad page:

Click on View package details on the top right:

Click on Delete packages on the top right:

Tick the package(s) you want to delete, and an optional comment. Then click the Request Deletion button:


Files downloaded with ubuntu cannot be accesed with win 7

It could be a encoding problem in the path name, try to remove any special characters in the path.


Windows Vista Crashing After installing via Wubi

This sounds like it might be hardware related, you should test the memory/disks on your machine for errors:

https://superuser.com/questions/155615/windows-7-x64-how-can-i-test-my-memory
How can I check my RAM and hard drive for errors?


Nautilus - Open with Sublime - Open in new window

The easiest is just to edit sublime's .desktop & add the -n option to the Exec= line. This works well when one has disabled sublime's default of remembering the last session.

To do so just run sudo nano /usr/share/applications/sublime-text.desktop & add -n to the Exec= line so it looks like -

Exec=/opt/sublime_text/sublime_text -n %F

Also to note - on some systems sublime will cause cursor run on when used from the context menu. If that's the case while the .desktop is open to edit scroll down to the StartupNotify=true line & make it StartupNotify=false. This will prevent cursor run on..

(- for those not used to nano  - after editing go -

ctrl+o

press enter key on keyboard

ctrl+x


How to set time to "keep synchronized with internet servers" in Lubuntu

If you cannot find Time and Date, you can also use the terminal.

Open the LXTerminal
Enter

sudo dpkg-reconfigure tzdata

You will be asked for your password
Follow the directions in the terminal.


Proxy Blocking apt-get, Allowing wget/curl

The problem is with the reported user-agent.  This is why the proxy worked with wget and not apt-get.

I ran tcpdump -Ai eth0 port 8080 to see what the http looked like and received a 'non approved user-agent' message from our corporate proxy.

<...snip...>

ACCESS DENIED

The software you are accessing the internet with is not reporting an
    approved "User-Agent"

<...snip...>

The Ubuntu Manpage had a section that explains that configuration parameter.

  Acquire::http::User-Agent can be used to set a different User-Agent
  for the http download method as some proxies allow access for clients
  only if the client uses a known identifier.

apt-get 307 error provided the needed syntax, you simply add the below syntax to /etc/apt/apt.conf.d/30proxy (or whatever you choose).

Acquire::http::User-Agent "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)";

Now, apt-get updates go through flawlessly.

root@server:/etc/apt/apt.conf.d# apt-get update
Hit http://security.ubuntu.com precise-security Release.gpg
Hit http://us.archive.ubuntu.com precise Release.gpg
<...snip...>
Hit http://us.archive.ubuntu.com precise-backports/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-backports/universe Translation-en
Reading package lists... Done


Failed to implement Nginx caching - connection refused

The issue at play is a misconfiguration by you of the nginx fastcgi_pass directive to point at a nonexistent backend/upstream gateway.

Since 14.10 (or was it 15.10, I dont remember now exactly) php-fpm listens on a local UNIX socket and not TCP port 9000 by default.  I know this because I spearheaded the effort to make this change in Ubuntu and Debian for the defaults for FPM, and it was accepted in the packaging.  And I know this is your setup because of the listen = line of your FPM www.conf which says its listening on a socket.

Put unix:/run/php/php7.0-fpm.sock in your fastcgi_pass directive in the nginx server block, and not the 127.0.0.1:9000 you have.  That should then allow it to work properly because the correct PHP upstream gateway is then used.


How to make a application/script available from Bash?

The application/script:

needs to be in one of the directories in PATH (according to FHS you should use /usr/local/bin)
needs to be executable and, if it is an interpreted script, have a shebang (e.g. #!/bin/sh for shell scripts, #!/usr/bin/env python2 for python scripts).


How do I remove icons from the Unity launcher using a script?

Get the list of launcher items:

gsettings get com.canonical.Unity.Launcher favorites

This will return something like:

['nautilus-home.desktop', 'gnome-terminal.desktop', 'gedit.desktop']

which you can manipulate in your script (eg. using sed), and then
Set the launcher item list:

gsettings set com.canonical.Unity.Launcher favorites "['gimp.desktop']"

Don't forget the quotes.


System load indicator in the software center
(sudo apt-get install indicator-multiload)
Conky
(sudo apt-get install conky)


Not able to create a shortcut on the desktop for URL from Chrome

Try to include the line :

Exec=/usr/bin/x-www-browser file:///<PATH TO FILE>/file.html


It is normal that laptops have a worse battery-time in Ubuntu. It's mainly because of the drivers you install; hardware companies control programs for drivers are (often) not open-source, so alternate versions are often worse. Also in Ubuntu 11.10 many battery-saving features are disabled because they don't work for some machines.


How does /etc/default/console-setup work?

setupcon is the program which is responsible for updating /etc/console-setup/cached.kmap.gz.
setupcon is run on startup inside the initramfs image, so you'll need to update that before the changes apply


Run script when an always-connected drive is mounted

Turns out that this is not easy to accomplish with udev. With udevadm monitor -p I verified that, when mounted, my SD card fires no ACTION=="mount" event in udev. I read somewhere that the mount event has been deprecated or removed, which if true would explain it. udev, after all, is supposed to manage hotplugging.

In addition, udev-triggered scripts must complete very quickly because they block udev while running. Not ideal for a substantial task, for example backup.

I achieved my aim by writing a systemd service file in /etc/systemd/system/ using ExecStart for .mount:

[Unit]
Description=Script to run when drive mounted at /path/to/Stuff
Requires=path-to-Stuff.mount
After=path-to-Stuff.mount

[Service]
ExecStart=/path/to/script.sh
Type=forking

[Install]
WantedBy=path-to-Stuff.mount

Works correctly, though it does require specifying the mount point.


Start Krusader in a directory from command line

:~$ krusader --help

Usage: krusader [Qt-options] [KDE-options] [options] url

Krusader
Twin-Panel File Manager for KDE

Generic options:
  --help                    Show help about options
  --help-qt                 Show Qt specific options
  --help-kde                Show KDE specific options
  --help-all                Show all options
  --author                  Show author information
  -v, --version             Show version information
  --license                 Show license information
  --                        End of options

Options:
  --left <path>             Start left panel at <path>
  --right <path>            Start right panel at <path>
  --profile <panel-profile> Load this profile on startup

Arguments:
  url                       Url to open


Try opening alsamixer in a terminal and going to the "capture" page with F4.

Try changing any additional input sources you have to other inputs, and reducing the volume of any additional capture channels (that, for example, have very high values even if there's no sound coming to your microphone) to zero by selecting them with left/right arrows and pressing M or 0.

On the other hand, screeching is often audio feedback, you may benefit from reducing the volume of your laptop speakers, or investing in a headset.


For that you will have to go to Terminal Menu bar EDIT>>Profile Preferences>> Tick User custom default maximum size

There you can set the values according to your desktop resolution.

Example , i guess this is what you want.


How I can recover a previous version of a file?

If you used GEdit and you havent disabled the backup function, then there must be a hidden file with name similar to your file but with ~ appended to it. So if your file name is somefile.txt then look for somefile.txt~ in the same directory. This is the backup file and will give you your files state before last save.


Ethernet not working on Ubuntu 18.04.5 LTS

the content of the sudo vi /etc/network/interfaces is

iface enp0s31f6 inet loopback

Please change the file to:
auto lo
iface lo inet loopback

Reboot and tell us if there is any improvement.


How to recover faulty pam.d configuration?

Try to boot with a live USB or CD/DVD with Ubuntu and edit the files that you need.
This post will explain you how to do it.


Tried some things by myself. The result:

It worked when applying this setup:

Haskell installation with:

sudo apt-get install haskell-platform

yesod installation with:

sudo apt-get install yesod

Cabal update.

And then continuing as provided in the quick start docu of yesod, yesod init etc etc.

Need to verify this, but at the moment it works, yesod test project compiled and runned nicely.


If I've read the manual correctly (https://developer.ubuntu.com/en/phone/apps/html-5/guides/html5-guide/), you can use Web APIs.

This means you can use the <input type="file" multiple> element in your HTML. The handling of the file should be done in javascript, see https://docs.webplatform.org/wiki/apis/file/File

Full example:

<html>
<body>
    <input type="file" id="yourFileID" multiple>
<script>
    document.getElementById('yourFileID').addEventListener('change', handleFileImport, false);

    function handleFileImport(evt) {
        var files = evt.target.files;

        fileReader = new FileReader();

        fileReader.onload = function (evt) {
            console.log(evt.target.result);
        }

        for (var i = 0, f; f = files[i]; i++) {
            fileReader.readAsDataURL(f);
        }
    }
</script>
</body>
</html>


There is a bunch of newer kernels backported into Lucid's repositories.

~$ apt-cache search linux-image-generic-lts
linux-image-generic-lts-backport-maverick - Generic Linux kernel image 2.6.35-xx
linux-image-generic-lts-backport-natty - Generic Linux kernel image 2.6.38-xx
linux-image-generic-lts-backport-oneiric - Generic Linux kernel image 3.0.0-xx

Do you know in which kernel the problem you referred to has been fixed?


Why does sudoers only allow me to set NOPASSWD for ALL?

How about adding just using the directory path without the wildcard?

www-data ALL=(ALL:ALL) NOPASSWD: /home/evermind/scripts/

According to the sudoers man page:

A Cmnd_List is a list of one or more
commandnames, directories, and
other aliases. ... A directory is a fully
qualified path name ending in a '/'.
When you specify a directory in a
Cmnd_List, the user will be able to
run any file within that directory (but
not in any subdirectories therein).


How do I solve the problem of inverted colors in OBS studio?

In your scene, highlight the vidio source and choose "Filters" from the menu.

Choose the filter marked "Color Correction".  Inside the filter, slide the "Hue Shift" back and forth until the colors are correct.


Trying to change frequency channel for wireless network

"For some reason, I'm unable to access router settings" is as it should be, but the Wi-Fi router is where the Wi-Fi channel is set.

You'll have to find the person responsible for the router's settings, and make a case for a channel change (which will force Everybody to reconnect).


Can't boot Ubuntu 12.04 64x after installation alongside win7

It seems to me you never install GRUB2 to MBR. EasyBCD is just a windows like bootloader. When you choose the ubuntu option in easyBCD it just sends you through to GRUB2, which it seems you didn't install. You need to reinstall GRUB2


changing 127.0.1.1 back to 127.0.0.1 -- will it break anything in Unity?

Your local machine IS 127.0.0.1. It's the standard IP for the localhost.

Instead, the hostname of your machine resolves to 127.0.1.1.

It should be no problem to change it to anything in the range 127.0.0.0/8 which is reserved for loopbacks.

As long as nothing listens exclusively on 127.0.1.1 you should be safe.
To find if there's something listening on 127.0.1.1:

sudo netstat -tunelp | grep 127.0.1.1


How to open new Tmux pane horizontally with 20% tall?

It turns out I can bind 1 shortcut to do 2 commands separated by \;

bind + split-window -v -c "#{pane_current _path}"\; resize-pane -D 20

Edit: Thank to Meuh's help, now it looks like this

bind + split-window -v -p 20


Connect to connected OpenVPN client from different subnet

Specific steps to answer this question for my case:

Stop OpenVPN if running

sudo service openvpn stop

Create a script file. I'll use up-route.sh

sudo nano /etc/openvpn/up-route.sh

Add the following:

#!/bin/bash
route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.1

Edit your OpenVPN config file. In my case it is /etc/openvpn/vpn.conf

sudo nano /etc/openvon/vpn.conf

Add the following lines to the bottom:

script-security 2
up up-route.sh

Save and Exit. Start OpenVPN again:

sudo service openvpn start


Can I install Ubuntu 14.04 LTS on a laptop without pae?

Ubuntu 14.04 (and derivatives like Xubuntu) supports an option called forcepae which enables it to run on many older Pentium M laptops. Keep in mind is that these laptops are a decade or so old, and often lack the memory and GPU required to smoothly run a desktop like Unity that is designed for modern 3D accelerated systems. It might be better to try one of the lightweight distributions like Xubuntu.

To enable forcepae:

Boot the 32-bit Ubuntu (or Xubuntu etc.) installer
When the image of the keyboard and little man in circle appears hit the Tab key
"Choose your language" popup appears. Use the cursor keys and hit the Enter key to choose your language
Press F6, a grey menu will popup with some boot options
Press escape to close the window
You will now see a line that says:

Boot Options file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz quiet splash --

Edit this line and add the forcepae parameter to the end:

Boot Options file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz quiet splash -- forcepae
Hit the Enter key, hopefully Ubuntu will boot and the rest of your install will be successful. If you have graphical problems with Unity, or just find it slow, try a more lightweight distribution like Xubuntu.


ad_gpo_map_interactive disappeared from sssd?

No activity here, so maybe the wrong stack exchange site.

Closing, and moved to server fault: https://serverfault.com/questions/971402/ad-gpo-map-interactive-disappeared-from-sssd


How can I move the clock and date to the bottom in Ubuntu 20.04?

There are a few options here, all requiring, obviously, to install a Gnome Shell extension.

To do just what you want, i.e., move the bar to the bottom, install the extension BottomPanel by abstract. The extension Just Perfection by JustPerfection can do much more, but also includes an option to move the panel to the bottom. It is very well maintained and even works on the newest Gnome Shell 40.
A more invasive change would be to use the extension Dash to Panel by jderose9. This changes the setup to something resembling that of Windows 10. The bar moves to the bottom, and also includes the dock. That extension is available in the standard Ubuntu repositories. You can install it from the Ubuntu software center or with the command sudo apt install gnome-shell-extension-dash-to-panel.


A good partition setup for this purpose:

swap: 8 GB. This is very safe amount of swap space for your amount of RAM. It will enable the Suspend to Disk option, if your graphics driver supports it.
/: 75 GB. Upon installation, only about 4-8 GB of this will be used. Many packages will have to be installed to provide a suitable environment for the developer using this computer, and much - but not all - of this space will be used.
/home: 167 GB. This is very optional - in fact, unless you plan on installing a whole other Linux distro besides Ubuntu, it will be less complicated to simply include this with /.
/boot: On modern hardware it is not necessarily helpful to have a separate /boot partition.

That said, to be perfectly honest, it is probably best to simply leave this up to the installer unless you have a specific reason for wanting to set up different partitions. Ubuntu setup now comes with the option to reinstall Ubuntu without overwriting /home or other local system folders.


CPU frequency is always at minimum, even if CPU usage is 100%

It turned out that this problem was unrelated to the intel_pstate driver, because acpi_cpufreq, the other driver, reported better values but never set them. The OS had probably no control over this.

This is a issue that happens with certain Dell laptops when charging is broken in a way that the laptop is powered by AC but not charged. Fixing the hardware problem removes the problem. In this case, it was an almost invisible piece of cloth in the power connector that prevented electrical contact.


Install Microsoft Office Proofing tools under Wine

Office 2010 works fine under Wine as long as you install first "playonlinux" package.

Install playonlinux
start playonlinux
install - office - office 2010

if you do not have a official version of office 2010 try do download a pre activited version.

This should do it


Can't update Ubuntu 19.04 due to dependency error. How do I fix this?

Unmet dependency means that the package attempted to install is looking for dependencies, and the needed version is not found. One way to solve this could be to update the package database, clean out the package cache, and download-and-reinstall the newer version.

Try these commands on terminal (changing the package-name part to packages you see on the "package system is broken window"), one by one and hitting enter on each:

sudo apt update
sudo apt -u dist-upgrade
sudo apt clean package-name
sudo apt install --reinstall package-name


How to make Ubuntu 12.04 desktop session start on boot without a monitor plugged in?

i hope i understood that correctly, have a look at this post

sudo service lightdm start

"BillR" is telling something , that it is possible to boot only in text mode, or only in graph. mode.


How do you output the filename in find command while using -exec?

simply add a -printf option before

find -printf '%p' -exec command \;


Headset (TSCO-TH5310H) Bluetooth connection problem on ubuntu 16.04

For now you can go into settings, Software and Updates, Developer options and enable Pre-released updates from xenial-proposed.  Then after the cache is updated do
sudo apt-get install pulseaudio pulseaudio-module-bluetooth

Then reboot and see if you can connect


why all Arabic regional formats uses US numerals

In LibreOffice: Go to:

  Tools > Options > Language settings > Complex  text layout

Then choose context or Hindi instead of Arabic.

In terminal:

Download this package, it's a .deb file; you can install it using:

sudo apt install ./name.deb (or sudo apt install /path/to/package/name.deb)

For further information, look at this links:

Link1

Link2

Link3

Arabic community


base64 encode is giving ambigious results

The answer is simple. With

echo 123456789 | base64

or

echo qwertyuiop | base64

you always have a trailing newline.

Avoid this behavior by using the n switch for the echo command

% echo -n qwertyuiop | base64
cXdlcnR5dWlvcA==

or use printf

% printf qwertyuiop | base64
cXdlcnR5dWlvcA==

as you can see it is the same result as returned by base64encode.

And as @AndreaCorbellini says in the comments

  Base64 produces 4 bytes of output for every 3 bytes of input, so there is never a 1:1 corrispondence between the input bytes and the output bytes. This means that a new line may end up being encoded in different ways, depending on the bytes that precede and follow it.


LUKS encryption, header on a dongle USBdrive?

I am writing now from the machine that works exactly that way.

First, you will need to put whole /boot folder on the dongle.
Encrypt the disk with key file and put the keyfile into the boot dongle too.
Edit /etc/crypttab, add this line

sda2_crypt UUID=14-88 /dev/disk/by-uuid/88-14:/rootfs.key     luks,keyscript=/lib/cryptsetup/scripts/passdev

where sda2_crypt is arbitrary name, first UUID is of encrypted root partition, second - of dongle partition and rootfs.key is the keyfile name.

Then Update your /etc/fstab accordingly.
Mount dongle as /boot and do update-initramfs

This should be enough. Different instructions suggest you to add kernel boot arguments, but in my case it worked without.If you ever want to use password instead of keyfile, just edit /etc/crypttab and do update-initramfs.


Kubuntu 16.04, icon settings / select editor for desktop icon

Icon widget properties are back with the Plasma 5.9 or later. Plasma 5.9 beta announcement: https://www.kde.org/announcements/plasma-5.8.95.php :

  The icon widget that is created for you when you drag an application
  or document onto your desktop or a panel sees the return of a settings
  dialog: you can now change the icon, label text, working directory,
  and other properties. Its context menu now also sports an 'Open with'
  section as well as a link to open the folder the file it points to is
  located in.


How can I run dotnet on ubuntu without using sudo?

One possibility is to use mono instead of dotnet. It's an open source implementation of the .NET framework and doesn't require root permission to run. It supports almost all of the .NET 4.7 features (see https://www.mono-project.com/docs/about-mono/compatibility/ for exceptions).


How to enter every directory in current path and execute script

find . -type d -exec bash -c 'cd "$0" && pwd' {} \;

Swap pwd for your script. And . for the root directory name, if it's not the "current" directory.

You have to wrap the exec clause in bash -c "..." because of the way -exec works. cd doesn't exist in its limited environment, but as you can see by running the above command, when you bring in bash to do the job, everything runs as predicted.

Edit: I'm not sure why 2011 Oli didn't think of -execdir but that's probably a faster solution:

find . -type d -execdir pwd \;


On terminal apt shows upgradable while Software Updater says "The software on this computer is up to date."

The command sudo apt install expects at least one package name to install after the install keyword. See man apt . Here's an excerpt.

  install, remove, purge (apt-get(8))
             Performs the requested action on one or more packages specified via regex(7), glob(7) or exact match. The requested
             action can be overridden for specific packages by append a plus (+) to the package name to install this package or a
             minus (-) to remove it.

Nothing is upgraded because you didn't ask for that and nothing is removed because you didn't ask for that either. Nothing is installed since you told it to install in effect nothing, which it did.

You might also find these related posts interesting:

What is the difference between apt and apt-get?

What is the difference between Software Updater and Ubuntu Software Updates?

Sources:

man apt

http://manpages.ubuntu.com/manpages/xenial/man8/apt.8.html

Further reading:

https://itsfoss.com/apt-vs-apt-get-difference/

https://salsa.debian.org/apt-team/apt/blob/master/README.md


Ubunto .rar file is downloading instead of .iso

Remove any programs that extract archives (eg. WinRAR,7Zip, etc.) on your Windows PC
Download the Ubuntu 20.04 LTS desktop image. Click here for a direct download link (for 64bit computers)
You should now have a Ubuntu 20.04 .iso disk image file


Mysql installation error on ubuntu 14.04

You can try a clean uninstall of all that is related to mysql.

sudo apt-get purge mysql-community-server mysql-server

And then reinstall the mysql-server. If that does not work, try to do a search for mysql using apt:

apt-cache search mysql

And try to install another version for mysql-server and mysql-client.


Black screen but mouse active after machine not used for period of time

The problem is related with nouveau, the default open source driver in use for your Nvidia GeForce 8400 GS card.

The community driver is great mainly because it provides support for a broad range of Nvidia chipset from several different generations, but in some cases the proprietary (closed source) driver from Nvidia is required for better overall performance and particularly games or any other software with similar requirements.

For the GeForce 8400 GS chipset Nvidia recommends the current long term support "legacy" driver: 340.xx.

The driver can be installed using Additional drivers as in the example below:

Source: https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia


Finally I found the source for this problem; a random crash of "TVGuiSlave" proccess and the monitor came back to normal.
This is then related to Teamviewer, which I have removed from the startup applications list to avoid this.


Does LUKS decrypt the whole hard disk at the time of boot?

Decryption of the whole hard drive would require reading the whole hard drive.

The dm-crypt wikipedia page states that dm-crypt is a device mapper target, hence a block device.
Since the real file system (ext4, btrfs, ...) lay on top of that and is not even aware of the underlying block device, it has no reason to read (and decrypt) unneeded blocks.


Fixed it! The problem was the file /etc/mysql which wasn't being removed by purge. I renamed it with mv and then installed mysql-server and now I can log into mysql.


Disconnect the notebook from the AC Power while booting up. I had the same issue with an old version and that worked. After you log in fully you can plug-in the power again.

It has to do with Acer's ACPI settings. The other way is to add acpi_osi=Linux to boot options, with the e grub command.


How can I install a previous version of Firefox as if it was the default?

I think you're better off figuring out why Firefox 21 isn't working for you. The problem might not be with Firefox 21, but with a corrupted profile that will affect all Ubuntu versions of Firefox.

That aside, you can load Firefox 20 from the lucid-security repo:

sudo apt-add-repository 'deb http://us.archive.ubuntu.com/ubuntu/ lucid-security main'
sudo apt-get update
sudo apt-get install firefox/lucid-security

On my system running 12.04 (precise), part of the resulting output shows:

  dpkg: warning: downgrading firefox from 21.0+build2-0ubuntu0.12.04.3 to 20.0+build1-0ubuntu0.10.04.3.
  (Reading database ... 332312 files and directories currently installed.)
  Preparing to replace firefox 21.0+build2-0ubuntu0.12.04.3 (using .../firefox_20.0+build1-0ubuntu0.10.04.3_i386.deb) ...


I enjoy Evolution the default mail client for Ubuntu.

An integrated e-mail program with an address book, calendars and tasks.
IMAP, POP3, and SMTP support
Intelligent Junk Mail control
Calendar integration with the gnome-panel calendar.
Contact sharing with other software such as Pidgin
Supports WebDAV and iCal web calendars
Multiple account management
GPG key and certificate storage
Plugin support (including MAPI plugins for interfacing with Microsoft Exchange)


How to whitelist / blacklist certain urls not to use VPN connection?

Discuss it with the people who set up VPN for you.

This is commonly known as split routing, where the VPN tunnel will be used for resources that is inside the corporate network, whilst default gateway will be used for the rest. This is usually easier than filtering by service. Commonly, the corporation will have some kind of internal plan over the network that makes it easy to provide split routing.

You should check if it's permitted in your organization. Not all organizations allows split routing, because they for instance want to do data loss prevention on your traffic.


How do I install the runtime version of vim?

Ubuntu ships vim-tiny by default. To get the real deal (which includes vim-runtime), simply run the following command in a terminal:

sudo apt-get install vim

I would normally include a Software Center link, but you seem like a pretty technical fellow.


phpmyadmin error message autoload.php missing or unreadable

Go to your directory which your nginx/apache is taking your phps.

sudo composer install

ok.
If it says that composer didnt installed then go this link and follow instructions then do it again

sudo composer install


How to show what the /bin directory does using examples?

As the directory /bin is one of the several directories containing executables, you can show this by using the command which followed by an executable name in terminal.

For example: which grep, which mkdir, which date, etc. (you can pick as you wish from the directory) will all show you that it is in the directory /bin (although there are many more in /usr/bin for example).


CLI mod(root) dont accept login credentials on ubuntu 12.10

You do not need to log on as root. As a matter of fact, this is a bad practice on which I will not lecture today other than mentioning that you should use the root account as little as possible. Make it a challenge for yourself to use it as little as possible.

What you should do is log on to the CLI with your regular account; the username you log on with to the GUI.

Then you have two options:

If you only need to type a few commands, type sudo in front of it. Eg: sudo apt-get install mydriver
If you really need to type a lot of commands as root, you can change to root user by typing sudo -i


It seem this is not related to docker but related to less space in your system. your system have less space so that are not allowing you to run this command. check your system space using command:

df -Th

and if any partition near to full then try to create space by deleting or moving some file and also try

 sudo apt-get clean
 sudo apt-get autoremove
 sudo apt-get autoclean

EDIT:
your /var space is 100% so try to delete some space from it. you can delete logs file if not usable or delete other that is not important. once you create some space then you will be able to install or remove package and other activity.


Introduction

I can give you an answer for 12.04, although this may not be a totally definitive list of protocols. Before we start discussing the protocols, here is a quick summary of the nature of gvfs from /usr/share/doc/gvfs/gvfs-libs/README:

  Gvfs is a userspace virtual filesystem designed to work with the i/o
  abstractions of gio (a library availible in glib >= 2.15.1). It
  installs several modules that are automatically used by applications
  using the APIs of libgio. There is also fuse support that allows
  applications not using gio to access the gvfs filesystems.

  The gvfs model differs from e.g. gnome-vfs in that filesystems must
  be mounted before they are used. There is a central daemon (gvfsd)
  that handles coordinting mounts, and then each mount is (typically)
  in its own daemon process (although mounts can share daemon process).

Protocols

A lot of the supported protocols are listed in the gvfs-backends package and the tools you can use with those protocols are listed in the gvfs-bin package, which if you have them installed are available by right clicking the package in Synaptic and clicking on installed files to show the list.

Comparing the gvfs-backends package description and the list of installed files in Synaptic comes up with the following list.

archive://        archive files support
afp://            Apple file protocol support
afc://            access mobile devices such as iphone and ipod Touch
cdda://           audio cds support
cifs://           communicate with cifs servers
dav:// (webdav://) handles remote filesystems
file:///          access a local file, for example,
ftp://            access and use ftp server
gphoto2://        PTP camera and MTP media player support
http://           open http resources
https://          connect securely with https
obexftp://        bluetooth support
smb://            communicate with samba servers
ssh://            connect securely to server
sftp://           send files securely via sftp
usb://            mount a usb device directly, for example,

This is just a bare list; to do something with these protocols you can use the gvfs tools on the command line such as gvfs-open or gvfs-mount. The tools are listed in the gvfs-bin package at Ubuntu packages and in Synaptic if installed.  Basic examples from the command-line are:

gvfs-open file:///home/mike/
gvfs-open http://www.askubuntu.com

The first example will open you home folder in your default file browser; the second will open askubuntu in your browser.

For examples to do with remote filesystems, see this article.

As this answer was not supposed to go into detail on how to use the protocols, I won't go into great detail here, as there are other gvfs articles on this site.


Does Ubuntu's bootloader support native virtual machine booting?

It is not the bootloader to look for. We will of course need to load our Ubuntu OS before we can start and run any virtualization software.

We may probably define a custom session where we replace the desktop by a virtual machine. Just replace the commands that are responsible to run the desktop manager with commands to run your virtual machine after login. Don't forget to put logout at the end of your script.

Disclaimer: I haven't yet tested the procedures linked to above for light DM or a virtualization software but as we still use X-Server it should work. At least this will give you an idea where to start.


How to run Ubuntu in VirtualBox more smoothly?

If you only want 19.04 feeling (e. g. apps, repositories) I'd say go for lighter flavor like Lubuntu or Xubuntu, those will work great with only 2 GB RAM.

Ubuntu 19.04 needs more than 2 GB RAM to ran smoothly—3-4 GB is decent enough, also you can try enabling Hardware Virtualization to improve your guest OS performance.

Thus, assigning more RAM might help improve overall performance—other than that you're good to go.

Related:

How do I improve the performance of my VirtualBox guest?

How do I resolve slow and choppy performance in virtualbox?

How do I enable hardware virtualization technology (VT-x) for use in Virtualbox?

Will be Ubuntu 18.04 work fine on 2GB of RAM


Installing Ubuntu on a second non-empty drive

You say in your question that the Ubuntu installer "...just shows... one massive /dev/sdb partition." In Linux terminology, /dev/sdb is a disk identifier -- it refers to the entire disk, not to any partition on the disk. The disk might in principle have one massive partition (say, /dev/sdb1), which would be one problem; but if the partitioning tool is showing /dev/sdb as being unallocated (with no partitions), then that's an entirely different problem.

In the former case (one /dev/sdb1 partition), it could be that your disk is using dynamic (aka Logical Disk Manager, or LDM) partitions. In fact, this seems very likely, given that your screen shot identifies the disk as "dynamic." Linux can't install to such a disk. Some third-party tools can convert from dynamic/LDM to basic non-destructively, though. IIRC, both Partition Wizard and EaseUS Partition Master can do this, but I've never used either tool, so I can't comment on how well they work. Such operations carry a small risk of serious data loss, so I recommend backing up important data before proceeding.

If the screen shot you showed is deceptive, you may have a damaged partition table, which can confuse libparted (upon which the Ubuntu installer's partitioning features rely), resulting in an apparently-empty disk. This page covers this issue in detail. Such problems can sometimes be fixed by my FixParts utility.


Problem executing a php script every 5 min in 16.04

After some digging i was able to solve my Issue..

a) i ended up installing Postfix to be able to get debug info from the failing cronjob which showed me the following error

  /bin/sh: 1: cannot create /var/log/retscron.log: Permission denied

b) after fixing that it did not like the -f so i removed that

c) the final issue was that i used a some 3 party stuff in my code and it was loaded via Vendor/autoload.php which couldn't be found

  PHP Fatal error:  Uncaught Error: Class 'PHRETS\Configuration' not
  found in /var/www/html/PHRETS/retsphp.php:107

so i had to edit that as well to be the full path. After making all these changes it now runs fine. So hopefully that will save someone else some time chasing down a similar issue


Intel WiFi 6 AX210 not working on Ubuntu 16.04

Intel does not officially support AX210 wireless adapters on Linux yet, sorry. I had to find that out the hard way myself.
Linux 5.10 should bring the necessary firmware though, that should probably be available in ubuntu sometime in January.
Edit: It seems you've already managed to get it working, nice. I just wanted to add that I would recommend upgrading to a newer LTS release by April because public support is running out for this one.


This is an interesting question. You can blacklist the kernel modules that relate to audio, therefore the user-space software will not have access to those resources.

To find which kernel modules are loaded for your system configuration, run

lsmod | grep snd

The snd and snd-hda-intel kernel modules are likely the ones that all the rest depend on. Therefore, if you blacklist those, there will be no audio. The specific kernel module for HDMI audio is snd_hda_codec_hdmi.

To create the blacklist file, launch a text editor and create a new file.

gedit --new-document admin:///etc/modprobe.d/blacklist-all-audio.conf

Then, add in there

blacklist snd
blacklist snd-hda-intel

I would be interested to see whether PulseAudio will launch when there are no audio kernel modules. Please report back on this.


My battery died, and now Ubuntu won't start

Boot with a Live CD, and check your Ubuntu partition with Gparted.

To do this:

Right-click your Ubuntu partiton, and click Unmount, if the partition is mounted
Right-click your Ubuntu partiton, and click Check
Click on the green checkmark button ("Apply All Operations")

This will check for and fix any filesystem errors on your Ubuntu partition.

If the previous steps didn't work, then refer to this post for easy instructions on how to reinstall Grub.


Setting directory file permissions in Ubuntu using chmod

chmod uses a series of numeric entries to set file permissions rather than strings. The ubuntu version of the command given would be

chmod 0755 app/cache app/logs

This should work assuming www-data is the owner. If not,

chown www-data.www-data app/cache app/logs

will change it so www-data owns the directories.

Detailed article: http://mdshaonimran.wordpress.com/2010/06/13/chmod-change-filefolder-permission-in-ubuntu/


Try to install original drivers from manufactor of your video adapter: http://support.amd.com/en-us/download


Problem with 10.04 start at my notebook after updating

So I guess you mean Linux kernel, something like

Linux YOURHOST 2.6.32-37-generic #81-Ubuntu SMP Fri Dec 2 20:35:14 UTC 2011 i686 GNU/Linux

with version 37.

Did you remove the old kernels? I guess you're using grub. Does it silently boot up, or do you have an interception moment? If so, hit the  ↓ key in grub, and move to version -36, as a first workaround, and boot the old version, until the problem is fixed.

Make a bug report at bugs.launchpad.net
Read the LKML (Linux kernel mailing list) for the topic.
Read the new announcements or comments for new kernels.


which can only find executables in the PATH.

type is a Bash builtin, and will show aliases, plus other Bash-internal commands like functions, keywords, and builtins, plus executables and hashed executables.

Example shell session:

$ pip -V
pip 8.1.2 from /usr/local/lib/python2.7/dist-packages (python 2.7)
$ alias pip=pip3
$ type pip
pip is aliased to `pip3'
$ type pip3
pip3 is /usr/local/bin/pip3
$ which pip
/usr/local/bin/pip
$ pip -V
pip 9.0.1 from /usr/local/lib/python3.4/dist-packages (python 3.4)
$ type pip3
pip3 is hashed (/usr/local/bin/pip3)


How to find the number of CPU cores including virtual?

You can count no of CPUs

cat /proc/cpuinfo | grep processor | wc -l

Output :

2

To check the number of cores !

cat /proc/cpuinfo | grep 'core id'
core id         : 0
core id         : 1

Or

 $ nproc
 2

Or lscpu will show you all output:

lscpu

Architecture:          i686
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                2
On-line CPU(s) list:   0,1
Thread(s) per core:    1
Core(s) per socket:    2
Socket(s):             1
Vendor ID:             GenuineIntel
CPU family:            15
Model:                 4
Stepping:              7
CPU MHz:               2792.992
BogoMIPS:              5585.98
L1d cache:             16K
L2 cache:              1024K


I have a problem with my sound on my dell xps 13 9343

Which kernel are you using? There is a severe bug with kernel 4.4 (or newer). It affects all distros. See this Fedora bug report:

https://bugzilla.redhat.com/show_bug.cgi?id=1313434

I suggest you file a bug with Ubuntu.


Changing config values from within a hook

You cannot change charm config parameters from within a hook, sorry.


Why doesn't Ubuntu Server come with wireless-tools package installed?

Yes, it is typical practice to run a server on a wired connection, for wired Ethernet provides connectivity orders of magnitude faster than WiFi does.  Therefore, wireless-tools is not one of the standard packages of a server install.


I had a bunch of problems with installing Ubuntu on this graphics card.

I finally managed to do it, but it took a roundabout solution to finally get it up and running (just managed to do so today). I was unable to get my 11.10 CD or my 12.04.1 CD to boot. What I ended up doing was installing 11.04 and upgrading it to 12.04.1. I ran into a few problems along the way. Since I have a dual boot with Windows 7, when I installed 11.04 it messed up grub. No big deal, I just popped in my 11.04 CD and re-installed grub.

Then I upgraded to 12.04.1. After this install Grub was messed up again, so I popped in my 12.10 CD (which for some reason boots, but the graphics drivers wont work on it) and again reinstalled grub. After I rebooted and chose Ubuntu in grub, I got a purple screen that would flash black. Again, this posed no trouble, I just restarted, entered recovery mode, enabled networking, opened the root prompt and ran sudo apt-get install nvidia-current.

Hope this helps you, it took a lot of trial and error to get to this point.


Can I turn off window snapping in GNOME 3?

You have probably found the solution by now, but just in case you have not yet found it or some one else is interested. The gnome-tweaks option you are looking for is called 'Edge Tiling' located in the Windows section.


GDM doesn't start and desktop looks weird after reinstalling GNOME and the Nvidia driver

It's all about your nvidia driver. Ubuntu failed to load unity. That's means your nvidia driver is not working correctly. What is your nvidia's specification and what driver do you use?


Thanks for pointing me in the right direction @bodhi.zazen.

Indeed, it is covered at getting-started-cli but the other clue was further in at github

So the answer is in the following steps:

wget http://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-root.tar.xz
wget http://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-lxd.tar.xz
lxc image import xenial-server-cloudimg-amd64-lxd.tar.xz rootfs xenial-server-cloudimg-amd64-root.tar.xz --alias SomeAlias
lxc launch SomeAlias MyMachine

That gets me to the point where I can create a local image store and either import the images from a local server or copy them to the node and import them directly from the node's filesystem.


If your problem is something like the image below, follow the steps given.

This problem usually occurs in Firefox where you can't click on Allow.

Open the website which requires the webcam.
Go to this page: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager06.html;
There will be a list of websites which you've visited and which required webcam.

Select the website to which you want to allow webcam access and select Always Allow.

Refresh the website again and you're done!


Bluetooth mouse constantly fails to reconnect after sleep

Don't want to resurrect an old question but I had this same issue in Arch and now in Ubuntu 14.04. I've been able to find a permanent work around on both systems. For those Googling for a solution this is what worked for me. Your mileage may vary. For Ubuntu I follow instruction from the BluetoothSetup wiki page specifically the instruction for 11.04. For easy sake here are the steps I went through.

Make sure you unpair and disconnect your mouse completely
Set device in Pair mode
Open Terminal and run

hcitool scan

Make note of the Mac address of your device in the format of XX:XX:XX:XX:XX:XX
Next, enter:

sudo bluez-simple-agent hci0 XX:XX:XX:XX:XX:XX
sudo bluez-test-device trusted XX:XX:XX:XX:XX:XX yes
sudo bluez-test-input connect XX:XX:XX:XX:XX:XX

After this you can restart bluetooth service, sleep the laptop, turn off and turn on the mouse to check.

The two main points are the last two lines in step 4. I believe they are what make the connect permanent. Their order is important it they just need to ran together.


missing libjpeg.so.62 from ia32 shared library

sudo apt-get install libjpeg62:i386

For other libraries, the same applies but find the correct name of the package providing the specific library. The ":i386" suffix tells Ubuntu to install the 32 bit version of the library (i386 architecture) because your architecture is 64 bits and by default it would install packages for it.


Tomboy error while tring to sync with Ubuntu one; Can anyone help?

So for the time being My notes are syncing again. Turns out there was Bug reported on launchpad that was the same as mine. The fix was some what annoying, but all I did was back up my local notes, delete all notes from the U1 server,restart tomboy, and try syncing again. It seems that editing a note from the U1 web interface can cause the errors above.


After login in the desktop remains blank

Press Ctrl+Alt+F1
Login
Type

sudo apt-get update
sudo apt-get install --reinstall ubuntu-desktop
sudo reboot


Is it possible that the reason for your mousepad being enabled again is that you push a certain key combination on your keyboard? I use a ThinkPad T420s, where the combination to disable the mousepad is fn+F8. Maybe it works with your PC as well.


13.04 The Software center stopped working after update: an unhandled error occured

open your terminal and type as

sudp apt-get install --reinstall software-center

then try again.

answer for edit :

sudo rm -rf /var/lib/apt/list/gh.archive.ubuntu.com_ubuntu_dists_raring_multiverse_binary-i386_Packages


Ubuntu 16.04: remove home encryption but leave whole disk encryption

I'm going to go with Ubuntu used those tools for home directory encryption only
 and uses LUKS for  whole drive encryption your drive will persist being encrypted with out those tools.

worry not just remove them and your whole drive will remain functional and encrypted

Think about it like this pre decryption at start-up you have no access to any files or tools with in that encrypted partition witch makes it impossible for LUKS to be dependent on them. LUKs uses side space to function before decryption.

I would recommend full backup of any important files before trying to remove the home directory encryption. You never know better be safe then sorry even if it's very unlikely.


Can i backup Ubuntu Windows Installation?

The Ubuntu installation is stored on a virtual disk on the windows file system. From the windows point of view the virtual disk containing the Linux install is just another file. So the easiest way is probably to make a backup from the windows side. Locate the file and copy it to a external medium. It probably resides in the folder C:\Ubuntu\disks.

You might want to have a look at this URL:
https://wiki.ubuntu.com/WubiGuide


My advice is backup all personal files and configurations to an external hard disk and make a fresh install on your new laptop and then copy the files to it.

If you just change the disk, your old configurations will be used in your new hardware. This might be a problem if your new system has a different graphics board, just to start.

But you can allways try the disk on the new laptop and see what happens (as long as you backup first).

Personally, I put all the files I really need on a service like Dropbox, this way even if I loose the disk, I just have to install Dropbox and all my files get copied to disk again.


Can I pass a dpi flag to lightdm to set the proper DPI for X?

There actually is a way:

Change this line in /etc/lightdm/unity-greeter.conf

xft-dpi=96

to whatever fits your computer best.

Caution: It will break the desktops looks, some effects might not be avaliable. This is a bug in in Unity and will hopefully be fixed soon.


Ubuntu 13.10 won't allow me to change file permissions. Fresh install

As a normal user, you are not allowed to edit system files. However, in addition to being a normal user, you are also a member of the sudo group, meaning that you have the right to elevate your privileges.

If you're in a terminal, then you can do sudo nano filename in order to edit it, or if you prefer using GUI applications, then you can press Alt+F2 and enter gksu gedit, which will run the text editor as the system administrator, which does have the right to edit any file. The same is true for the file browser, Nautilus. If you want to run it as super-user, run gksu nautilus instead.


Why can't I have multiple application instances from the GUI?

You can use the normal terminal to ssh instead.

To launch the terminal use use the keyboard shortcut(Ctrl+Alt+T) or you can search for terminal from the dash.

To ssh another machine, you can the command

ssh user@hostname

The hostname can be the ip address of the router or the domain name if it has one.

Once you open a terminal and ssh to another machine it does not open another window.


(SOLVED) Please see the link

http://ubuntuforums.org/showthread.php?t=1004568&page=3

I have Sony Vaio VGN FZ340E and after long search I found the solution in the following link

http://doube.org/karmic-vaio

and now its working perfect without any problem I've only changed the (the SPIC to SNC) for both files

sony-brightness-up
sony-brightness-down
Shown expression

for sony-brightness-up file

event=sony/hotkey SPIC 00000001 00000011

I used the following expression

event=sony/hotkey SNC 00000001 00000011

for sony-brightness-down file

event=sony/hotkey SPIC 00000001 00000010

I used the following expression

event=sony/hotkey SNC 00000001 00000010

Backlight

Backlight support for Vaios is now incorporated in nvclock
Make sure you have nvclock installed for basic backlight control, and until HAL has been updated you have to specify the hotkey event manually.

sudo apt-get install nvclock
nvclock -S 100
nvclock -S 15
nvclock -S +10

Enable the "brighter" hotkey:

sudo gedit /etc/acpi/events/sony-brightness-up

put this text into it:

event=sony/hotkey SNC 00000001 00000011
action=/usr/bin/nvclock -S +10

And the "dimmer" hotkey:

sudo gedit /etc/acpi/events/sony-brightness-down

put this text into it:

event=sony/hotkey SNC 00000001 00000010
action=/usr/bin/nvclock -S -10

Make the scripts executable

sudo chmod +x /etc/acpi/events/sony-brightness-*

Restart acpid

sudo /etc/init.d/acpid restart

If you have a different model, you might have different keys controlling your backlight. To check the event ID, run

acpi_listen


Is there any TUI application for commandline for command rsync?

I use grsync, it's a simple GUI that supports most of "basic" rsync parameters, however for include/exclude parameters, in this tool you have to add them manually. It does not support GUI selection of directories to include/exclude.
Edit: I just understood from your comments that you want a TUI application, not GUI. I just found a video demonstrating some TUI application for rsync, check this out: https://www.youtube.com/watch?v=zrBUZ2g5_O4 . I don't know this app, so I can't provide any more information about it. There's a Github link in the Youtube video description: https://github.com/gotbletu/shownotes/blob/master/vifm_rsync_frontend.md


Dual boot system (Windows10-Ubuntu 18.04) on Uefi pc?

That is not true.  I have a Dell 311AD desktop with UEFI which is a dual booter with Windows and Ubuntu.

It's been over a year since I booted into Windows but it worked fine when I set it up as I was transitioning to Linux.


Take a look at this one Lubuntu.

Lubuntu is the lightest Ubuntu flavor and a full desktop ready to use.


Screen resolution lowers every time there is a kernel update

well there is a HOWTO: Automatically update manually installed NVidia drivers after kernel updates for you. I assume you have a driver with source version as NVIDIA-Linux-x86-173.14.05-pkg1.run

Then now ,open your terminal and type as

sudo mv NVIDIA-Linux-x86-173.14.05-pkg1.run /usr/src
sudo ln -s /usr/src/NVIDIA-Linux-x86-173.14.05-pkg1.run /usr/src/nvidia-driver

now type as

nano update-nvidia

then paste this code in it

#!/bin/bash
#

# Set this to the exact path of the nvidia driver you plan to use
# It is recommended to use a symlink here so that this script doesn't
# have to be modified when you change driver versions.
DRIVER=/usr/src/nvidia-driver

# Build new driver if it doesn't exist
if [ -e /lib/modules/$1/kernel/drivers/video/nvidia.ko ] ; then
    echo "NVIDIA driver already exists for this kernel." >&2
else
    echo "Building NVIDIA driver for kernel $1" >&2
    sh $DRIVER -K -k $1 -s -n 2>1 > /dev/null

    if [ -e /lib/modules/$1/kernel/drivers/video/nvidia.ko ] ; then
        echo "   SUCCESS: Driver installed for kernel $1" >&2
    else
        echo "   FAILURE: See /var/log/nvidia-installer.log" >&2
    fi
fi

exit 0

Then

sudo mkdir -p /etc/kernel/postinst.d
sudo install update-nvidia /etc/kernel/postinst.d

from now on wards at the time of new kernels your driver also get updates and compiles.

hope that helps.

For more information : Ubuntuforums-HOWTO


How do I change keyboard layout for just one user on Ubuntu Server?

Note: you can do also this without a GUI using X-Forwarding over SSH...

I just finished installing Server.  You have to first install I guess keyboard utility.  To do so Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below.

sudo apt-get install x11-xkb-utils

To set the layout to German, Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below.

man setxkbmap

To get the correct syntax

Or you can look at /usr/share/x11/xkb or /usr/share/X11/xkb/ respectively (e.g on 14.04)


You could try QtWebKit.experimental. If you add import QtWebKit.experimental 1.0 to your QML files, your WebView objects will have access to experimental attributes:

import QtQuick 2.0
import QtWebKit.experimental 1.0
import Ubuntu.Components 0.1

MainView {
    id: main
    width: units.gu(100)
    height: units.gu(75)

    Page {
        id: mypage
        Rectangle {
            color: "green"
            anchors.fill: mypage
            WebView {
                id: webView
                anchors.fill: parent
                experimental.transparentBackground: true
            }
        }

        Component.onCompleted: webView.loadHtml("
Hello
");
    }
}

Obviously you'll get this kind of warning:

  WARNING: The experimental API will change from version to version, or
  even be removed. You have been warned!


You can't. Garena you can install with wine and notes found on wineHQ, There is a gold rating so it is possible to install.
But

Currently supported games:
Warcraft 3: The Frozen Throne, Warcraft 3: Reign of Chaos, Counter-Strike (1.5 , 1.6 , Source ), StarCraft: Brood War, Dawn of War, and Quake 4.

-> No League of Legends.
If you want League of Legends and feel the need to play from Linux have a look at this very very long post on Reddit. It guides you through every setting you need. For a better gaming experience I would advice to install Windows with a dual boot and play from there or by installing Virtualbox, Windows in it, Garena in that and League of Legends in that.
There is another reason for that: as of a month ago they changed their client and this restricts 3rd party applications. 99 out of 100 times this means Wine is not useable since that is one of those and maintained by the community.


How to save themes of a presentation to use them in another?

Open the presentation which runs the nice theme
Select the slide which runs the nice theme
Press: File --> Templates --> Save as Template. Give some name to it and save it ( I used the predefined folder "My Templates")
On the presentation you want to use this template, right click on a slide slide --> slide design --> Load and select the template you saved
Or, if you want to exchange a existing design go to View --> Master --> Slide Master There you can again right-click and change the slight-design of the current Master.

Tested with LibreOffice Version: 4.2.8.2


grub-install: error: cannot find EFI directory

Try this:

Boot the Ubuntu Live Usb-Dvd.

Open a terminal,Press Ctrl+Alt+T

Run it:

sudo -i
mount /dev/sda2 /mnt
mount /dev/sda1 /mnt/boot/efi
grub-install --boot-directory=/mnt/boot --bootloader-id=ubuntu  --target=x86_64-efi --efi-directory=/mnt/boot/efi
reboot


Is it safe to browse the Internet with a LiveCD?

"Safe" is always relative. You are safe from stuff messing with your operating system. But you are not safe from everything else:

malicious SSL certificates
"man in the middle" attacks
hardware keylogger
social hacking
hacks that happened during your session for the rest of the uptime of your live system
...

In theory, one could mount your partitions and store data on them. But this data would have to be read again after the next reboot, which would require a different hack.

There are some hacks that write themselves into the master boot record (MBR) of your hard drives, meaning that the attack starts before the operating system starts. With a CD, that should be impossible. With the USB stick, I am not too sure.

So you are safer than before, but you are not "safe" in an absolute sense.


Authorization Log

The Authorization Log tracks usage of authorization systems, the mechanisms for authorizing users which prompt for user passwords, such as the Pluggable Authentication Module (PAM) system, the sudo command, remote logins to sshd and so on. The Authorization Log file may be accessed at /var/log/auth.log. This log is useful for learning about user logins and usage of the sudo command.

Use grep to cut down on the volume. For example, to see only information in the Authorization Log pertaining to sshd logins, use this:

grep sshd /var/log/auth.log | less


The .rpm file is not for Ubuntu, but for Fedora, CentOS, and other distros based on Fedora.

You'd want to download the .tar.gz file.  To install Java in Ubuntu 12.04, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

And after the installation finishes, if you wish to see if it was successful, you can run the following command:

java -version

Or if you want to download the file , then see How to install a .tar.gz (or .tar.bz2) file

Source:WebUpd8


What are ssh keys and how to handle them?

You may be getting ssh keys and pki keys mixed up, ssh keys dont have revocation keys (as far as I'm aware).

The basic concept is you make a key pair for every client computer.
These keys are located in ~/.ssh.

id_rsa is the private key that you should keep safe
id_rsa.pub is the public key that you do not need to keep secure.

To enable a client computer access to your remote server, add the id_rsa.pub to the remote servers ~/.ssh/authorized_keys file. This can be done automatically with ssh-copy-id

In the event that the private key for a client is compromised, simply remove its public key from ~/.ssh/authorized_keys.  Each line is a key and should end with an identifier like user@host.

Common practice is to give each computer its own key pair so you can easily revoke that computer's access to a server.


How can I see a folder's exact size in bytes?

Use the -B1 parameter to du:

du -s -B1 foldername

$ man 1 du
 -B, --block-size=SIZE
          use SIZE-byte blocks

You could also try the --apparent-size flag


(I can't post this as comment due to lack of reputation)

Ubuntu 18.04.1 LTS R9 390X amdgpu guide / testing summary

These are the things that I've done to get the open source amdgpu driver working properly.


There is a step-by-step troubleshooting guide on the wiki.