Trying to use free space on bootable usb

Probably the easiest way would be to format the whole drive, hence also deleting the current Ubuntu partition on the USB.

You do that by using Gparted, an app which are available for free download through the Ubuntu Software Center.

When open in Gparted, you choose the USB-drive in the upper right corner of the app.

Then you right-click on the current partition and choose erase (has to be unmounted first), then click "Apply".

After that the whole USB drive will be seen as "Unallocated Space".

Now right-click on the Unallocated space and choose "Create new Partition" (or similar), and choose the new partition size (the one for Ubuntu has to be around 1 GB and fat32)
Repeat the process to create all the partitions you want.

Now use the USB-startdisk-creator which comes with the default Ubuntu installation (seach USB in the dash).
Select to install Ubuntu on only the partition you created for it.

Now you will have a partition for the Ubuntu-bootable and one that is empty


When a file script starts with the shebang directive

#!langpath args

and has execution permissions set, Unix will "replace it" by

exec langpath args path-to-the-script.

This ways, typically:

langpath defines the language to be used, ans should be the path of an executable interpreter of the (programming) language (ex: '/usr/bin/python')
the language should accept a script file as an argument
the language should ignore the #!... directive as a comment


snap apps now won't start with "cannot perform readlinkat()" error

sudo snap refresh core --edge

Run the above command to update the snap core package.

For me after I updated my kernel to Linux 4.18 it did not work with the same error message but after running the above command all works fine.

You may need to reboot.


What purpose does an .ok file serve in MRTG?

As even the official documentation doesn’t explain it I can only speculate, but there are some hints here:

--confcache-file filename
       Use an alternate confcache-file (the default is to use the
       configuration-file appended with ".ok")

--fhs
       Configure all mrtg paths to conform to the FHS specification.
       The following default values are assumed:

       confcachefile - /var/cache/mrtg/mrtg.ok
       pid-file      - /var/run/mrtg.pid
       lock-file     - /var/cache/mrtg/mrtg.lck
       log-file      - /var/log/mrtg.log

The .ok file seems to be a cache file holding the mrtg configuration, by default the .ok extension is just appended to a copy of the configuration file, but you may specify an own .ok file using the --confcache-file flag. If you use the --fhs option, the config cache file will be saved as /var/cache/mrtg/mrtg.ok.


Can someone how to understand this clamAV debug report?

It seems to have identified the Kinsing Malware which targets Docker.


I've solved the problem: because of the battery/ac-situation, I looked at the power-saving settings in powertop and noticed that plugging the notebook in toggled the wake-on-lan-setting.

Anyway, by trial-and-error I figured out that LAN works after both rebooting and sudo service network-manager restart if wake-on-lan is activated (I've no idea as to why since I was just lucky enough to stumble over it - I'd be happy if anyone could offer any insight). Therefore, my solution was to add

sleep 1
sudo ethtool -s eth0 wol g

to rc.local (the value for sleep might be machine-dependant - I've replaced the HDD that came with the computer with an SSD, so for other machines it might have to be higher; the trick is that the command must be executed after the network interfaces have been configured). This way, wol is always activated, regardless of the power state - but with one exception: if you boot the computer on ac and pull the plug some time later, it reverts to the off-state. Normally, this shouldn't be too much of an issue, as you'd have to restart the network-manager via the command line to notice it - and if that really is necessary, a reboot might also be a good idea. Nevertheless, this behaviour can also be fixed by adding a small script to /etc/pm/power.d/ (similar to the one in the first answer to this question): in the battery-mode-branch, you put

sudo ethtool -s eth0 wol g

and the ac-mode-branch stays empty.


Download This:

http://ports.ubuntu.com/pool/universe/g/gnome-tweak-tool/gnome-tweak-tool_3.18.1-1_all.deb

Then:

sudo apt install gdebi

Then Try to install it using Gdebi:

sudo gdebi gnome-tweak-tool_3.18.1-1_all.deb


Just need to add port after server address.

for example:

irc.myserver.domain:6678


SuPHP: PHP 403 ErrorDocument in Apache won't work

You need to place the err403.php in a directory where the user (or in your case the IP) has access to.

Otherwise apache can't deliver that page and defaults back tho the standard 403 error page.

Also make sure (as you use ubuntu 14.04 with apache 2.4) that you change your access config using "require". The order,allow,denied directives are deprecated.

Complete example:

ErrorDocument 403 /path/accessible/to/all/err403.php

<Directory /path/your/website/>
    Require ip [your_ip]
</Directory>


Which nvidia to install? Latest from Nvidia.com or from additional drivers?

Which drivers to install depends entirely on how you use your system. The 331.113 drivers are generally more stable as they have been extensively tested for the current version of Ubuntu and are much less likely to malfunction than the latest drivers, the 346.47 drivers on the other hand use bleeding-edge technologies that may improve performance of video games and in some cases add additional features not seen in the older drivers, One example of this is that the 331.113 drivers do not support resolutions above 1920x1080 through HDMI while the 346.47 drivers can support additional resolutions but are generally less stable than the 331.113 drivers.

In summary, If you require stability then it is better to use the 331.113 drivers but if you require improved performance for video games or need any additional features provided by the newer drivers then it may be better to go for the 346.47 drivers instead.

Additionally, if you do decide to use the 346.47 drivers then it may to easier to install them using the xorg-edgers ppa which will allow you to install the latest 346 drivers using apt-get install:

sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get install nvidia-346
sudo reboot


In terminal...

cat /etc/initramfs-tools/conf.d/resume # if exists, show me the contents
dpkg -l intel-microcode | grep ii # see if this is installed, if not:

sudo dpkg -i intel-microcode

sudo cp /etc/fstab /etc/fstab.bak # backup fstab file
gksudo gedit /etc/fstab # edit fstab

change this line:

UUID=8BFC-B5D5  /boot/efi       vfat    umask=0077      0       1

to this:

UUID=8BFC-B5D5  /boot/efi       vfat    defaults      0       1

Then reboot. Retest suspend.

Go to https://www.memtest86.com/ and download the free memory diagnostic and run at least one full pass.

Update #1:

start the Disks application
select the disk in the left pane
click on the "hamburger" icon
select SMART Data & Tests
review the data
run the tests

Update #2:

/etc/initramfs-tools/conf.d/resume looks fine
we installed intel-microcode

In terminal...

sudo apt-get update
sudo apt-get install intel-microcode

Update #3:

go to https://www.memtest86.org
download the free memory diagnostic
run at least one complete pass

Update #4:

check your motherboard BIOS version and go to the manufacturer's web site and make sure it's the latest version for your make/model #. If not, update it asap.

Update #5:

we found that the suspend problem didn't occur when we disconnected the wireless and used a wired connection
we uninstalled the broadcom wl kernel module that was tainting the kernel
we'll also replace the r8169 driver

In terminal...

sudo apt-get purge bcmwl-kernel-source

pending sudo apt-get install r8168-dkms

pending BIOS update


gnome desktop manager won't start after installing ubuntu-desktop on Ubuntu 18.04

From the logs, it looks like Xorg driver vesa, fbdev are being attempted. I'd expect a HW-specific driver to be used instead.

Does sudo apt install xserver-xorg-video-intel help at all?

Have you blacklisted any kernel modules for graphics devices via files in /etc/modprobe.d/?

Perhaps check the output from dmesg to determine whether the kernel detected the display device.


Terminal emulator that has "code folding"

I have being looking for this feature for years as but I am afraid to say that at this moment there is no usable terminal that implements this feature.

I read that there were plans to add it to iTerm2 but that moment is still on wishlist.


Blank screen when running cinnamon and cairo dock

Those commands only work when you are in an xsession and not on a text only session like tty2. You can, however, issue kill commands from there like

sudo killall cairo-dock

and you can restart the xsession by killing lightdm gdm or what ever dm you are using like this

sudo service lightdm restart

or

sudo service gdm restart

Alternatively, if the dm is the culprit you can start x with no dm like this

sudo service lightdm stop
sudo startx

replacing lightdm with your dm.

Finally, you can start those commands that did not work due to no display but you have to specify the display for them to open. I'm not exactly sure how to do this but it's something like display=0:0.


Unity works wrong after installing other DEs

Since all of these DEs are using the same user, some might use the same paths for e.g. icons, which would explain why you are seeing the same icons in the some DEs.
(I think .icons is used by probably more than one DE).

No idea, though how to seperate them.


I accidentally deleted the /etc/rc3.d directory on my Ubuntu 16.04 installation can someone list the contents for me?

Okay so it turns out that the contents of /etc/rc2.d, /etc/rc3.d, /etc/rc4.d, and /etc/rc5.d are identical.

You can use one of the others to copy back over to it


Is it safe to update from lubuntu 14.04 to Ubuntu 16.04

From my experience i recommend not to update from lubuntu 14.04 to Ubuntu 16.04. After i started the update process, everything went fine all the packages are downloaded and extracted, everything was okay and the system is ready for reboot, instead of reboot the system got stuck at home screen with out  task bar, launchpad and is complete unresponsive. I tried to start gnome full screen terminal and also tried to safe restart - noting worked and forced me to shutdown by long pressing the power button.

After i started system back everything was only blank screen with blinking cursor. I tried to start in recovery mode, tried to fix broken packages from grub- noting worked, so finally booted Ubuntu with bootable usb and retrieved all my important files and fresh installed the Ubuntu 16.04.

So i recommend to replace lubuntu desktop with Unity before updating, which i have not tested but i think it is way to update.


List users in login screen in ubuntu server 12.04

It is not possible to do this without actually logging in. The method to do that is with the package pam_motd (it will already be installed on your system).

  When logging into an Ubuntu server you may have noticed the informative Message Of The Day (MOTD). This information is obtained and displayed using a couple of packages:

pam_motd executes the scripts in /etc/update-motd.d in order based on the number prepended to the script. The output of the scripts is written to /var/run/motd, keeping the numerical order, then concatenated with /etc/motd.tail.

Create /usr/local/bin/whoisloggedin, a simple shell script to show who:

#!/bin/sh
#
#
# Prints who is logged in for the MOTD.
#
#
echo
who
echo

Make the script executable:

sudo chmod 755 /usr/local/bin/whoisloggedin

Next, create a symlink to /etc/update-motd.d/98-whoisloggedin:

sudo ln -s /usr/local/bin/whoisloggedin /etc/update-motd.d/98-whoisloggedin

Finally, exit the server and re-login to view the new MOTD.


How do I create a given network configuration?

First determine if you can do what you want with network manager, from your post I think that is unlikely.

If you are not going to use Network manager, you will need to either remove it or disable it and understand how to manually configure your network.

sudo apt-get remove –purge network-manager network-manager-gnome

Bring the network down

sudo /etc/init.d/networking stop

You would then set your nameserver in /etc/resolv.conf

sudo -e /etc/resolv.conf

You then edit /etc/network/interfaces

sudo -e /etc/network/interfaces

Something like this

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 10.4.6.2
netmask 255.255.255.128
broadcast 111.222.333.444 #I am not sure of your broadcast
gateway your_gateway)ip

You can then use the up/down options, the syntax is

up <command>

So in your case, add in

up echo $(date) "eth0 up" >>  /var/log/journal
down echo $(date) "eth0 down" >> /var/log/journal

Add those commands in in the eth0 stanza, below gateway.

See http://manpages.ubuntu.com/manpages/oneiric/man5/interfaces.5.html

Likewise, date is very flexible, and the options are covered in the man page

http://manpages.ubuntu.com/manpages/oneiric/man1/date.1.html

date +"%d-%m-%y %l:%M:%S"

That at least is going to get you in the ball park.


For 16.04 all you need to do is make sure restricted drivers are checked in your software and updates sources and issue the command sudo apt-get install bcmwl-kernel-source


How to keep 4 Linux kernels in /boot by default before they are removed automatically

What it means when it says "up to four" is that the currently running, current installed, latest, and previous versions can all be different, resulting in four versions being automatically kept (with a minimum of two). See this part of the code:

debkernels="$(echo "$latest_version
$installed_version
$running_version
$previous_version" | sort -u | sed -e '/^$/ d')"

I think the simplest way to get it to save older kernels would be to extend the $previous_version to a list. Instead of:

previous_version="$(echo "$debverlist" | sed -n 2p)"

Do:

previous_version="$(echo "$debverlist" | sed -n 2,4p)"


Puseaudio Equalizer not working in 18.04 LTS

Try installing said packages :

sudo apt install dbus-python qt4

Then trying running pulseaudio.


How to impose memory limits on a shell script?

You can limit the memory usage by a Bash Script, doing the follow.

Limit the memory usage by kb (2GB in this example):

ulimit -m 2048000

Limit virtual memory usage:

ulimit -v 2048000

Set virtual memory limit to be hard limit, so that process will be killed when exceeding this limit:

ulimit -H -v

I think this can do what you want.


Black wallpaper is not black (possible driver issue)

"In the Gnome Tweak tool under appearance you can set the adjustment for background and lock screen as 'None'. This fixed the problem for me."- John Cullen's answer to a different issue worked for this also

Pixelated wallpaper/background


Can I split /boot to a different partition on a single partition system?

You can use gparted from the livecd to resize the partition to make some room and create a new partition to move /boot to, but why would you want to?

If you really want to ( and I don't recommend it ), once you create the new partition, you will need to mount it somewhere and copy everything in /boot to it ( for example, with cp -ax ), unmount it, edit /etc/fstab to mount it in /boot, then mount it there and reinstall grub.  You can do the last part by running dpkg-reconfigure grub-pc.


Can't ping own machine using public IP or registered domain name

Based on what we are knowing so far, I'll try a first solution.

There is the Server, that is send a Ping to the external Address 196.189.91.144
There is the router, that knows the net 10.180.53.0/24 including 10.180.53.144 and the external IP 196.189.91.144
There is the Internet, that knows the external IP 196.189.91.144

If anyone from the Internet will ping the external IP, maybe the router will answer or in advanced configuration the ICMP will be forwarded and die server will answer. We don't know yet.

But in any case, the router needs the information, to answer requests from the external address on the internal interface, too.
Every route, that is not defined, will go though the standard gateway, in this case the router. But the router has a default gateway (most times the provider), too. And if the router send a ping to the provider, why should the provider answer it?

The options to handle it are depending on the exact setup. But in any case, why do I need to check the ICMP response of a system behind the NAT, from behind the NAT? There is the internal network more important.


How to install audacity software in Ubuntu?

Is there a reason you are not using the Ubuntu main repo? If not:

sudo apt-get install audacity


enable window 'snap' in 12.04 (window maximation on drag to edge)

The feature which maximizes the window when dragged to the upper panel is still present, but only in Unity 3D, not in Unity 2D.

Therefore, I would suggest to check if you have the right graphics drivers, because when you don't, Ubuntu will automatically start the Unity-2D session instead of the default, heavy unity.

I did a clean install and tried Unity 3D after installing my nvidia drivers.


How to give same permissions to FTP user & Home user?

Now some directories are owned by 'home_user' and some are 'ftp_user'. Is there a way to grant all the directories same access, so anything I create/send through gftp or ssh or manually as the home user is accessible by both home_user and ftp_user.?

Yes. There are 3 sets of permissions:

user
group
others

Each with 3 options: read and/or write and/or execute. When users 'home_user' and 'ftp_user' are in the same group they can do the same actions on files as if they would own them.

Easiest (and more secure then the other way around) is to add your 'home_user' to the group 'ftp_user' is set. That would be (change the 2 between {} to what it is for you):

usermod -a -G {group_ftp_user} {home_user}

If ssh and ftp use different users and groups you could also create a new group 1st

sudo groupadd {new_group}

and then add all 3 to that new group with the 1st command.

Also see

local_umask=

in

/etc/vsftpd.conf

You need to set that to 007 (it will now be set to 700).


What is the significance of the output of cat /etc/group?

Quoting the respective manual page man group:

NAME
       group - user group file

DESCRIPTION
       The  /etc/group file is a text file that defines the groups on the sys‐
       tem.  There is one entry per line, with the following format:

              group_name:password:GID:user_list

       The fields are as follows:

       group_name  the name of the group.

       password    the (encrypted) group password.  If this field is empty, no
                   password is needed.

       GID         the numeric group ID.

       user_list   a  list  of  the  usernames that are members of this group,
                   separated by commas.


How can I add support for Swiss German input in 18.04? There was no option during installation

During the installation

After choosing the language:
On the left tab : Switzerland on the right tab : Switzerland - German (Switzerland, no dead keys).

After installation, for the console

sudo dpkg-reconfigure keyboard-configuration

Then

Generic 105-key (Intl) PC
Switzerland
Switzerland - German (Switzerland, eliminate dead keys)
The default for the keyboard layout
No compose key

Then reboot (or type setupcon in every console).

After the installation for the GUI (ubuntu - gnome-shell)

Activities > Settings > Region & Language > Input Sources > + > German (Switzerland) > Add

Then move up your language input or remove the others you don't want.

After the installation for the GUI (xbubuntu - xfce)

Settings > Keyboard > Layout, un-check Use system default, Add, German (Switzerland).


You could always use WINE and install the Garmin Express app.

Start by going to the Software Center and installing the latest version of Wine. Then, download and install the Garmin Express exe file. Wine should run it and install it.

Note, however, that there are sometimes dependency errors. To fix this, you need to manually check all dependancies of Garmin Express. It should work though.


Video editing app for lowering background noise while evidentiating slow voice?

To get a good noise reduction we cannot simply rely on basic denoise filters, as these may not be much more than low or high pass filters which then may lead to a rather muffled result.
A better approach will be using a dedicated audio processor designed to have good noise reduction algorithms on the audio content of our video only.
To do so the following short tutorial uses Audacity for audio processing, and FFmpeg for audio extraction and rebuilding the video.

Extract the audio from our video file
To keep the original's audio encoding we need to find out what codec the audio of our video file uses. This will e.g. be displayed on the right click file Properties > Video/Audio  tab. You e.g will find it is AAC or mp3 encoded. Then we can extract the audio of an mp4 file with the following command:
 ffmpeg -i infile.mp4 -acodec copy outfile.aac

The option -acodec copy says we do not resample audio

Use Audacity's noise reduction filters:

How to improve the sound quality of an mp3 speech file?

Merge audio and video again.

Again, to avoid resampling we need the option copy to just use the data as they are. The source video's audio track will be remapped to the denoised sample with the following command:
    ffmpeg -i infile.mp4 -i denoised-audio.m4a -vcodec copy -acodec copy -map 0:0 -map 1:0 denoised-video.mp4


Mouse does not work properly after suspension

create a script to run when awake from suspend

sudo gedit /usr/lib/pm-utils/sleep.d/mouse

Add copy following text in the script

#!/bin/sh

case "$1" in
    resume)
        modprobe -r psmouse
        modprobe psmouse
esac

as any script in /usr/lib/pm-utils/sleep.d/ runs as root your problem should be solved


I have a 64 bit Ubuntu12.04 PC. I want to install VLC player without useing Internet?

Get VLC packages from this site.
http://pkgs.org/ubuntu-12.04/ubuntu-universe-amd64/vlc_2.0.1-4_amd64.deb.html
Download all the dependent libraries as well.
Make two directories. vlc and lib.

Install all .debs from lib first dpkg -i *.deb

Then install vlc's deb.


Typing extremely laggy in new 16.04 install

I changed the keyboard to a port on a different USB bus and everything is fine now.

I can't say I know why this was happening. I experimented with different combinations of devices and ports and the only thing that affected the problem was if the keyboard was on that bus.


Run the below commands on terminal(ctrl+Alt+T) to mount your USB drive manually,

sudo mkdir /media/usb
sudo mount /dev/sdb1 /media/usb

Now the files in your USB  would be found on /media/usb directory.


The vertical line in the picture can be disabled by going to Settings. Ctrl+Alt+S or from File -> Settings -> Editor -> General -> Unbox Right Margin


Install via this PPA:

apt-add-repository -y ppa:aims/sagemath
apt-get update
apt-get install sagemath-upstream-binary


Simulating Windows UI Desktop Start button feature

This is currently a pending Xfce feature that hasn't been implemented yet, but these tools below provide a workaround for the time being.
https://github.com/jc00ke/move-to-next-monitor
http://ssokolow.com/quicktile/


windows can not shutdown after installing ubuntu

i think it's not ubuntu problem ,but windows, so try doing this on windows:

run cmd(with admin rights)

type:

 sfc/scannow

hope it helps.


Problem with installation on new laptop (dualboot)

okay So i almost got it to work, everything was perfect and then I accidentally created a partition of my whole ssd with GParted and now my Windows is gone;/ any way to get it back?


The syntax for echo is:

echo [option(s)] [string(s)]

You can pass options to it in order to have a better intended results. As example, -e acts as interpretation of escaped characters that are backslashed. Using option \b – backspace with backslash interpretor -e which removes all the spaces in between.So when running the following command:

$ echo -e "Tecmint \bis \ba \bcommunity \bof \bLinux \bNerds"

That produces:

TecmintisacommunityofLinuxNerds

You can run man [command] to know what are its options.

man echo

Edit:

According to @Zanna comment which is attached to this answer. When we man echo, we are not showing the manual of the built-in echo . To read short documentation about the built-in echo we need to run help echo .


Ubuntu 20.04 - Disable laptop built in monitor slows down the system

I am facing the same problem.
For me, I am using a Dell XPS Laptop and using it with Lenovo docking station (which also uses DisplayLink chipset) however downgrading the xserver didn't help me.
As a workaround, for now, try this command
xrandr --output eDP-1 --auto

eDP-1 refers to my laptop's internal monitor, you can find out your internal monitor using:
xrandr -q

It will list all the monitors and display settings possible, look for Screen 0 and use the value mentioned.
While there are many threads referring to this problem, one of them being the Displaylink driver issue (in case you are using DisplayLink Docks).
Hope it helps!
Cheers!
Ranjan Batra


Why does overwriting tty1.conf with rc.local cause a "Host SMBus controller not enabled!" hang during boot?

So I couldn't figure out why the issue was happening but I figured out a work-around. In the same script that mv's tty1.conf into /etc/tty1.conf during the first boot ever, I added a "shutdown -r now" at the end. As long as the system is rebooted once (before or after the error that shows up), everything (including the new tty1.conf file) works as expected on next boot.

Edit: fkraiem pointed out that tty hasn't started yet at the point I'm trying to copy over tty1.conf.


There is also a tool available from the Ubuntu Software Center called localepurge.

So what you can do is the following:

Download and install your favourite Ubuntu distribution.
When you are logged in, using the first user account created during installation, fire up a terminal using Ctrl+Alt+t and enter sudo apt-get install localepurge to install localepurge, or simply start up your Ubuntu Software Center and search for localepurge.
After you downloaded and installed localepurge, configuration takes place. You will be presented with a few dialogboxes, stating what this tool is about and a question will be asked about witch languages you want to have removed.

The only thing you have to do is mark the languages which you want to keep, all the other unselected locales will be removed.

I assume you have a separate account for your partner. Log in with your partners account and select the preferred locales for this session.


I switched to 12.10 and my wine - adobe digital editions stuff stopped working

I know this may seem like a very dumb answer, but instead of clicking OK have you tried clicking apply? As far as I can tell you did it right.


How to setup complete file access and control on a network

if you are looking for permission change wouldn't you cd to the directory of the share and use: sudo chmod -R 777 /home/"user"/"folder"


Byobu creates new icon in unity launcher

This is a known bug in BAMF, the window-matching framework that's used by Unity. I think they are still working on a SRU (Stable Release Update)—I seem to have byobu 5.97-0ubuntu1 on 15.10, and the fix is in 5.98-0ubuntu1 or later.

There is a workaround in comment #2 if you don't mind Unity associating all gnome-terminal windows with the Byobu icon.


Completely uninstall/reinstall Eclipse and add support for php and jquery

I believe all plugins go into the .eclipse/plugins folder in your home directory. So...

sudo apt-get purge eclipse
rm -r ~/.eclipse/

should completely remove it from your system.  I haven't tried it as I don't want to lose my installation :)

You should be able to get PHP and jQuery using Aptana Studio.  I was able to get 1.5 to work as a repository (from Help > Install New Software) using http://update15.aptana.org/studio/26124/ and a Google search, but I haven't tried installing 2.0 which you can get from here: http://www.aptana.com/products/studio2/download


Find the absolute path of zsh by:

type -p zsh

The add the absolute path of zsh to /etc/shells, and read man shells.

/etc/shells is a list of "valid" login shells. On my Ubuntu 14.04.5, /etc/shells doesn't contain zsh.


dell inspirion 7559 -- ubuntu 16.04 booted up using `nomodese` to login screen successfully but desktop is now showing after logging in

Please try replacing nomodeset with nouveau.modeset=0.


Using an old home partition during installation

Keeping your /home partition untouched, reinstall ubuntu (This time no seperate /home partition and keep the same user name)
Use these guides to mount and remove remove encryption of your old encrypted /home partition

http://www.howtogeek.com/116297/how-to-recover-an-encrypted-home-directory-on-ubuntu/

How to disable encrypted home directory?

using chown and chmod, set the permissions and ownership correctly.
Set it as your new /home partition

For that type

sudo blkid

Locate the UUID of your old /home partition.

Edit the fstab

sudo nano /etc/fstab

Add the following text to the fstab file on a new line, replacing the xxxxxxxx portion with the full UUID of your old home partition

UUID=xxxxxxxx    /home     ext4     nodev,nosuid     0     2

Rename your current home to home_old and create an empty /home folder

cd / && sudo mv /home /home_old && sudo mkdir /home

Restart


Failed to start Cryptography Setup for cryptswap1

I entered the root console from the grub rescue-kernel and then

I removed the package bumblebee-nvidia which didn't help alone.
I commented out (with a # at the start of the line) the line

cryptswap1 /target/swapfile /dev/urandom swap,offset=1024,cipher=aes-xts-plain64

in /etc/crypttab and

/dev/mapper/cryptswap1                                 none                    swap    sw              0       0

in /etc/fstab

After the first reboot this helped. after another reboot I ran into the same freeze again!

Then I removed the NVIDIA-Driver in the GUI for advanced drivers and added a swapfile instead of encryptedswap. This seems to solve the issue (but as a drawback has no encrypted swap any more)


Open whiskermenu, type "keyboard" and hit enter. Then choose "Shortcut for application" and find the entry for xfce4-popup-whiskermenu. Dubble-click the assigned shortcut. Now press Super-key. Done.


The thunderbird files is usually found under home. so in your external HDD it's /home/USERNAME

Profile folders are located here:

~/.thunderbird/

However, if you're using a third party build from  Ubuntu, those builds located here:

~/.mozilla-thunderbird/

use ctrl+h to view hidden files and search for one of the two dirs above.

Inside the dir you can find some dirs including your profile (Xxxxx.dedfault)

go inside you can find the dir Mail

go inside Mail and you can see your old mail files and can be imported to thunderbird


blocking all outgoing ports and its consequences

But what are the consequences of doing this on amazon ec2?

Everything breaks.
At least everything that uses the network in any way, shape, or form.  If no outbound connections can be made, and no provisions are made for getting back in / handling "established" connections.

If you want to secure your system with a firewall you should:

Allow inbound connections to specific ports/services you use
(Generally) allow outbound connections from your server to anywhere.
(Alternately) allow outbound connections from your server to specific hosts and ports that you know provide services you use.
Ensure the rules in (1) and (2) allow "established" (or "related") traffic.
Deny everything else.


By what methods can I check information about a DVD video disc?

VLC

You can go in VLC to Tools --> Media Information / Tools --> Codec Information to get a lot of information about the DVD. If you get any problems with the DVD, please make sure to read some of the following links:

How can I play encrypted DVD movies?

My DVD's Will Not Play?

Discs in DVD Drive not being read

mediainfo

To Install:sudo apt-get install mediainfo-gui mediainfo
To Run: The GUI version is obviously mediainfo-gui. The terminal one is just mediainfo, which you can use in the following way:

mediainfo -f SOURCE. For example mediainfo -f /media/cyrex/moviedvd

lsdvd

To Install: sudo apt-get install lsdvd

To Run:lsdvd -x SOURCE. For example lsdvd -x /media/cyrex/moviedvd

This are not all since typing **dvd* in the Software Center will give you many DVD players, editors, rippers, etc.. that most of them can give you information about your DVD.


In recovery mode, cannot type in the terminal

To make any changes in the root command prompt, you need to remount with read/write access:

mount -o remount,rw /


awk -F ': ' 'NR % 3 == 1 || NR % 3 == 2 {printf("%s: %s%s\n", $1, $2, ($1 == "message") ? "01":"") > $1"-new.txt"}' file

Or
sed -n -e 's/message.*/&01/w message-new.txt' -e '/signature.*/w signature-new.txt' file


How can I set a static ip on a fresh installation of ubuntu 20.04 on my raspberry pi?

I think you just create the file /etc/netplan/01-netcfg.yaml with the correct configuration for your server.
This should get read before the 50-cloud-init.yaml since according to this https://linuxconfig.org/netplan-network-configuration-tutorial-for-beginners

Inside each of these directories configurations are created using
files with the .yaml extension which are processed in lexicographical
order, regardless of the directory they are in.

You may need to disable cloud init
How to get rid of cloud-init?
Some details here 01-netcfg.yaml and 50-cloud-init.yaml both exist - can't find one IP


How to paste the text selected from gui mode after switching into cli mode?

How can I paste the selected text from gui and toggle to cli mode and
  then paste it there (especially in vim)?

If your goal is to go directly from GUI to TTY and paste, that's impossible. You have to have something in the middle, something in common between tty and gui.

Terminal multiplexers such as screen, tmux, and byobu allow creating shared sessions.  That means, if you run screen in graphical terminal emulator, then login to TTY1 and attach yourself to the shared session, everything you type in GUI will show up on TTY1 as well.
The two terminals will behave as one

Note: taking screenshot form TTY is difficult, so for demonstration purposes I will create shared session between two GUI terminals.

Of course, the 3 multiplexers don't come with Ubuntu by default. If you want to get either one, install them with sudo apt-get install app-name. Note, that installing byobu gives you all 3 together.

GNU SCREEN

Start screen session in TTY1.
Press Ctrl+a, then :. type multiuser on

Return to GUI. Open terminal emulator. Type screen -ls to list sessions.
Type screen -x and the id of the session you found with -ls command.

Now you should have 2 shared screen sessions

TMUX

Start tmux in TTY1. Return to GUI
Open terminal emulator.List sessions with tmux list-session

Attach GUI tmux session to TTY1 session with tmux new-session -t X , where x is the number of the TTY1 session.

BYOBU

Simply open byobu session in TTY1 and then go to GUI and open another byobu. They attach automatically.

Sources and Suggested Reading

Share existing tmux session

GNU Screen Splitting

HowTo Share A Terminal Session Using Screen

http://i.stack.imgur.com/RlzTj.png


second hard drive to be mouunted as /home/Videos

Just make a symbolic link in your home folder to the videos drive like this:

rmdir "~/Videos" # Delete old videos folder

ln -s "/media/videos_drive" "~/Videos" # link videos folder to the drive

Replace /media/videos_drive with the path to your videos drive.


What does 'unix 3 [] STREAM CONNECTED 438037 29037/python' mean?

In the output of netstat -p

unix 3 [] STREAM CONNECTED 438037 29037/python

means that process number 29037 running Python has a connection over a Unix domain socket (a socket for local inter-process communication).


information about internet connection in ubuntu 11.10

Just go to Speedtest they will measure your speed and Ping.

You can also go to the system monitor and click in the network area. Here you will see what you currently download / upload.


Fan switches between full speed and off on Dell G5

Please update from BIOS version 1.11.1 to the latest BIOS, 1.12.0, for your Dell G5 5590 laptop, to resolve the fan issue, since control of the fans goes through the BIOS even though there's no controls you can adjust in it (yet).

The latter assertion is based on the first three posts I found with a web search on the subject, which indicate a problem with users runnint Windows 10 as well as Linux; hence my thought the BIOS is involved.

https://www.reddit.com/r/Dell/comments/ag5d4p/dell_g5_manual_fan_control_utility/

https://www.dell.com/community/Inspiron/Dell-G5-15-5590-fan-control/td-p/7390514

https://www.dell.com/community/Inspiron/Annoying-fan-speed-oscillation-on-DELL-G5-5590/td-p/7403566


Ubuntu as the only office / commercial OS?

There are some case studies of companies (or more usually goverment agencies) switching to GNU/Linux for workstations. Most notable would be Gendarmerie Nationale (French police) - they've switched to Ubuntu in 2009.

If you are looking for company-wide deployment, I'd recommend to contact Canonical (the company behind Ubuntu) who can provide you all the information and support you need. There are more commercial-backed distributions like Red Hat Enterprise Linux (by Red Hat) or SUSE (by Novell), and there are many local partners or independent Linux dedicated companies which will provide you with the support.

Edit: I believe you should take first steps by using cross-platform software with your existing infrastructure - most software available for Ubuntu is available for Windows too. For example, switch from MS Office to LibreOffice (aka OpenOffice.org), and so on. This way you can apply training in small doses and always easily switch back if you run into any problems.

If you rely on some Windows-only software without any viable alternative, Wine could be a solution but it's definitely not a silver bullet - check out Wine's AppDB or try CrossOver (a commercial counterpart of Wine by CodeWeavers, which are contributors to Wine).


How to let my log in page normally show up?

If its regarding resolution of Login screen as you have got sucess for bringing the screen try this :
The first thing to do is to check resolution setup in grub. To do that reboot your computer and hit Esc repeatedly until you get the purple screen with the recovery and grub options. Hit "c" to get a grub prompt. At the grub prompt, type:

videoinfo

and hit Enter.
Look at the list of "supported" resolutions, and make sure x*y (resolution of your system) is there. If so, type:

exit

to exit grub and boot.
The boot screen resolution is changed by changing your default grub settings. Open a terminal and enter:

sudo nano /etc/default/grub

Use the down arrow or Page Down until you see the line that looks like this:

#GRUB_GFXMODE=640x480

Below that line, enter the following, substituting the x*y(your display resolution) for a supported resolution:
For example:

GRUB_GFXMODE=1920x1080

GRUB_GFXPAYLOAD_LINUX=keep

To save your changes, hit Ctrl+o, with "o" as in orange, not zero. To exit nano, hit Ctrl+x. Now, update grub:

sudo update-grub


Accessing sudo from a non-administrator profile

The most convenient way is to use the terminal where you can launch programs with admin privileges. There are 2 options:

You can add your normal user to the group of sudoers:
sudo adduser normal-username sudo

See Can I have a user execute sudo commands without being an administrator?
Now you can execute commands in the terminal by writing sudo command

Use your admin profile:
To use your admin profile in the terminal, you can su to that user, like su admin-username and then enter the admin user's password. If this doesn't work for the programs you want to run (it won't work for graphical applications), see this question:
How can I run an application with a GUI as admin from a non-admin user session?


Code::Blocks 20.03 can't suddenly find -lglfw3 in Ubuntu 20.04

As N0rbert in comments suggested, moving ~/.config/codeblocks resolved the issue. Guess you could just remove that folder too. Seems to wipe the list of latest projects tough.


Advantages of using mac version of Ubuntu

The mac image is designed to be compatible with most macs. The reason being that mac's have specific hardware requirements and tweaks to get things running smoothly. The Apple firmware by default uses a GPT table to boot OSX in EFI or UEFI mode.

The most common reason to use the Mac iso however is that they are more likely to be seen by the firmware and thus be able to boot and install on your Apple machine without issue.

There is a very good explanation by Colin Watson here.


Hide windows 7 partition from Ubuntu 12.04 USB

Have you tried using a UDEV rule yet? REF: How to hide a(n) (NTFS) partition from ubuntu

Note: ENV{UDISKS_PRESENTATION_HIDE}="1" changes to ENV{UDISKS_IGNORE}="1" in Ubuntu 12.10, so you'll have to revisit this file when you upgrade from 12.04.

You could also have a shell script that runs umount /dev/sdb1 (or whatever your hard disk's NTFS partition is, check with mount | grep ntfs first), then run that script from Startup Applications so it umounts the partition whenever you login.


How to copy every day to another of two destinations?

One Liner:

0 0 * * * cp /path/to/* /path/to/destination.$(( $(date -d $(date +%F) +%s)/(3600*24) % 2))

Explanation:

$(( $(date -d 0:00 +%s)/(3600*24) % 2))

will return timestamp in seconds (+%s) of today at 0:00 (-d 0:00).
Divided by (3600*24) will return number of days from unix epoch.
%2 will return 0 or 1 for odd or even days since start of unix epoch.


I believe that we are using grub2 so the process now can be done with grub-install /dev/hdx. Here's a link to the documentation:

http://www.gnu.org/software/grub/manual/html_node/Installing-GRUB-using-grub_002dinstall.html


How do I find all system files I've edited with `gedit`?

I just edited a "system" file using this command to open the file:

sudo -H gedit /etc/gtk-3.0/settings.ini

I immediately then looked at the last entry in ~/.local/share/recently-used.xbel and saw this:

  <bookmark href="file:///etc/gtk-3.0/settings.ini" added="2016-11-14T02:04:05Z" modified="2016-11-14T02:04:05Z" visited="2016-11-14T02:04:05Z">
    <info>
      <metadata owner="http://freedesktop.org">
        <mime:mime-type type="text/plain"/>
        <bookmark:groups>
          <bookmark:group>gedit</bookmark:group>
        </bookmark:groups>
        <bookmark:applications>
          <bookmark:application name="gedit" exec="&apos;gedit %u&apos;" modified="2016-11-14T02:04:05Z" count="1"/>
        </bookmark:applications>
      </metadata>
    </info>
  </bookmark>

Limitations:

the recently-used.xbel contents don't reveal how you invoked gedit.
it's not necessary that a file should have been edited or created with gedit; merely viewing a file with gedit gets the file listed.

Visual inspection of the file seems safer than using code to extract the needed information. Something like grep -B5 '<bookmark:group>gedit</bookmark:group>' recently-used.xbel | grep 'bookmark href=' | grep -v '///home/' may help isolate system files that were edited by gedit. But this would work only if gedit is the first application listed in the bookmark:group for that particular file. If you've edited the file previously with some other application that writes to recently-used.xbel, you may not catch that file.

    <bookmark:groups>
      <bookmark:group>geany</bookmark:group>
      <bookmark:group>gedit</bookmark:group>
    </bookmark:groups>

Anyway, this is the output of the grep command:

~/.local/share $ grep -B5 '<bookmark:group>gedit</bookmark:group>' recently-used.xbel | grep 'bookmark href=' | grep -v '///home/'
  <bookmark href="file:///usr/share/themes/Adwaita/gtk-2.0/gtkrc" added="2016-10-15T09:38:31Z" modified="2016-10-15T09:38:31Z" visited="2016-10-15T09:38:31Z">
  <bookmark href="file:///usr/share/themes/Numix/gtk-2.0/gtkrc" added="2016-10-15T09:40:25Z" modified="2016-10-15T09:40:25Z" visited="2016-10-15T09:40:25Z">
  <bookmark href="file:///usr/share/themes/Lubuntu-default/gtk-3.0/gtk-lubuntu.css" added="2016-10-27T03:26:38Z" modified="2016-10-27T03:26:38Z" visited="2016-10-27T03:26:38Z">
  <bookmark href="file:///etc/gtk-3.0/settings.ini.dpkg-old" added="2016-11-14T02:03:44Z" modified="2016-11-14T02:03:44Z" visited="2016-11-14T02:03:44Z">
  <bookmark href="file:///etc/gtk-3.0/settings.ini" added="2016-11-14T02:04:05Z" modified="2016-11-14T02:04:05Z" visited="2016-11-14T02:04:05Z">
~/.local/share $


Eclipse Juno C++ error: Program "g++" not found in PATH

Annoying problem, no answers to be found...
I added the path variable to environment variables in Window/preferences/build/environment
It works since.


Internal mic not working on Aspire One D255

Try this solution. Worked for me.
http://ubuntuforums.org/showpost.php?p=11385053&postcount=15


Windows 8 comes with a new file system called ReFS (stands for Resilient File System) for the server edition. If you are using such a distro, maybe Ubuntu is not able to handle the file system (yet).

Reference : this thread.

Could you open GParted on Ubuntu and say what are the partitions you are able to see ?


Lenovo Thinkpad Helix - Trackpoint and Touchpad stop working occasionally

As pointed out here ,the following commands restore touchpad and trackpoint functionality:
sudo rmmod psmouse -f -v

and then
sudo modprobe psmouse -v

(I usually have to execute the commands several times, before functionality comes back)


As of Sept 2017, you can use true key on Ubuntu with either Firefox or Google Chrome. At least, it works for me!

Instructions: Nothing tricky here. To install True Key into Firefox, you browse to the true key website using Firefox and click the big "download" button! To install in Chrome, ditto using Chrome.

It does NOT seem to work on Chromium, only the actual Google Chrome.


Please Open /etc/samba/smb.cnf and Cross check

workgroup name
authentication
netlogon

and in [shareddrive] block

browsable = yes

https://help.ubuntu.com/community/Samba/SambaServerGuide


Resolve Big Ugly Plymouth Splash Xubuntu 12.04

It comes down to enabling the propriety graphics drivers. Plymouth then appears wrong resolution.


Ubuntu 18.04 crash after upgrading from 17.10

Try hitting Ctrl+Alt+F1 after boot up. Then login with your username and password and try:

sudo apt-get update
sudo apt-get upgrade

If your installation was interrupted it might solve the problems and then:

reboot now

and press Enter.


How to pipe installed packages to apt-cache?

The {} \; syntax that you have guessed is specific to the find command and won't work in this context. You could use xargs ex.

apt list --installed | sed 's/\/.*//' | xargs -n1 apt-cache search

Actually xargs has its own {}-like syntax that you could use here, i.e.

. . . | xargs -n1 -I{} apt-cache search {}

although it is redundant in this case (it's useful for cases where you want to substitute the piped value at a point other than the end of the command).

However the apt-cache search command is almost certainly not what you want here - it will search the entire (online) catalog for packages that match each of the results of apt list --installed. Even if you restrict the scope of the search using --names-only you will still get many false positives (i.e. substring matches between packages that ARE installed and packages that AREN'T). It will also be horribly inefficient.

For this particular task I'd skip apt altogether and use the lower-level dpkg-query command ex.

dpkg-query -W -f='${binary:Package}: ${binary:Summary}\n'

which will be much more efficient (only traverse the package list once) and will be strictly limited to the local package catalog.

If you want to limit the output to packages that are currently installed, add the db:Status-Abbrev field and filter on that e.g.

dpkg-query -W -f='${db:Status-Abbrev}\t${binary:Package} - ${binary:Summary}\n' |
  awk '/^ii/'

or

dpkg-query -W -f='${db:Status-Abbrev}\t${binary:Package} - ${binary:Summary}\n' |
  awk -F'\t' '/^ii/ {print $2}'


How do I download a file using SVN+ssh link?

try

svn checkout svn+ssh://svn@myhost.com/myfile


Ubuntu 19.04 Alternate Keyboard Shortcut for Home/End Buttons

General answer on the "command" item

In the "Command" section of the "Set Custom Shortcut" dialog, you need to provide a command that needs to be executed when the key combination is pressed. That could be the name of an executable, e.g. gnome-terminal would cause the keyboard combination to lauch a terminal window, or firefox would cause firefox to launch. That command may also be an executable script containing a range of commands. For example, I have a hotkey that (only) blanks my screen (without locking or anything else). The script is called blankscreen and resides in my bin folder in my home folder. The script is nothing else than a small text file, containing:

#!/bin/bash
sleep 0.3 &&  xset dpms force off

The script file is set to be executable (right-click the script file, "Permissions" tab). In the "Command" section, I would then fill out the full pathname of the script:

/home/$USER/bin/blankscreen

(where "$USER" is to be replaced by your real login.)

Specific answer on creating extra home key

Easy approach using Settings - Keyboard

For what you want to do, i.e, have an extra key combination for Home or End you may need to resort to a utility xdotool. It can simulate key presses. Install xdotool first:  it is not installed by default. To create an extra Home, fill out following code directly in the "command" field:

sh -c "sleep 0.4 ; xdotool key Home

Deeper system approach

You can redefine keys and key combinations with tools such as sxhkd or xbindkeys. This will provide a much more integrated, seamless solution but requires some more technical skills to set up.


Authentication required for every 1 hour for Internet but NO proxy. How do I get out from this problem?

I assume they are using a transparent proxy, that is one you don't normally see at all.

You can get to the authentication page again by opening a new tab/window in your browser and try to connect to any web server from there. After reauthenticating you can proceed as usual.


Cannot access Ubuntu menu, not to mention Windows operating sys

I think the "menu" you're referring to is GRUB (the boot manager). It's simple to get it back to work. Open terminal (Ctrl+Alt+T) and run the following commands:

sudo apt-get install grub

If the output is something like grub is already the newest version then run the command sudo apt-get install --reinstall grub.

After GRUB was installed, run

sudo update-grub

If everything is fine, restart your PC and you should see your "menu" again, with Ubuntu and Windows options.


Multiple Java versions for Minecraft servers

Here's one way, using LXD Containers (this is how I do it). This is not the only way, and what might work best for you may be different than what works best for me. I'm moderately skilled at this stuff; coming at this new to containers, networking, package management, and systemd would take a couple days of learning.

Containers use Kernel features to behave quite like a Virtual Machine (VM) - a container feels like a separate machine, but with surprisingly little overhead resource cost. You can use containers to isolate different versions of applications (like Java) without affecting your host system, and to host different network services. Containers are not real VMs, and containers are not perfect...but they can be very handy.

Planning. You will need around 15GB (total) for the containers.
Install and set up the lxd snap. Very good tutorial and example.
Create a test container. Take a couple minutes to practice starting and stopping it, creating and destroying it, figuring out it's IP address, and how to get shell access within the container. Also figure out how to autostart a container at host boot.
Create two containers. Get shell access inside each. Install the appropriate Java and Minecraft Server into each container. Depending upon the version of Java you need, your containers might be using two different releases of Ubuntu! Install whatever release of Ubuntu includes the correct version of Java that you need. DON'T install the newest Ubuntu and then try to mangle the system to make a different Java fit. DON'T install Java from a non-Ubuntu source.
[OPTIONAL] Edit the LXD networking profile to get IP addresses from your router instead of a host-internal NAT. This means you only need to port forward once (at the router) and keeps your network simpler. Each container will have a separate IP address. Set up the port forwarding on your router for both containers.
Set up systemd services within each container to start and stop the minecraft server. This will start the minecraft server at container-start (boot), and gracefully stop the server at container-stop (shutdown). I prefer this over the typical screen hacks. All Minecraft Server output is logged anyway, so you can read it anytime.
Finally, figure out how you want to backup your Minecraft worlds. You can simply export a copy of the entire container to whatever your backup scheme is (warning: it's big). Or your can use the lxc pull command to merely grab the /home/minecraft directory where all the data is.

NOTE: Lots of folks make mistakes with their first container. That's okay. Keep notes on what you did and why so you can maintain it, improve it, and remake it better next time.

That seems like a lot of setup. However, it has a lot of benefits: Each Minecraft Server is fully sandboxed from the host system and from the other server. Different IP addresses, different everything...but easy control, monitoring, and troubleshooting for you. This setup uses built-in features of Ubuntu: Package management, automatic security upgrades, systemd control and monitoring.


Start your solution by opening the terminal (Alt+Ctrl+T) and enter:

sudo /usr/lib/lightdm/lightdm-set-defaults --show-manual-login true

Restart the computer, hope it will work, if it doesn't remove  ~/.Xauthority in home by

sudo rm ~/.Xauthority

then you can easily login.

If you have installed cinammon then, try the following:

sudo apt-get remove --purge cinnamon*`
sudo apt-get autoremove

If you don't have cinnamon installed but any other desktop environment alongside Unity, try to uninstall those. (Gnome fallback should be fine though). hope it will work.


Why does Vi add the letters ABCD when I press arrow keys in insert mode?

That is because of wrong terminal settings. Check your TERM variable and make sure it is set correctly.

Most common to do first is a ...

:set term=builtin_ansi

inside vim and see if that works.

Also have a look at this vim wikia page. It has a 24 different approaches to this problem.


Guidelines for documenting your contributions to the Ubuntu project

Yes, you are supposed to create an Ubuntu Wiki page about yourself.

To do this, go to https://wiki.ubuntu.com/YourName (replacing YourName with your actual name) and click on Create a new empty page.

As for what information to put on your wiki, I would look at what existing Ubuntu Members have on their wiki pages.

There is a list of Ubuntu Members at https://launchpad.net/~ubuntumembers/+members#active. Click on some profiles and see their respective wiki pages.


Installing Ubuntu Server on MacMini Server 5,3

Never had any luck with the alternate installers but Ubuntu Server 11.10 installs without any problems.

Thanks anyway!

Some bonus things;

Set to autoreboot on power failure: setpci -s 0:1f.0 0xa4.b=0 (not sticky, put in startup script)

Note that you may also want to run

sudo apt-get install build-essential

after a fresh install to get the default compiler/build tools.


irw isn't picking up all of my remotes keypresses

I had a similar problem trying to get a remote working with MythTV on Natty.  It seems that the kernel in Natty has IR remote capability built in and this should work with many types of IR remote.  However, the problem is that the kernel maps some of the keys to keycodes greater than 256 and X can only handle keycodes in the range 0-255.  I was eventually able to get my remote working by re-mapping the necessary keycodes to stay within this range.  This is done using a utility called ir-keytable (in repository).  It can also be used to track key presses instead of irw, which does not seem to work with the kernel driver.

Note that I did not need to install lirc to get this working.

Hope this points you in the right direction.


apt tries to resolve the problem, you can also use "apt-get -f install" to ask it for that. However you can't expect it can fix the dependencies (with other solution than removing the problematic package) if there is no package in the configured repositories which is needed by the "problematic" package. Dependencies also can require version specific things (newer, older, etc). So in nutshell; you may have the problem since you forced something to install a package with dependencies which cannot be resolved at all. The question is: where did you get that package? Is it possible that it has got a version which is designed for your version of ubuntu? I guess this can be the problem anyway. So the problem is caused by you, when you ignored dependencies with intent "--force-depends".

If you are really brave (note, this is really not recommended!) you can edit that package's dependencies by editing file /var/lib/dpkg/status. If the software otherwise work for you, it can be the solution, but again, this is VERY ugly also you can damage your package database this way, this is really not a clever thing to do, unless you like to be bad :)


How to open the terminal? (Mis-configured the profile)

Sounds like you've botched your profile up slightly by adding a custom command (something that runs as soon as it opens).

Thankfully you can edit your profile settings by running this (use Alt+F2):

gconf-editor /apps/gnome-terminal/profiles/Default

If you've botched up too much you can use the Etch-a-Sketch method and reset everything back to defaults:

gconftool --recursive-unset /apps/gnome-terminal/


How do I increase the terminal border size in xfce?

Alternatively, use <Alt+Left Click> to move windows and <Alt+Right Click> to resize windows, which doesn't require that you click on the edge at all.


R has very good charting capabilities (click here for a gallery of examples with sources).

It is free and installable from the repositories. The main package is r-base, several additional packages are also available.

Note that R is not a spreadsheet. It is a programming environment -- a bit of work is necessary to obtain what you want. There are, however, several tutorials (this and this for pies).


You need this flash plug in

sudo add-apt-repository ppa:mjblenner/ppa-hal
sudo apt-get update
sudo apt-get install hal

Here is a post with more information LINK Post number 3

If after a reboot it wont work then copy paste this to a terminal, ONE LINE AT A TIME

sudo mkdir /etc/hal/fdi/preprobe
sudo add-apt-repository ppa:pipelight/stable
sudo apt-get update
sudo apt-get install --install-recommends pipelight-multi
sudo pipelight-plugin --update
sudo mkdir /etc/hal/fdi/information

/usr/sbin/hald --daemon=yes --verbose=yes

rm -rf ~/.adobe

Do not be worried by these commands enter them one at a time and tell me of any errors ,reboot when you are finished.

OK If this is not working for you we will try another way, open terminal run one at a time

sudo add-apt-repository ppa:pipelight/stable
sudo apt-get update
sudo apt-get install --install-recommends pipelight-multi
sudo pipelight-plugin --update

If a Microsoft core fonts licence screen comes up, first perss the tab key and then enter.

next run this command (this undoes what we first tried)

sudo apt-get remove --purge hal

And finally

sudo pipelight-plugin --enable flash

You could reboot here don't think you need to up to you.

Open your web browser and go to your video, the browser shoud automaticly try to download a plug in, give it permission if you have to.

When it is installed close your browser then open it again and it should work

To get silverlight close the browser

sudo pipelight-plugin --enable silverlight

Open the browser go to the video and the plug in will install then restart the browser.


Unable to connect via SSH: port 22 error

sudo apt-get update
 sudo apt-get install openssh-server
 sudo ufw allow 22

Run the commands listed above in the terminal. The first one will update the repository list. The second one will install openssh server and set up the default configuration. The third will allow connections to your computer over port 22.

This is just the bare minimum to connect to your computer using SSH. There are other things that you can do to secure your system from attack. Port 22 is well known for SSH and if you're allowing a connection to port 22 from the Internet you will see many people trying to attack it.


Why is overriding the LANG environment variable not changing the language for me?

Because LANGUAGE, which takes precedence over LANG, is set and unchanged.

$ LANGUAGE=nl ls /nonexistent
ls: kan geen toegang krijgen tot /nonexistent: Bestand of map bestaat niet

More info is in the GNU gettext documentation:

  GNU gettext gives preference to LANGUAGE over LC_ALL and LANG for the purpose of message handling, but you still need to have LANG (or LC_ALL) set to the primary language; this is required by other parts of the system libraries.


How can I watch the output that was filtered with grep?

You need to enclose the piped command in quotes as follows:

watch -n 2 'gsettings list-recursively|grep text-scal'

This will execute the command gsettings list-recursively|grep text-scal and watch it every two seconds. Note that the time interval is in seconds.

Refer to watch's manual page for more.


How can I install Windows 8 while dual-booting Ubuntu?

Without any problem run Windows 8 installation, and when you are asked for drive to what you want to install it, simply create new partition, give some value for it and select new created partition to install on. If this not work, boot in Ubuntu, click dash home from launcher and type in search box: disk utility. When you open it, select your hard drive from left side, and create partition which will be NTFS formated and give some value to it. Then reboot, run Windows 8 installation, and select that new partition created.


A PDF viewer supporting SyncTeX for Gnome

As I noted in a comment, it would help to know if you have a particular editor in mind you want to use along with it.

The gedit-latex-plugin adds a built in PDF preview to gEdit, and I gather it supports SyncTeX forward/reverse searches. Certainly that's what jumps to mind to me when I think of something for GNOME users.

There are other LaTeX editors with built-in previewers that support SyncTeX jumps such as: TeXworks, Texmaker, TeXmakerX. These are all Qt-based rather than GTK-based, but still, none of them require KDE or its libraries like Kile/Okular do. (gummi is GTK based and has a built in previewer -- a live updating one at that -- but I don't think it supports synctex...)

As the other answer notes, evince is supposedly getting this feature, and people are working on the necessary plugins for interaction on the editor side. I gather it uses DBus for interaction--a big mistake if you ask me--but like you can't figure how it works. However, there is an older version of evince in the Arch Linux User Repository which has patched to provide SyncTeX support more directly. I've never tried compiling it on Ubuntu, though theoretically it should be possible. I have used it on Arch though, and it works fine.

I personally, however, use MuPDF as my viewer for LaTeX composition, which I choose because it's the fastest PDF viewer I know, and the only one fast enough for the live-updating-preview script I use with Vim as my editor.

While MuPDF doesn't support SyncTeX directly, I hacked together some xdotool scripts that provide partial SyncTeX support. Basically, for forward search, the scripts call synctex from vim to figure out what page matches the spot in the source, and then sends the appropriate keystrokes to MuPDF to jump to that page. I do this with a vim script, but with bash, something like this might do the trick:

#!/bin/bash
# mupdf-forward.sh
# usage mupdf-forward.sh <line number> <column number> <tex file> <pdf file>
SEARCHLINE="$1"
SEARCHCOL="$2"
TEXFILE="$3"
PDFFILE="$4"
PAGEFORWARD=0
PAGEFORWARD="$(synctex view -i $SEARCHLINE:$SEARCHCOL:"'"'"$TEXFILE"'"'" -o "'"'"$PDFFILE"'"'" | grep -m1 'Page:' | sed 's/Page://' | tr -d '\n'")"
if [ $PAGEFORWARD -gt 0 ] ; then
   xdotool search --class MuPDF type --window %@ "${PAGEFORWARD}g"
fi

If you have the newest version of xdotool (newer even than the one in the Maverick repos), you can kludge up a similar kind of reverse search by having xdotool read the page number that MuPDF is showing from its title bar, call synctex, and then send the appropriate command to the editor to jump to where the code for that page is (--not nearly as precise as you'd get with a real SyncTeX-compliant PDF viewer, but not too shabby for something as lightweight as MuPDF).

Anyway, you can read about and download the scripts I actually use for vim in this blog post. But if you want to use a different editor, you'll have to adapt the idea as necessary.

But hopefully the situation with evince will straighten itself out sometime soon too.


unable to install mongodb on ubuntu 14.04

Using ALL the commands below, command by command

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org

Source


Can not add repositories in Ubuntu GNOME 17.04

It would appear the issues is from a corrupt or incomplete previous install, or a corrupt sources list.

The way to fix that is to use the line below to reconfigure the install.

sudo dpkg --configure -a

From a bit of googleing I deleted the sources list first, but it appears this is not actually required, but is worth mentioning in case the above fails.

sudo rm -f /etc/apt/sources.list.d/*

For the record I am using Ubuntu 18.04.


How to get Scilab 6.0.1 working on Ubuntu 18.10?

Nowadays Scilab is ported to OpenJDK 11. So we have to install it with (if not installed before):

sudo apt-get install scilab

So we can use latest scilab package 6.0.1-7ubuntu1~18.10 as usual from GUI, but scilab-cli and scilab-adv-cli are now broken (it is new bug 1825037).

Note 1: Scilab color theme is incompatible with dark Gtk themes, so user should set light one (this is bug 1547561) such as Radiance or Radiant-MATE.

Note 2: Scilab ATOMS system is broken too (see bug 1765503) because of problems with HDF5.

To prevent this bugs we need to install binary version as written in my answer for Ubuntu 18.04 LTS .


When the user "john" logs in through ssh, it is given a shell --- depending on your configuration this can be different, but by default is their default shell, which by default is bash.(1)

bash will execute all the standard init files: basically /etc/profile, and the .profile in /home/john. You can add keymap entries to any of these files (the first one is under superuser control, the latter is under john's control).

See for example https://stackoverflow.com/questions/4200800/in-bash-how-do-i-bind-a-function-key-to-a-command

Now, Ctrl-C is quite a low-level function, going straight through sending a signal to the running process. I do not know if you can remap it.

(1) not for me, for example; I have zsh as default shell. YMMV.


Unable to increase 'open files' limit in 16.10

Does Ubuntu v16.10 use systemd?
Then you may be running into the problem where graphical logins are started by systemd which doesn't use /etc/security/limits*.
See this answer instead:

https://superuser.com/a/1322187/116705


Unity gives you only the top panel. But you can install an additional panel, like tint2 or gnome-panel and add it to your autostart programs.


My solution for Intel display devices:

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

reboot

sudo apt-get install mesa-vdpau-drivers

wget --no-check-certificate https://download.01.org/gfx/RPM-GPG-KEY-ilg-3 -O - | sudo apt-key add -

sudo apt-get install gksu

gksudu firefox

Open https://01.org/linuxgraphics/downloads/intel-graphics-installer-linux-1.4.0 & download & install the proper version

intel-linux-graphics-installer


Can groups or other users have access to /root?

The permissions 744 (r-xr--r--) are wrong.  It should be 755 (rwxr-xr-x).
with 744, others can see what is in the directory, but without x on the directory, they can't access anything in it.


Second monitor goes black when joined on Ubuntu 18.04.2 LTS

I reinstalled ubuntu but this time selected the download option and also the third part install option.

After booting, I followed the guide here :
https://linuxconfig.org/how-to-install-the-nvidia-drivers-on-ubuntu-18-04-bionic-beaver-linux

As you can see the guide is out of date, however ignoring that, I followed guide and ran

ubuntu-drivers devices
sudo ubuntu-drivers autoinstall

The second monitor is now working perfectly.


Why can't I SSH in to an IP address that I am able to ping successfully? (mssfix doesn't work as a solution)

Ok, so in the end I was able to solve this problem thanks to a piece of advice from someone I'm working with. Apparently I just needed to change the line:
comp-lzo no

in my ovpn file to:
comp-lzo yes

And that solved the problem! This solution did not come up anywhere I searched online so I wanted to be sure to share it here in case it would be useful for others. Cheers!


Can I import a ZFS data pool from FreeNAS without losing the data?

As Bruno Pereira has said, the zfs version number from FreeNAS needs to be equal or smaller than the zfs version number ubuntu supports. After zfs v28, this switched over to the need for support of the enabled zfs options.

For 16.04, the versions of zfs and FreeNAS 9.10 or even FreeNAS 10 are equal and a FreeNAS pool can be converted. I just converted a FreeNAS 10 trial installation myself for use under 16.04.


How to limit xen dom0 RAM to a certain amount?

The line you have to add in /etc/default/grub is:

GRUB_CMDLINE_XEN_DEFAULT="dom0_mem=min:640M,max:640M"

and:

update-grub
reboot


FWIW, things have changed since this question was posted (exactly a year ago).  Canonical has now announced FIPS is available for Ubuntu 16.04.

A couple blurbs from that announcement:

  We are pleased to announce that officially certified FIPS 140-2 level
  1 cryptographic packages are now available for Ubuntu 16.04 LTS for
  Ubuntu Advantage Advanced customers and as a separate, stand-alone
  product.

and

  Users interested in FIPS 140-2 compliant modules on Ubuntu 16.04 can
  purchase Ubuntu Advantage at https://buy.ubuntu.com/ or by contacting
  the Canonical Sales Team.

  For further information please visit https://www.ubuntu.com/security.

I also found a page on how to install.  Of course, as mentioned, it's commercial only.

EDIT: CentOS, RHEL users has FIPS natively available


Which Ubuntu flavour is best for my device?

Since your processor supports 64 bit, use 64 bit.  64 bit will let you upgrade your memory at a later time if you find 4GB to be too little.

I recommend that new users to Ubuntu use the latest LTS which would be 16.04 LTS. That way you will have a stable system for a number of years and a direct upgrade path to the next LTS when it is released in April 2018.


How do I switch between windows of applications when ` is in a shifted position?

The What's new page seems to not tell the whole truth when it says that the key combination for switching between windows of application is Alt+` (grave accent) because this is only true for the keyboards that has ` placed above Tab.

The key combination to switch between windows of applications is Alt+[The key above Tab]. On my keyboard the key above Tab is § and the key combination and thus the key combination to switch between windows of applications is Alt+§.


How can I return to Unity notifications after installing XFCE4?

I'm not sure about the first part, but if you don't want to use the Xfce notifications (and thus, use Unity's notifications instead), you can remove the "xfce4-notifyd" package:

sudo apt-get remove xfce4-notifyd

Then log out and log back in.


How to install Brosix secure instant messaging on an Aquaris E5 Ubuntu phone

Brosix is providing versions for amd64 and i386 processors. This means 64bit and 32bit desktops.

Phones are using ARM processors.

So, at least they should recompile for armhf (and also make sure that the application doesn't depend on X11 display server).


Does placing a symbolic link in the path work the same as creating a symbolic link of an executable in the path?

Creating a symlink of any path will be treated by the system as a directory. So if you have an application path like /usr/share/myapp/myapp.bin and you link /usr/share/myapp into $HOME/bin, the path to be called would be $HOME/bin/myapp/myapp.bin and you would still have to have $HOME/bin/myapp in your $PATH.

Linking the executable itself could work, but if myapp.bin evaluates its own pathname, that could cause problems too. I would instead create a starter script in your bin like this:

$HOME/bin/myapp.sh:

#!/bin/sh
PATHTOMYAPP=/usr/share/myapp
$PATHTOMYAPP/myapp.bin "$@"

Add execute permissions to myapp.sh, and now you can call myapp.sh to start myapp.bin


How to upgrade Xampp to the newest version

Uninstall lampp with the following command:

sudo /opt/lampp/uninstall

This will keep untouched three folders in your installation directory (htdocs, temp and var). Htdocs is the folder which contains the files and var is the folder which contains the databases of all your projects.

Afterwards, change the permissions of the installer you downloaded

chmod 755 xampp-linux-*-installer.run

and run the installer

sudo ./xampp-linux-*-installer.run

All done. XAMPP is now installed under /opt/lampp directory.


No "efi" option during manual disk partitions

To start with your question:

  What is the proper way to make Live USB with Ubuntu for UEFI computer ?

Create a working USB drive by using the disks tool from within Ubuntu.
Open it and select Restore Disk Image from the menu on the top right.
Choose the ISO file and the USB drive to write it to and start restoring.

Now to your screenshot:

So far everything seems to be just the way it should be.

Install Ubuntu to the already existing partition sda6.

But the device for boot loader installation – you have to select sda.
The boot loader will automatically be installed to EFI partition sda2.


How do I change global hotkeys / keyboard shortcuts?

If you are looking all keyboard shortcuts, type keyboard in launcher hit enter to open it. You can find all shortcuts under shortcut tab.


can not connect to internet via bridge adapter in virtual box

You are not able to connect guest over bridge connection because both system use  same port 22 for ssh. I would suggest to configure port forwarding 2222 (or any unused/reserved) port on host to 22 port on guest system.  After configuring port forwarding you will be able to connect to your guest system over 2222 port (or any unused/reserved port).
ssh user@192.168.43.168 (or any ip of guest system) -p 2222


How do I import contacts from csv file into Ubuntu Contacts

Check out this answer.

  The quickest way to do this, honestly, would be to install Evolution, import your CSV file into the "CouchDB" addressbook, and then uninstall Evolution. You don't need to keep Evolution on your machine once you've got the contacts into the cloud, so you're basically using Evolution as a "contacts importer" application.


How do I install the evasi0n jailbreak tool?

I just figured it out:
Go into the downloads folder, and extract it. Go into the folder, and the one that says evasi0n, click on it, and a window will open up. Just choose "open with terminal".  A terminal window will pop up, and then the evasi0n window will.


I am trying to get GNOME desktop on lubuntu, but im not sure what do to from here

Start by installing the desktop with:
sudo apt install ubuntu-desktop

Insert your password and press Y when asked. That'll take a few minutes When you're done, reboot your computer.
At the login screen, look up at the top where it says 'Session' and use that drop down menu to select the newly installed Ubuntu desktop. It will look similar to this, though probably at a different resolution. (I did this in VirtualBox.)

Then, enter your password and login. It should look like this:


Why is ecryptfs so slow when running du -s?

Here's why, based on an explanation by one of the lead Canonical developers:

  Getting a list of all filenames in a directory requires decoding, parsing and decrypting the lower filenames.
  The stat() calls from du cause a lookup, which requires allocating an eCryptfs inode, reading part of the lower file metadata, checking to make sure it is an eCryptfs file and then parsing out the unencrypted file size to set the eCryptfs inode's i_size field. Keep in mind that reading the metadata from the lower filesystem involves reading a page into the lower filesystem's page cache.

Put simply, the problem is not I/O rate, but IOPs -- huge numbers of IOPs!

eCryptFS is getting better as it evolves: compare the Phoronix benchmarks of 9.10 vs. 11.10.

You may want to consider dm-crypt, which has historically been faster and still seems to have an edge.


How can I count characters of text copied in the clipboard?

You would need to release the clipboard contents somehow. Avoiding files can be done via a pipeline. For that there exists the xclip utility. It is not installed by default, so unless another program installed it as a dependency you may want to run

sudo apt-get install xclip

Once you install it, you can do

xclip -o sel clip | wc

Note that there exists more than one clipboard aka selection in Linux, hence why the use of -o sel clip flags. Of course, with use of a pipeline this avoids use of intermediate files as requested in the question.

Another side benefit of this utility is that you can use this utility not just in a GUI terminal, but within any virtual tty console by appending DISPLAY=:0 to the beginning of the command (or the other appropriate display, if your X Window aka GUI server is configured for more than one display). See the related post here on that same topic. Thus, you avoid using keyboard shortcuts for releasing clipboard contents, and you can write scripts that use the clipboard in a more powerful way.

There is also another utility called xsel which operates in a similar fashion. You can read about it in a related post.


You can read it from the file /etc/lsb-release


Unable to boot in to Ubuntu after Windows fall creator updates

It seems to me that the Linux kernel image got corrupted by the action you mentioned. Simplest way to fix this is to reinstall the kernel by booting into a live Ubuntu (USB). Try replacing vmlinuz and initrd. Make sure you replace the right files by cross checking it with the grub configuration.


Minecraft Bukkit server spams logfile - Ubuntu 12.04

Figured it out :) :) :)

The problem was the missing --noconsole option. The console of the Minecraft server is on per default and got some commands that it shouldn't get, then it replied "<" everytime and this output was piped into the logfile constantly.

Now my upstart script looks like this and it works fine:

start on runlevel [2345]
stop on runlevel [^2345]

console log
chdir /srv/minecraft/server-kronos
setuid root
setgid root

respawn
respawn limit 20 5

exec java -Xms1024M -Xmx1536M -jar craftbukkit.jar -o true --noconsole


Easiest way is to burn it on to a DVD and boot from it. Follow this Official Ubuntu instructions from www.ubuntu.com for installation.

If you are willing to boot with a USB stick, follow this Official Ubuntu documentation from help.ubuntu.com.

IF you are to make a dual boot, follow this Official Ubuntu Documentation from help.ubuntu.com.

If you are willing to make the installation inside Windows with Wubi, follow this help.ubuntu.com Official documentation.


Why isn't persistence working on Lubuntu 12.04 Live-USB?

Please try creating the persistent USB with Unetbootin; we've seen many problems with the Universal Installer here.

Note that I tried with Lubuntu 12.04 and persistence works perfectly for me:

The persistent partiion /cow above is 256MB, and it works as expected. You can check for its presence on your Lubuntu...


What exactly is the Linux kernel and does Ubuntu use a modified Linux kernel?

An operating system kernel is the central part of the operating system, handling all main tasks. It is loaded into a protected area of memory at boot time. Kernel space, where the kernel carries out its tasks, and user space, where everything else happens, are kept separate. The /sys directory contains a virtual filesystem that provides a view of kernel data structures and objects from user space.

The Linux kernel is a monolithic kernel originally developed by Linus Torvalds, who still directs its development. The latest vanilla kernel can be downloaded from kernel.org, and Ubuntu kernels (patched by Ubuntu kernel team) are available from the Ubuntu mainline kernel ppa

The kernel is found in the /boot directory. When a new kernel is installed (for example, as part of a routine update and upgrade procedure) old kernels are not automatically removed, and over time the /boot directory becomes full, and this can cause serious problems if /boot is on a small separate partition. To prevent this, users should periodically run sudo apt autoremove to clean up (actually the initrd.img file for each kernel is larger than the kernel itself, but that is removed along with the kernel by autoremove). It is advisable to keep at least one "spare" older kernel. The user can select which kernel to boot from the GRUB menu. The newest kernel (with the highest release number) is booted by default.

The release number of the running kernel may by checked with the command uname -r

For more details, see the documentation maintained by the Ubuntu Kernel Team.

Source: 'kernel' tag wiki
Reference: https://help.ubuntu.com/community/Kernel


Open your home folder and press Ctrl + H and delete the .wine folder .
Now press Ctrl + Alt + T and paste winetricks dotnet20 and press enter .
It will take some time and download .net 2.0 framework .
Now Install the GPRO Organiser .

Note - if it doesn't work

Open dash ( the top-left button ) search for "Browse c:" and run browse c: drive .
Now go to program files and find the .exe that runs the gpro organiser.
Press Ctrl + Alt + T,a terminal window will open .
Drag that exe file to the terminal window and press enter .
Now copy the text on the terminal window and add it to your question .


DVI+HDMI out, at startup only HDMI is available

This was a kernel issue for Sandy/Ivy Bridge that is now fixed in 12.04 (among other stuff fixed for Sandy/Ivy Bridge). I just so happen to have an Sandy Bridge and have the same Black problem.

This also happens with Nvidia card using HDMI but for them the solution was to upgrade to the latest Nvidia PPA Driver. In the case of the integrated video we need to wait for 12.04 to come out.

My setup is:

Ubuntu 11.10 (32 Bit)
Intel DZ68DP
Intel Core i7 2600


How to mount just one directory from a NTFS partition using command line?

You can't directly mount a subdirectory of a partition without first mounting the partition.
you can not mount just a folder from a partition, if you want to mount a folder you will need to mount its partition first. or better if you want mount just a folder it will mount its partition automatically.


You could try VirtualBox and let Windows run in the Virtual Machine. But especially when it comes to using the GPU like with games VMs often aren't a good (and performance wise efficient) way to go. The problem is mainly that compared to running it directly on the hardware the GPU isn't used as efficient in a VM which results in worse performance inside the VM. How bad this is depends on a lot of factors, so it is hard to give any general advice.

You can limit how much of the GPU,CPU,... is given to the VM if this is your concern.

What about a Dual-Boot System Ubuntu/Windows?

Another solution without actually installing a "real" Windows is using PlayOnLinux.


cannot install Ubuntu (message about PAE)

Press tab when you see the Ubuntu loader, select your language, press F6 (for "Other Options") then add the word forcepae at the end ie. the whole boot options line will be:

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


fstrim has changed in Ubuntu 15.04 compared to previous version. fstrim-all --no-model-check is now called as fstrim --all. There is no more option to desiable model-check.

/etc/cron.weekly/fstrim does now contain:

#!/bin/sh
# trim all mounted file systems which support it
/sbin/fstrim --all || true

So you don't need to change anything in Ubuntu 15.04 concerning TRIM


Internet speed really slow in linux but not in Windows

Please check to see if two possibly conflicting drivers are loaded:

lsmod | grep rtl

If you find that both rtl8192cu and rtl8xxxu are loaded, then blacklist one:

sudo -i
echo "blacklist rtl8192cu"  >>  /etc/modprobe.d/blacklist.conf
exit

After making this change, reboot and let us hear the result.


How do I make *tree* list hidden files as well?

Use tree -a

$ man tree
-a     All files are printed.  By default tree does not print hidden files
(those beginning with a dot `.').
In no event does tree print the file system constructs
`.' (current directory) and `..' (previous directory).


How can I redirect standard error to standard output in R - Sniny

This code works.  trueFalse and errorMessage are captured by the server by calling the function that produces that code and displayed by using renderText() in the server and textOutput() in the GUI

trueFalse = FALSE
       # capture all the output to a file.
        FILE <- file("log.txt", open = "wt")
        sink(FILE)
        sink(FILE, type = "message")
        #try(log("a"))
        try(message("Path does not exist. You can make changes to the PARAMS file.  Afterwards, stop and restart glycoPipe"))
        ## revert output back to the console -- only then access the file!
        sink(type = "message")
        sink()
        #file.show("log.txt")
        errorMessage <- (readLines("log.txt"))


Execute the following commands in terminal

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CFBCA7A67412649C

and then update

sudo apt-get update


How to use JACK and Pulseaudio/ALSA at the same time on the same audio device?

As of 16.04, things become a lot simpler :)

Just install qjackctl and pulseaudio-module-jack module:

apt-get install qjackctl pulseaudio-module-jack

Then configure qjackctl to run the following command after startup. Copy it into "Setup..." > "Options" > "Execute script after Startup":

pacmd set-default-sink jack_out

And that's it. Pulseaudio will recognize (through D-Bus) that JACK started, and automatically will route audio to it. When JACK is stopped Pulseaudio will revert to normal routing and start sending audio directly to card again.

So (almost) by default Pulseaudio implements the setup detailed above by mmv-ru.


Cannot connect to ftp server via browser but I'm able connect from terminal using ftp server_addr

That's an easy one. Add

anon_root=/srv/ftp

or whatever directory you wish. That one is just the default as per the file Hierachy standard

The anon_root will be the "root directory" that anonymous users (from a web browser) will connect to…

To see all of the parameters:

man vsftpd.conf


HDMI not working in Ubuntu 18.04 (Razer Blade 14" 2017)

I just had a razer blade laptop with GTX 1070 MQ thermal or something. It was using nvidia-435 drivers. None of the hdmi or the thunderbolt was detecting external monitors.

xrandr also gives the same output as yours. My solution was to upgrade the nvidia graphics drivers through nvidia's website.

I choose the following options:

GeForce
GeForce 10 Series (Notebooks)
GeForce GTX 1070
Linux 64 Bit

It redirected me to a download which gave me a .run file, I right clicked it and gave it a permission to be executed as an executable (from properties)

executed it as a super user, it asked me to close everything that uses nvidia gpu, so i did a prime-select intel and rebooted the computer (this switches to intel gpu), and I re ran the installation, it failed again for some reason. I switched to nvidia graphics card with prime-select nvidia and restarted the computer. Afterwards I launched the nvidia-settings app to see the driver version. It said 440, however the ubuntu additional drivers pane says I have 435 installed. When I plugged in the hdmi and the thunderbolt my displays worked.I think it is an Nvidia driver issue.


Error when installing Ubuntu 14.04 with GTX 970

Boot from the USB.

Highlight "Try Ubuntu without installing".
Press the E key.
Add nouveau.modeset=0 to the end of the linux line.
Press the F10 key to boot into the Live desktop.

Perform the installation.

When the Ubuntu system installation process is finished,
unplug the USB and boot into the installed Ubuntu OS.

Highlight the "Ubuntu" GRUB menu entry.
Press the E key.
Add nouveau.modeset=0 to the end of the linux line.
Press the F10 key to boot into the Ubuntu system.

First of all ... install the NVIDIA drivers.


It's a special kernel for the Google container engine.
Software Description:

linux: Linux kernel
linux-aws: Linux kernel for Amazon Web Services (AWS) systems
linux-azure: Linux kernel for Microsoft Azure Cloud systems
linux-gcp: Linux kernel for Google Cloud Platform (GCP) systems
linux-kvm: Linux kernel for cloud environments
linux-oracle: Linux kernel for Oracle Cloud systems
linux-raspi: Linux kernel for Raspberry Pi (V8) systems
linux-gkeop: Linux kernel for Google Container Engine (GKE) systems
linux-hwe-5.8: Linux hardware enablement (HWE) kernel
linux-oem-5.10: Linux kernel for OEM systems
linux-aws-5.4: Linux kernel for Amazon Web Services (AWS) systems
linux-azure-5.4: Linux kernel for Microsoft Azure cloud systems
linux-gcp-5.4: Linux kernel for Google Cloud Platform (GCP) systems
linux-gke-5.3: Linux kernel for Google Container Engine (GKE) systems
linux-gke-5.4: Linux kernel for Google Container Engine (GKE) systems
linux-gkeop-5.4: Linux kernel for Google Container Engine (GKE) systems
linux-hwe: Linux hardware enablement (HWE) kernel
linux-hwe-5.4: Linux hardware enablement (HWE) kernel
linux-oracle-5.4: Linux kernel for Oracle Cloud systems
linux-raspi-5.4: Linux kernel for Raspberry Pi (V8) systems
linux-raspi2-5.3: Linux kernel for Raspberry Pi (V8) systems

found on:

https://www.pro-linux.de/sicherheit/2/60448/sicherheit-mehrere-probleme-in-linux.html
https://ubuntu.com/kernel/variants


How to disable sleep/suspend at login screen?

I found a solution from here https://askubuntu.com/a/543861/718511, though they wanted to do the reverse so it's slightly modified. Essentially a script is made to disable dpms and lightdm told to run it.

In /etc/lightdm/lightdm.conf.d/ make a file 50-dpms.conf:

sudo nano /etc/lightdm/lightdm.conf.d/50-dpms.conf

Add the lines

[SeatDefaults]
display-setup-script=/usr/local/bin/dpms-stop

Close the file

In /usr/local/bin/ create a file dpms-stop:

sudo nano /usr/local/bin/dpms-stop

Add the lines

#!/bin/sh
sudo xhost +si:localuser:lightdm # grants localuser rights to X session
sudo su lightdm -s /bin/bash <<HERE
/usr/bin/xset -dpms
exit
HERE

Close the file

Make the file executable:

sudo chmod +x /usr/local/bin/dpms-stop

At reboot it worked for me.


Slow booting / starting after apt-get update 12.04

Ideapad Z580 users seem to be experiencing an ACPI issue.  Booting with ACPI=Off works but I have read this cripples hyperthreading (so what is the point?)    Here is a related thread:

Ideapad Z580 won't boot kernels above 3.2.0-32


How do I reduce the size of mlocate database?

The /var/lib/mlocate/mlocate.db.?????? files are leftover temporary files from a (probably) interrupted updatedb run. They don't appear on either of my Ubuntu 11.10 systems, except when updatedb is running. Delete them:

sudo rm -f /var/lib/mlocate/mlocate.db.??????

then, to be sure, run

sudo /etc/cron.daily/mlocate


Tool or command to move multiple files from multiple folders into one place (without overwriting)

Type this command in your terminal (Ctrl+Alt+T to open it) :

find $LOG_DIR -type f | xargs -I {} sh -c 'base=$(basename "$1"); name=${base%.*}; ext=${base##*.}; mv "$1" "$OUTPUT_DIR/$name`date +%N`.$ext"' -- {}

Basically, this will find all your files in $LOG_DIR (that you have to replace with the emplacement of the parent of your 70 folders), extract the name without path (basename), separate the name and the extension and then move them to $OUTPUT_PATH (replace by where you want them to go) and append the number of nanoseconds at this time (data +%N) to the name, so no overwrite.

PS: I've got a little help from there : StackOverflow


Speech recognition software (keyboard and mouse replacement and/or dictation)

There is a program called Simon and Amith KK from this forum posted these instructions on how to install it when using Ubuntu 18.04.

Here is also a link to that thread:
I would like to install Simon Voice recognition software on Ubunu 18.04

git clone git://anongit.kde.org/simon simonsource

Install the build dependencies

sudo apt-get install cmake kdelibs-bin kdelibs5-dbg kdelibs5-dev

And then build it

cd simonsource
./build_ubuntu.sh


How to fix An "Expired Timestamp" error?

I have looked at my system time and could not find anything wrong with it. I now just looked up the two timestemps and there are apart a whole day. I reset my system time to the correct day and now it works. Thanks


The way I do it is using a custom_command in ~/.config/terminator/config as follows:

...
[profiles]
  [[default]]
    ...
    custom_command = TERM=xterm-256color bash -l # Do not use 'terminator' here
    use_custom_command = True
    ...

This works like a charm i.e. for the 256-color skins for
midnight commander. The -l option makes bash run as a login shell (which means that it will load settings from your .bash_profile).  You can omit it if you prefer Terminator to launch bash as a non-login shell (so that it will load .bashrc instead).


lscpu shows me "op-mode:32-bit, 64-bit", what it means?

Running lspcu shows you that your processor supports both 32 and 64 bit instructions.

CPU op-mode(s):        32-bit, 64-bit

But this is just about the CPU.

Next, run uname -p

If you see output like this:

x86_64

then you are running a 64 bit OS.


Unless you use (not yet officially released) libimobiledevice 1.2.1, there's no way to do anything with iOS 10 devices. You may get different errors coming from the strenghtened SSL/TLS requirements in iOS 10, like:

$ sudo ifuse /media/iphone
GnuTLS error: Error in the pull function.
Failed to connect to lockdownd service on the device.
Try again. If it still fails try rebooting your device.

Or:

$ ideviceinfo
GnuTLS error: Error in the pull function.
ERROR: Could not connect to lockdownd, error code -5

And so on. Github issue to follow.


https://www.youtube.com/watch?v=vABwWSZLMMY

* Here are the steps in the videos *

Step 1:

First install pre-processor, compiler, and wrapper by running following command

sudo apt-get install gpp gcc g++

Step 2:

Download Code::Blocks binary  "codeblocks_17.12-1_amd64_stable.tar.xz" from official CodeBlocks website.

Step 3:

Extract downloaded archive with

tar -xf codeblocks_17.12-1_amd64_stable.tar.xz

Then install extracted deb-packages with

sudo dpkg -i *17.12*.deb

And finally, install missed dependencies with

sudo apt-get install -f


My linux pc is corrupted and showing this error "error: no such device: a029261a"

You can boot from Ubuntu LiveUSB and copy all your files anywhere you like, if your HDD is still alive.


Although neither the original Broadcom BCM43142 nor the additional  TP-LINK TL-WN725N (Realtek TRL8188EU) wireless adapters were not recognized by Ubuntu while running the OS from a thumb drive, both were recognized after Ubuntu was installed. I think the drivers were not available while running the OS from a thumb drive. After I took a leap of faith and installed Ubuntu on the laptop, the TP-LINK wireless adapter was recognized. With that done, I got connectivity to the Internet and could then install the drivers (proprietary) for the original Broadcom wireless adapter. Bottom line, both wireless adapters now work nicely.


Does juju helps to build own private cloud?

Yes, that is one of the things that Juju (and MAAS) can help you do. If you have your own servers and wish to turn those in to a private cloud you can do one of two things at the moment with Juju.

You can just install MAAS on those servers. MAAS, Metal as a Service, is a Canonical tool to allow you to treat "metal" (bare servers, or VMs) as a Cloud. After you've done so, you have a "cloud". While it's not a traditional cloud you can use Juju to drive your servers.

If you're looking for a more traditional "private cloud", you can use your MAAS+Juju setup to deploy OpenStack. OpenStack is available as Juju charms. So once you've setup MAAS and Juju you can use Juju to deploy all the OpenStack charms. Once deployed you've now got MAAS, using Juju you've deployed another cloud on top of that (OpenStack). At this point you can walk away and use OpenStack as a cloud or configure Juju to now use that new OpenStack service to deploy other Juju charms.


Is it possible to have two monitors with different scales?

It should be possible. I have not tried doing this with xrandr directly. I used the Display Settings. I am on xUbuntu, and for me its Menu->Settings->Display

The Iiyama is set to 1920x1080, whilst the Dell is 1280x1024 (I normally have them the same, I just changed them for you!)