Permission denied visiting HTML off of server

Found my answer after asking around and research more.

FIRST but not recommended is:

  "here is a review of the steps to take to open up access of /var/www
  for users (which will include the user's access when they use ftp).
  The example gives 'myuser' access.

  groupadd www_users
  usermod -a -G www_users myuser
  chown -R root:www_users /var/www
  chmod -R 2775 /var/www

  find /var/www -type f -exec chmod 0774 '{}' \; Now myuser should have
  full access to create/remove/edit files and directories in /var/www,
  even when they connect via ftp. The key is in the setgid bit, so that
  group ownership is taken from the parent directory when a new file/dir
  is created. Thus assuring all users in the group always have access."

From: Source

Then, after I gained FTP Access I added all my website files into /var/www/html/ and changed my homepage name to index.html, named the default one to .old.

Then I did the following command in order to give access to groups and other users read and execute only permissions along with root to have all permissions.

sudo chmod -R 755 /var/www

Now if I visit my website VIA server ip: 192.169.1.214, it will show my websites home page.

  Recursively change permissions to -rwxr-xr-x.

  sudo chmod -R 755 /var/www

  You should end up with the following permissions on all of the files
  in the directory. Root: read, write, execute Group: read, execute
  Others: read, execute

  Remove read permissions on the folders you don't want users in the
  group or other to access (chmod 744 folder or chmod 700 folder). Just
  add the -R option to do it recursively. For more information on file
  and folder permissions, please read
  http://catcode.com/teachmod/summary.html. There are 3 pages to read
  through there.

From: Source


scp copy over ssh doesn't work - permission denied error, please?

You have things in the right order from what I understand, the general way an scp is done is:

scp sourceuser@sourcehost:/path/to/source/file destinationuser@destinationhost:/path/to/destination/

Judging by your question, you have a local file you want to send to the destination server. So you have the right syntax which is good!

If you're getting permission denied, then you're not using the correct username or something's amiss with the authentication. Most likely, it's because the sudo command only works locally, for starters, so it won't give you root on the remote box, so that's probably the problem. Make sure that the user you are logging in as on the remote server has write permissions to the location you're trying to write to.

If the problem is the destinationuser doesn't have access to that location without sudo, move the file to the destinationuser's home folder then sudo mv the file from the shell on the other server to put it in the right location.


When you do not want to use DHCP and/or want NetworkManager to ignore some interface that you want to manage manually, just provide a configuration via /etc/network/interfaces. The interface will then be ignored by NetworkManager. See

$ man interfaces

for further info on how to configure interfaces manually. This is a template file (snippet) that configures the interface eth0:

auto eth0
iface eth0 inet static
  address 192.168.0.10
  netmask 255.255.255.0
  gateway 192.168.0.1
  dns-nameservers 8.8.8.8

Obviously you need to change the IP addresses. Note that the last line is evaluated by resolconf (it's a package/program, I don't mean the resolv.conf file), when and only when the interface is brought up successfully. You can check if the interface is up with /sbin/ifconfig. That should output the keyword UP and the IP somewhere. gateway in the above snippet denotes the IP of your router. Check if this ip appears in your route with the command route -n. Then ping your router. If that works, then you could ping 8.8.8.8. If that works check if the DNS correctly appears in the /etc/resolv.conf file. If it does, then check if you can resolve DNS names. In that order. If something in betweens fails, it is not a problem with your DNS.

If you're not able to get this straight using /etc/network/interfaces (package ifupdown) and want to know how to bring up an interface with basic commands, drop a comment.

Then you need to investigate how the trouble started in the first place. You've learnt already that you first need to clarify that your machine is able to ping 8.8.8.8 before you conclude to an error at resolving DNS though that server. If all that works fine, but the resolver entry just doesn't get tranfered correctly from /etc/network/interfaces to /etc/resolv.conf then continue your research at the documentation of the package resolvconf.

CONCLUSION:

Do not deinstall your dhcp software, when you depend on the internet connection and have few experiences on how to configure an interface manually. There are a lot of high level packages involved with bringing up an interface, namely network-manager, ifupdown and resolvconf and others. Which one does what is not obvious. ;)


"U1Conflict" Folders Appearing in Thunderbird

It sounds like your ~/.thunderbird folder is setup to sync with Ubuntu One. You can see if this is the case by running the following command in a terminal session:

u1sdtool --list-folders

If ~/.thunderbird is listed there then you can remove it by taking the ID listed and then running:

u1sdtool --delete-folder=PASTE-ID-FROM-LIST-FOLDERS-COMMAND-ABOVE

You can tell Ubuntu One to sync specific folders, but you cannot tell it to sync specific files.


Errors were encountered while processing: mount

You probably need to "reinstall" the "mount" package by doing:
sudo apt --reinstall mount;

then:

sudo apt upgrade


How can I reduce lagging with GUI/GPU stuff -- make Unity run smaller, quicker, faster?

Try Unity 2D.
When you're at login screen and you have to put in your password, on the right of your name there is an Ubuntu logo. Click on it and then select The 2D option. ;)


How do I install a cx8800 TV tuner's firmware?

Firmware blobs (including the ones for tv tuner cards) typically live in the linux-firmware-nonfree package

sudo apt-get install linux-firmware-nonfree

I don't see anything for a CX8800 in the file, but it might be worth installing it and seeing one of the firmware files in there support your tuner. If not you can file a bug on the package.


How to copy large number of small files to a NTFS external drive?

Maybe you can move them to tape archive (*.tar) and copy the archive to another drive then. It could possibly help you.

Compress:

 tar -cvf my-new-archive.tar dir-with-files-to-add/*

Decompress:

 tar -xf my-new-archive.tar dir-for-extract-files/*


Why can't my pc and iPhone find each other via Bluetooth?

In my opinion the problem lays with the iPhone as Apple only supports headsets to pair with an iPhone and not Pc's. Can you connect to ur headset with your pc, because then the problem lays with the iPhone for sure..

Hope this helps...


Measure performance of a fast bash script?

It's better to use something like time command.
Bash also has a time built-in, what I'm suggesting is using time binary located at: /usr/bin/time.
For one runtime:
command time -f "\nElapsed: %E \nUser: %U \nSystem: %S \nMemory: %M\n" \
./MyCommand 1> /dev/null

Which outputs:
Elapsed: 0:00.01
User: 0.00
System: 0.00
Memory: 2412

command: forces bash to use /usr/bin/time instead of time built-in.

You can use time with a loop to get a "avrage", "min", "max" of a specific resource say memory:
This code will run ./COMMAND commands 1000 times, then prints out the "min, max, avg" of its total (data+stack+text) memory usage.
#!/bin/bash
tmpfile=`mktemp`
for i in {1..1000}; do  command time -ao $tmpfile -f "%K" ./COMMAND 1>/dev/null; done;
awk 'NR == 1 {min = $0} $0 > max {max = $0} {total += $0} END {print total/NR, min, max}' $tmpfile
rm $tmpfile

Here is the output:
2436.89 2524 2324

You can change %K with:

%E: Elapsed real time
%I: Number of file inputs
%P: Percentage of the CPU that this job got
%k: Number of signals delivered to the process
%U: CPU usage in user mode
%S: CPU usage in kernel mode

See man time
Thanks to muru for writing a more clear awk statement.


How to make a .desktop shortcut to a url using firefox

Firefox is not fully ready with web apps yet, but an experimental feature is available. Give the following a shot.

Go to about:config and search for browser.ssb.enabled
Set it true
Underneath, there is an option browser.ssb with a + button at the right edge. Click that button and a new preference (boolean) will be created, which should also be set true.

Now try the following in your Exec= line
Exec=firefox --ssb https://app.pomodoneapp.com/?_ga=2.78761235.644758067.1592449913-2065833867.1590831037#/dashboard


Can't access some websites using any browser

The problem was solved by connecting using sudo pppoeconf command. But connection using network manager was still messy.


Why Wired Internet is not working in Ubuntu 16.04 LTS?

So I read somewhere on this forum or I don't know where that a user having similar problem cold booted his computer and internet worked or did I read somewhere that cold booting removes everthing from ROM or RAM (I don't know)? I did the same about 2 days ago and to my surprise, internet worked! Ubuntu 16.04 detected wired connection and it started working. Yay!


Access to a VMware VM Ubuntu server via SSH from the internet with public IP

Yes, you need to configure port forwarding to make this work.
As an aside, there is an option in the settings of the virtual machine where you can easily configure VNC access. You would select "Edit virtual machine settings" and in the Options tab, find "VNC Connections." For that feature, you have to select a port on the host system to use, and then when you connect from some remote VNC client, you would use the host IP and the port you've chosen to connect. Note that the host system is the system that is running VMware Workstation Pro.

They don't have a shortcut like this for SSH though, so you'll have to use the virtual network editor to do this. The VM itself will connect to the virtual network VMnet8, which in your example is 192.168.42.0/24. You would edit that network, and again configure an external host port to use, which you would configure to connect to port 22 on your virtual machine's IP. Note that you'll have to ensure that your host OS allows connections on that port, and it isn't blocked by any OS firewall.


How to access a file on the boot medium from the live installer preseed/early_command?

if you want to affect files in the live environment, [...] you must prefix their filenames with /root.

I knew that in the live environment I can access the usb stick's file system with /cdrom. So I tried whether using /root/cdrom might work, and it does indeed work.

d-i preseed/early_command string cp /root/cdrom/preseed/warty-final-ubuntu-blue.png /root/usr/share/backgrounds/warty-final-ubuntu.png


Finally, I solved the problem. It was related to ANSYS installation. It was noticed that if you have transparency issues in CFX pre/post or turbogrid, add this to ~/.bashrc:

export XLIB_SKIP_ARGB_VISUALS=1

It solved the problem both in ANSYS and freeCad.


Why does find -exec only accept {} in some positions?

The + form of -exec always places arguments at the end of the command you give. Therefore, {}, which represents the arguments, must immediately precede +. This is dissimilar to the ; form of -exec, which runs one command per file found and uses the filename wherever {} appears.

So that's your answer... but it does raise the additional question of why that limitation is in place in the first place, which is a bit murkier.

With +, the -exec action runs your command as few times as possible, passing as many filenames as it can in place of {}. Especially if there might be many files found, this form of -exec is only suitable for use with commands that behave the same--or at least in a way consistent with what you want--when the filenames are split across multiple invocations of the command, as they do when all the filenames appear in a single invocation.

Commands that accept a variable number of filename arguments in a single invocation, to produce the same effect as if the command were executed once for each filename, often accept them as trailing arguments. There are, of course, exceptions like cp and mv with directory targets (though you can pass -t dir to make those work with +). This is also somewhat easier to reason about, in that when you write ls -l followed by filenames, it feels like ls -l is "the command" you're running to operate on those named files, but when you write ls, followed by filenames, followed by -l, it doesn't quite feel that way.

As for what to do about it, your approach of simply putting options like -l before the {} is good. This has additional advantages: though less common on GNU/Linux systems like Ubuntu than on some other Unix-like operating systems, some commands don't accept options after a non-option argument has appeared. (See getopt(3) for details.)

Since you're running ls, you might consider using find's -ls action instead of -exec. Note also that you don't need to quote +, since unlike ;, shells don't treat the + character specially.


You can edit you /etc/hosts and add some name and ip for each pc you will yo connect.

Example

command is:

sudo nano /etc/hosts

At the end of file add you hosts

127.0.0.1       localhost
127.0.1.1       xxx.xxx.xxx        xxx

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

# At the end of file add you local pc's
xxx.xxx.xxx.xxx    nice_blond
xxx.xxx.xxx.xxx    nice_body
xxx.xxx.xxx.xxx    just_nice

After this you will can connect to "nice_body"

vinagre just_nice


How to backup Ubuntu partition via Windows?

If I understand correctly what you were trying to do - i.e. make a disk image of Ubuntu from a booted version of Windows - you could have used a utility such as Macrium Reflect Free Edition (http://www.macrium.com/reflectfree.aspx).  This program will make an image of an entire hard disk - or one or more individual partitions.  It includes a backup of the Master Boot Record (MBR) so that, for example, restoring the Ubuntu partition of a dual-boot hard disk also "refreshes" grub.  Clonezilla would also work (in a live-CD or bootable-USB version) under Linux but, in my opinion, is less user-friendly than Macrium Reflect's GUI.


You Can disable jack by following disabling-jack-in-android-compilation

The path of of javac.mk is  build/core/combo/javac.mk

- ANDROID_COMPILE_WITH_JACK := true
+ ANDROID_COMPILE_WITH_JACK := false


So I seem to have solves this.
It was really obvious and sad that I missed it.
When I did the update, for some reason I lost the driver I was using to run my graphics card.
I reinstalled it, and configured it as I had it before the update, now everything works as it should work.


I had a similar error when trying to start a program called keepass on 12.04.  This solved it:

sudo apt-get install mono-devel


Go to Settings >> software sources and make sure that your device is enabled from the additional drivers


You need to set execute rights to directory to have access rights to it. So try

chmod 555 <directory_name>


Kernel panic - not syncing: Attempted to kill init!

Are you trying to do a clean install of Ubuntu from CD onto a physical PC?  Do you see any errors that occur leading up to this message?

In any case, that kernel panic message could be caused by a lot of different things.  Often it's hardware related.  I'd suggest running a memory test: https://help.ubuntu.com/community/MemoryTest.  You may have bad RAM or just need to reseat it.


Windows 8 itself won't really be a problem, but the secure-boot stuff that is included on all windows 8 computers probably will be.  You will want to investigate the hardware manufacturer and the specific hardware model to see if they either allow turning off secure-boot, or if there is some way to install/boot a different OS.   The Ubuntu 64-bit installer supports UEFI booting, so getting it installed is the only real hard part.

Please do read the link that Aditya posted for more information: Installing Ubuntu Alongside a Pre-Installed Windows with UEFI


Migrating to new SSD, not booting! (GRUB not loaded)

If your computer is UEFI you must first create EFI Boot Partition and your SSD shouldn't use MBR anymore but GPT. I had the same problem with my Sony VAIO. Or if you don't use Windows at all, then change UEFI to BIOS. For sure, Sony VAIO's UEFI implementation sucks.


cannot login to gmail with pine (on Amazon)

after about half an hour, I received:

  ‘Suspicious sign in prevented’ email

  If you’ve received a ‘suspicious sign in prevented’ email from Google,
  it means we recently blocked an attempt to access your account because
  we weren’t sure it was really you. To help protect your account, we
  send you an email when we notice unusual sign-in activity, like an
  attempt to sign in from a different location or device than normal.

https://support.google.com/accounts/answer/6063333?hl=en

while browsing.  After enabling the login, alpine isn't much faster on EC2 than locally -- just doesn't load large folders quickly, I suppose.


You could try ZoneMinder

http://www.zoneminder.com

Info about ZoneMinder from ZoneMinder.com

  ZoneMinder is an integrated set of applications which provide a
  complete surveillance solution allowing capture, analysis, recording
  and monitoring of any CCTV or security cameras attached to a Linux
  based machine.


ATI has Catalyst drivers. I had them installed before.

From the Dash, open the Additional Hardware software. Your graphics card (and maybe other hardware) will be automatically detected and proprietary drivers for it will be displayed.

Go ahead and install.


For what I've heard, those files are not meant to be played on other system, than the TV.

It looks like there's an encription on them, that makes converting it to other formats rather difficult.

  The recordings are not intended to be portable. They are just supposed
  to allow people to watch the recorded TV programs on their TV at a
  more convenient time, or pause and resume the show as necessary. The
  recordings cannot be played back with anything other than the TV that
  made them.

You can read more here.


How to connect laptop to internet via android phone

You have to set the phone up as a wifi hotspot then connect your laptop to the SSID of your phone. On my Android phone (4.1.2), I go to Settings, Wireless and Networks then mobile network sharing. Then I can enable the portable wifi hotspot.
You can probably get a more detailed answer here: https://android.stackexchange.com/


Firstly, as A.B. rightly points out, the file is not empty. It has two rather important directives, namely
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/

Those lines are saying that additional configuration files (.cnf in this case) can be found in the directories listed:
/etc/mysql/conf.d/
/etc/mysql/mysql.conf.d/

The latter of the two directories should contain mysqld.cnf. In other words, the appropriate configuration file should be:
/etc/mysql/mysql.conf.d/mysqld.cnf


Can't install or uninstall oracle-database-ee-19c on my Ubuntu 20.04

Ubuntu does not support Oracle 19C. Therefore we have to install it on DOCKER.
Installing docker to Ubuntu
Update software repositories
• sudo apt-get update

Uninstall older docker versions
• sudo apt-get remove docker docker-engine docker.io

Install docker
• sudo apt install docker.io

1
Give ‘y’ as yes to continue.
Start and Automate docker
• sudo systemctl start docker

• sudo systemctl enable docker

Oracle 19C should download into the docker. We are going to pull(download) Oracle 19C image from docker hub.
To check pulled and imported images to docker.
• sudo docker images

(Still there are no images)
Pull oracle 19c image
• docker pull banglamon/oracle193db:19.3.0-ee

After pull completed, check images
5
It’s good to save to backup the docker image.
• docker save banglamon/oracle193db | gzip > oracle19c.tar.gz

banglamon/oracle193db -Repository******oracle19c.tar.gz-save as name
This will take a few minutes to backup.
6
You can find the exported file in /home
Installing Oracle 19C on docker
It will be easier if you have docker image info on sight(root user)
• docker images

Below command is to run the image.
• docker run -d --name oracle19db -p 1521:1521 -e ORACLE_SID=SE -e ORACLE_PDB=SEPDB -e ORACLE_PWD=Oracle123 -v /u01/app/oracle/oradata:/opt/oracle/oradata banglamon/oracle193db:19.3.0-ee

banglamon/oracle193db-Repository******19.3.0-ee-Image Tag
8
After pressing ENTER you can see the container ID.
Installation runs in the background. We can check the status of the process in another terminal by below commands.
• docker ps -a

• docker logs -f [container ID]

9
This will take time as per your system configuration.
Once the process finished, you can see DATABASE IS READY TO USE and the last line should be XDB INITIALIZED and no further logs will be generated.
10
Ctrl+C to exit the log.
When we run the image, it will create a container in docker. To check container
• docker ps -a

We have to start the container in order to work.
• docker start [container ID] or [container NAME]

Now execute the container.
• docker exec -it oracle19db bash -c “source /home/oracle/.bashrc; sqlplus /nolog”

After opening Oracle, test the localhost connection
• conn / as sysdba

If it’s connected, all good.....!
You have to make Oracle up and running every time you restart your PC.
Use the below steps;
Log into terminal as root
• sudo su

Check docker processes
• docker ps -a

12
Start the oracle container
• docker start [container ID]

Execute the container
• docker exec -it oracle19db bash -c “source /home/oracle/.bashrc; sqlplus /nolog”

14
Now you're good to go..


Assuming that you are using 11.04, go to System Settings>Appearance>Fonts and increase the font size for Application, Document, Desktop and Window title.

Here it is step by step. Click on the power button on the top right and then select System Settings

Then click on Appearance:

Then click on the font you want to edit:

Then select the font size and hit Ok:


software-center was abbandoned in 16.04 in favour of gnome-software. You should use that. If you really want to install the old one type sudo apt install software-center in a terminal as the last line from the error message  says.


Following the simple steps in
https://www.jianshu.com/p/c936a8a2180e
solved all above problem.

Just that my sogoupinyin is crashing all the time. but that's a different story. At least, now my google pinyin input is working.

Again, to summarize, I installed fcitx-googlepinyin previously, and apparently there are some missing dependent packages (in its dependent list). The sogoupinyin package force installed the following packages, which solved the above problems:

The following NEW packages will be installed:
  fcitx-frontend-qt4 fcitx-libs fcitx-module-kimpanel libaudio2 libfcitx-qt0
  libmng2 libopencc2 libopencc2-data libqt4-dbus libqt4-declarative
  libqt4-network libqt4-opengl libqt4-script libqt4-sql libqt4-xml
  libqt4-xmlpatterns libqtcore4 libqtdbus4 libqtgui4 libqtwebkit4 qdbus
  qtchooser qtcore4-l10n


rsnapshot bug with 14.04 - rsync not found error

Bug confirmed in 14.04 see https://bugs.launchpad.net/bugs/1332753

Installed from git repo to have rsnapshot working in 14.04 e.g.

  sudo apt-get remove rsnapshot git clone
  https://github.com/DrHyde/rsnapshot ./configure --sysconfdir=/etc sudo
  make test sudo make install

  sudo cp /etc/rsnapshot.conf.default /etc/rsnapshot.conf

Rsnapshot will now work with the +rsync_long_args=--rsync-path="sudo rsync" command.


K, I've found how to do it.

I just created the rc.local script with the commands above, disabled the waiting service with:

systemctl disable systemd-networkd-wait-online.service

Because it was waiting like 5 mins to have an internet source working, and changed /etc/network/interfaces to:

allow-hotplug enp3s0
iface enp3s0 inet dhcp

So it wasn't trying to set up the interface for that 5 mins.

Now it works perfectly. I was kinda confused because rc.local doesn't exist by default.


How do I partition a hard drive when Ubuntu is already installed?

Try GParted

sudo apt-get install gparted
sudo gparted

it's pretty self-explanatory


Plasma 5: add new Device Notifier actions

Device/Solid Actions

KDE System Settings > Removable Storage > Device Actions

or

System Settings > Device Actions (under 'Hardware')

or

search "solid" or "device actions" in KRunner (Alt-Space) or any application launcher and select Device Actions.

KDE online Device Actions Handbook: https://docs.kde.org/trunk5/en/kde-workspace/kcontrol/solid-actions/index.html

  This module allows you to set up the actions you want to associate
  when you plug new devices.


how to write a script that runs on the beaglebone

If you mean you want to run those two commands inside the SSH session on 192.168.7.2, you just have to pass the commands as parameters to the ssh command:

ssh debian@192.168.7.2 'mkdir folder1/; mkdir folder2/folder3'

Notice the quotes around the commands, and the semicolon between them.

However, in this case, you can call mkdir once and pass it both folders to create; and, just in case folder2 doesn't already exist, you should pass mkdir the -p switch to create it if needed.

ssh debian@192.168.7.2 'mkdir -p folder1/ folder2/folder3'

Hope this helps!

PS, for reference you should read the man pages for ssh and mkdir


The issue definitely related with connectivity, try to ping or trace ubuntu servers. If connectivity is fine, probably you are behind proxy, use environment variable:

export http_proxy=<your_proxy>:<port>


Background

Original Reference: http://peterpetrakis.blogspot.com/2013/06/automating-and-encrypting-duplicity.html

Having suffered data loss in the past and hacking on storage suggests that
it's a good idea to have regular backups. I wanted redundancy in case my
local server failed and I wanted to encrypt my backups using a password
protected gpg key.

The current solution uses a passphrase kept in plain text outside of the
backup path. I plan to investigate moving the gpg key to a smartcard and
using a pin key to unlock it instead. If anyone has any additional solutions
please describe them in detail.

Persisting requisite environmental variables

Running anything from cron detaches it from your current environment, you lose
all of the variables describing things like your ssh-agent gpg-agent, stuff you
need to begin to communicate with the remote server.

I took a simple approach, in my ~.bashrc I created the following.

cat > ~/.backenvrc << EOF
# used by crontab backup script
export SSH_AGENT_PID=$SSH_AGENT_PID
export SSH_AUTH_SOCK=$SSH_AUTH_SOCK
export GPG_AGENT_INFO=$GPG_AGENT_INFO
export GPGKEY=XXX-insert-your-gpg-key-here-XXX
EOF

and simply source this from the backup script referenced in my crontab,
I merely need only login once to populate this file.

Setting up the Crontab

# crontab -l
# m h  dom mon dow   command
MAILTO=ppetraki@localhost
BACKUP=/home/ppetraki/Documents/System/Backup
#
0 0  * * *      /usr/bin/crontab -l  > $BACKUP/crontab-backup
0 0  * * *      /usr/bin/dpkg --get-selections > $BACKUP/installed-software
0 0  * * *      /usr/local/bin/ppetraki-backup.sh inc
0 0  * * Fri    /usr/local/bin/ppetraki-backup.sh full

Note that I am also backing up my crontab and my list of installed software,
eventually I will move this into another script that also does things like

1) backup my bookmarks from chrome and firefox

2) backup mail in a non-binary format

The current cron format performs an incremental backup every night and a
full backup every Friday.

Driver script

This wraps the invocation of duplicity and acquires the necessary environmental
variables. Duplicity itself can be hairy with all the command line switches
and even more of a burden if you have multiple targets. I have redundant backups,
first to a local server and to a remote service provided by rsync.net (great customer
support!). I found  horcrux to be a wonderful, lightweight, duplicity wrapper to suit my needs.

The driver script, which is external to my backup path, also contains my GPG passphrase
to encrypt my backups. Eventually I wish to move to a smartcard driven system [illustrated here] (http://blog.josefsson.org/2011/10/11/unattended-ssh-with-smartcard/)

[/usr/local/bin/ppetraki-backup.sh]

#!/bin/bash

export PATH=$PATH:/usr/local/bin
action=$1

export USER=XXX
export HOME=/home/$USER

source $HOME/.backenvrc

echo "verifying environment"
echo "gpg-agent: ${GPG_AGENT_INFO}"
echo "gpg-key:   ${GPGKEY}"
echo "ssh-agent-pid:   ${SSH_AGENT_PID}"
echo "ssh-auth-sock:   ${SSH_AUTH_SOCK}"

if [ -z $action ]; then
  echo "requires an action!"
  exit 1
fi

export PASSPHRASE=

[ -z $PASSPHRASE ] && exit 1

echo "begin"

for config in local_backup remote_backup
do
  horcrux clean   $config
  horcrux $action $config
done

Using horcrux to wrangle duplicity

Horcrux has the notion of profiles that takes all the complexity out of managing
the duplicity CLI. Here's an example of a profile.

cat /home/ppetraki/.horcrux/local_backup-config
destination_path="rsync://192.168.1.XXX/backups/personal"

 cat ~/.horcrux/local_backup-exclude
- /home/ppetraki/Sandbox
- /home/ppetraki/Bugs
- /home/ppetraki/Downloads
- /home/ppetraki/Videos
- /home/ppetraki/.xsession-errors
- /home/ppetraki/.thumbnails
- /home/ppetraki/.local
- /home/ppetraki/.gvfs
- /home/ppetraki/.systemtap
- /home/ppetraki/.adobe/Flash_Player/AssetCache
- /home/ppetraki/.thunderbird
- /home/ppetraki/.mozilla
- /home/ppetraki/.config/google-googletalkplugin
- /home/ppetraki/.config/google-chrome
- /home/ppetraki/.cache
- /home/ppetraki/**[cC]ache*

I found it problematic to backup only sub directories of things like mozilla
and google-chrome, instead I will write an additional script to cherry pick
those files for backup.

The main horcrux config file

cat ~/.horcrux/horcrux.conf
source="/home/ppetraki/"          # Ensure trailing slash
encrypt_key=XXXXXX     # Public key ID to encrypt backups with
sign_key='-'             # Key ID to sign backups with (leave as '-' for no signing)

use_agent=false          # Use gpg-agent?
remove_n=3               # Number of full filesets to remove
verbosity=5              # Logs all the file changes (see duplicity man page)
vol_size=25              # Split the backup into 25MB volumes
full_if_old=30D         # Cause 'full' operation to perform a full
                         # backup if older than 360 days
backup_basename='backup' # Directory name for local backups (i.e., destination
                         # /Volumes/my_drive/backup/ or /media/my_drive/backup/)
dup_params='--use-agent' # Parameters to pass to Duplicity

This is great as it reduces a backup invocation to this:

 $ horcrux inc local_backup

Monitoring

I defined MAILTO in my crontab and also installed mutt and the reconfigured
postfix for local mail delivery. Every night I get a progress report on how
the backups ran.

Conclusion

I've spent quite a bit of time determining how to automate this in and provide
strong encryption. I hope you find this useful.


Is it possible to flip columns of a table horizontally in Libreoffice writer?

You should copy your table and put it into a LibreOffice Calc document.

Then switch, modify and change the cells.

At the end you need to re-transfer your table into the LibreOffice Writer document: select the table, copy it, and use paste special (Ctrl+Shift+V) to put it in the Writer document, according to this question.


Download a particular version of a package with apt

You installed the package from a PPA. When doing an upgrade to the new version of Ubuntu, PPAs are automatically disabled. So, the deb-src line is no longer in use, and thus apt-get cannot find the source package. You will need to re-enable the PPA, and then run apt-get update to be able to pull that specific source.


Installed program won't show up in the Dash

It's a bug. That's why it is so.

You can load a program by entering the following code + enter in terminal.

doxywizard

I suggest making manual shorcut for it, developers will hopefully fix that in future tho...

Source: bugs.launchpad.net


Considering that your input is just one long line, and you want to get first and last item, we can use awk to do exactly that.
The command for that would be:

awk '{printf $1"\n"$NF"\n"}' data.txt

Sample output:

$> cat data.txt
CAM_READ_0623233309 /library_id=CAM_LIB_002149 /sample_id=CAM_SMPL_003380 raw_id=G9ALM7U02F5HAW length=383 /IP_notice=?This genetic information downloaded from CAMERA may be considered to be part of the genetic patrimony of Denmark, the country from which the sample was obtained. Users of this information agree to: 1) acknowledge Denmark as the country of origin in any country where the genetic information is presented and 2) contact the CBD focal point identified on the CBD website (http://www.cbd.int/countries/) if they intend to use the genetic information for commercial purposes.? TGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGT
$> awk '{printf $1"\n"$NF"\n"}' data.txt
CAM_READ_0623233309
TGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGTGT
$>


Please amend your question to include the most current information from pactl stat in a Terminal and from the instructions at https://wiki.ubuntu.com/Audio/AlsaInfo.  As an aside, I've contacted Fabio (the person who asked you to reinstall pulse) with clarifications to his triaging process.  Thanks for your patience.


Is it okay to sub a 2.5" drive for a 3.5" drive in a desktop?

There are no issues using laptop drives in desktops. I have been exclusively using laptop drives on desktops with Ubuntu for many years now.

If anything, there should be less overheating because the drive is less confined in a desktop.

There is also this similar question on Superuser that has the same answer.

Just plug the smaller SATA data cable and larger power plug into the drive as shown. However, you should also properly mount the drive to the frame so that it is grounded to prevent static discharge or damage from movement.


SSH Public Key. disable login for specific user. pam?

If you want to disable a user from being able to remote into SSH, you have a couple configuration options directly from /etc/ssh/sshd_config.

I personally favor using whitelists instead of blacklists for user accounts.  Here is why, using a whitelist only allows the explicit users to login where a blacklist, only prevents those users.  The whitelist is more complete in my opinion.

If you wanted admin, joe, and sally to remotely connect using SSH, the following directive added to /etc/ssh/sshd_config would work.

AllowUsers admin joe sally

If you simply wanted to block baduser from connecting, use the following.

DenyUsers baduser

Either option, you need to sudo service ssh restart for the changes to take affect.


Use USB wifi instead of internal - manage

Identify your internal wireless interface first on the terminal using ip a, and then modifying /etc/network/interfaces and set it to iface wlan0 inet manual.

Then sudo service network-manager restart.


no desktop after 12.10 update to 3.5.0-22 generic

Did you installed nvidia drivers from nvidia site in earlier kernel? If so please download from here & install. You have to do it whenever there is a kernel update.

If you used additional drivers in earlier kernel use followings,

Re install nvidia drivers using following commands

sudo apt-get --reinstall install nvidia-current
sudo apt-get install nvidia-settings


Android 4.4.2
The Galaxy Tab 3 7.0 was released with Android 4.1.2 Jelly Bean. But the Wi-Fi model has also received the Android 4.4.2 Operating System Update. Samsung has customized the interface with its TouchWiz UX software.
Source: https://en.wikipedia.org/wiki/Samsung_Galaxy_Tab_3_7.0

Because Android, like Ubuntu is a Linux based Operating System I would recommend you stay with the native OS that comes with Galaxy Tab.
Although Ubuntu announced Unity 8 Interface as the unified interface between Desktops, Cell Phones and Tablets the project has been canceled so you would likely get more programs and better support through Android.


Using awk and an input file with the name foo

awk '! /^date/ {print} /^date/ && ! a {a=1; print}' foo

Output

Filename:xxxxxxxx
date: 2014/12/24 14:46:41;  author: xxxxx;  state: Exp;  lines: +210 -206
revision 1.23

If you have more than one block of Filename … revision in one file, e.g.

Filename:xxxxxxxx
date: 2014/12/24 14:46:41;  author: xxxxx;  state: Exp;  lines: +210 -206
date: 2014/11/18 21:00:43;  author: xxxxx;  state: Exp;  lines: +617 -594
revision 1.23
Filename:xxxxxxxx
date: 2014/12/24 14:46:41;  author: xxxxx;  state: Exp;  lines: +210 -206
date: 2014/11/18 21:00:43;  author: xxxxx;  state: Exp;  lines: +617 -594
revision 1.23

you should use

awk '! /^date/ {a=0; print} /^date/ && ! a {a=1; print}' foo

to get

Filename:xxxxxxxx
date: 2014/12/24 14:46:41;  author: xxxxx;  state: Exp;  lines: +210 -206
revision 1.23
Filename:xxxxxxxx
date: 2014/12/24 14:46:41;  author: xxxxx;  state: Exp;  lines: +210 -206
revision 1.23


Open a terminal (you can use CtrlAltT) and type:

gksudo nautilus

A new Nautilus browsing window will appear. Use it to copy and paste the results.


Use the install disk if it has the efibootmgr on it then this can delete entries from your EFI firmware for any OS you choose to delete. If not installed then try to install it, some of these live disks allow it to happen and get programs not on them.
https://www.linuxbabe.com/command-line/how-to-use-linux-efibootmgr-examples


Where to change the vmware shared folder mount point?

A symlink has always the permissions rwxrwxrwx, it gets its effective permission when the link is followed. You can see the effective permission and the target of the link with ls -ldL <symlink>.

Example:

root # ln -s shareddir link_to_shareddir
root # exit
$ ls -ld *shareddir*
lrwxrwxrwx 1 root root    9 Feb 21 19:46 link_to_shareddir -> shareddir
drwxr-xr-x 2 jean jean 4096 Feb 21 19:45 shareddir
$ ls -ldL *shareddir*
drwxr-xr-x 2 jean jean 4096 Feb 21 19:45 link_to_shareddir
drwxr-xr-x 2 jean jean 4096 Feb 21 19:45 shareddir


Since elementary os luna stems from ubuntu 12.04 LTS it is two releases behind your xubuntu 13.10 and thus this is not likely to succeed:

you@eos:~# dpkg --get-selections > /some/share/selections.txt

you@xubuntu:~# cat /some/share/selections.txt | dpkg --set-selections

This will also pick packages that are only in Luna, so you must edit the selections.txt before applying it on xubuntu.

However, the two systems are similar enough to repair elementary as root from xubuntu:

root@xubuntu:~# mkdir -p /tmp/eos
root@xubuntu:~# mount -t auto /dev/disk/by-label/yourEosPartitionLabel /tmp/eos
root@xubuntu:~# mount --bind /dev /tmp/eos/dev
root@xubuntu:~# mount --bind /proc /tmp/eos/proc
root@xubuntu:~# chroot /tmp/eos
# now we are in a running eos with internet access from xubuntu
root@eos:~# apt-get install -f linux-image-generic
# plus other fixes you may try
root@eos:~# exit
root@xubuntu:~# umount /tmp/eos/dev
root@xubuntu:~# umount /tmp/eos/proc

This would install the old generic 12.04 kernel that is more likely to boot.


How to revert back to windows after getting "No Root File System Defined" while installing Ubuntu 12 using Wubi

If you have your Windows Installation media, I would suggest running startup repair off of that disc. That will overwrite your current bootloader with Windows' default which should allow you to boot Windows. Inside of Windows, Ubuntu should be listed as an installed program in Add/Remove Programs (which is what WUBI does). If you 'uninstall' Ubuntu, any changes made to your computer should be undone and you should be very close to where you started.


Did something just get broked with glibc/perl/irssi?

Turns out you can get this error if you have a syntax error in your ~/.irssi/config file.

I was missing  a " in front of one of my lines, and adding that back fixed everything. I wouldn't have noticed a thing, if a friend hadn't asked a question.


See this answer on how to create a custom command:

mkdir ~/bin
mv touchpadt.sh ~/bin
chmod +x ~/bin/touchpadt.sh

You should now be able to run 'touchpadt.sh' anywhere in the terminal. Test it and if it works you can enter it in the keyboard shortcut settings.


Unrecoverable error during WUBI installation

dont mont on damon tools on other programs for that, may result damaged system install.
download iso and download apprpried wubi.exe (if is iso 12.04 wubi.exe must be for 12.04).
put them in same folder and run the wubi.exe. he is do the rest of process i windows.

if this is complicated, you can download just wubi.exe and run it. he is download apprpriet iso image and install OS.

dont mont iso on any tool please...


Ubuntu installation freezes with ASUS (windows 10 dual boot)

Start Ubuntu into safe mode (Recovery Mode). Menu will appear with either ESC or TAB key.
Check for the message where it gets stuck and reply back.


It all depends on your definition of "easy":

is there a 1 second solution of pointing you to the right executable and presto, it's back?
Sorry, no
Can you download the ISO again onto your existing partition and boot from that?
Sorry, no
Can you:

Download the ISO again
Burn it to another USB
Boot that USB in "Try Ubuntu" mode to repartition your first USB to have enough space to contain the second USB
Boot the primary USB and dd the second USB onto the partition of your first USB
Add the second partition on your primary USB to the grub menu
Well, yes!

But then, you might as well stop at #3.2. and just use 2 USBs: one to install and one to use.

And that's the easiest solution!  ;-)


How to Create FreeBSD 10 bootable in Ubuntu 14.04.01?

I think we can use dd command to make the usb stick bootable. please try the command below.

#dd bs=4M if=freebsd.iso of=/dev/sdX && sync

where /dev/sdX is your usb drive device id.


How do I resolve webpage encoding issues when using a proxy?

The problem was that I had installed anon-proxy but not configured it. anon-proxy uses 127.0.0.1:4001. So either configure it or kill it.

How to configure anon-proxy.
To kill it use sudo su; netstat -tlp to find the process number of mix (it's called an anonymous mix for some reason) and then from su issue kill -9 to the process id number.
If killing doesn't work, then don't just sudo apt-get remove anon-proxy; also sudo apt-get purge anon-proxy; this will unset shell variables like $HTTP_PROXY and some files in /etc/ or /var/ that it may have changed.


Safe adding and removing cron jobs from shell script?

Instead of adding your lines to a crontab, you should just place a file inside /etc/cron.d/.
See https://help.ubuntu.com/community/CronHowto#Advanced_Crontab:

  The second type of crontab is to be found in /etc/cron.d. Within the directory are small named crontabs. The directory is often used by packages, and the small crontabs allows a user to be associated with the commands in them.


Since sshfs uses fuse, you need to use fusermount -u to unmount it:

fusermount -u /home/user/pi


How to remove configuration files of Virtual Box from Ubuntu 16.04

VirtualBox saves virtual machines in VirtualBox VMs directory inside your home directory. Check ~/VirtualBox VMs and /root/VirtualBox VMs to find virtual machine configuration file.


Error while trying to start Virtual Linux Machine on Virtual Box

The "VT-x" setting in Virtualbox is available under the System -> Processor tab rather than the System -> Acceleration tab.
You may also want to check in your BIOS if VT-xAMD-V support is available but just currently disabled.  Most modern computers/CPUs have this feature at this point.


How can I get 32-bit program to run on 64-bit Ubuntu?

This shouldnt require any extra steps. 32 bit programs should run by default in a 64 bit environment with no issue, Of course the opposite is not true. If a 32 bit program wont run in your 64 bit system, I suspect there is a different issue. Try starting the program in terminal & watch for any errors. (strating a program in terminal simply requires  opening a terminal, typing the program name, & hit enter). If any errors appear, paste them in your question & I will try to help.


Where do I place a logout script for LightDM?

At least since Ubuntu 12.04 there is now an option session-cleanup-script which can be added to the [SeatDefaults] section of /etc/lightdm/lightdm.conf. /usr/share/doc/lightdm/lightdm.conf.gz is the documentation:

# session-cleanup-script = Script to run when quitting a user session (runs as root)

Do not forget chmod +x yourscript to give your script executing permission.

After changing a value in lightdm.conf it takes only effect after lightdm is restarted. You can either reboot or login to a console (Ctrl+Alt+F1) and run sudo restart lightdm.

(Thanks to Krytarik who posted this answer in http://ubuntuforums.org/showthread.php?t=1918649)


Cannot upgrade to 17.04 - has gpg key changed?

Ok. So i solve this by going to "Software and Updates Center" and restoring the defaults for the trusted software key providers


The recommended way of doing this is by installing Kubuntu then installing Ubuntu Studio Installer to get the special "Ubuntu Studio" treatment for your system. We made it just for this purpose.


Why Does Software Updater Say No updates Available, but apt-get upgrade Shows updates available?

StableReleaseUpdates will no longer appear in update-manager at the same time for all machines. Instead a subset of machines will be selected at random to receive the update first. The update will only be made available to everyone if there are no serious regressions encountered by the first set of users. There is still a testing process completed by Ubuntu developers before any users receive the update.

Source: PhasedUpdates and Brian’s Blog.

If you update via the terminal, you bypass the phased update system and will get all updates as soon as they're released. Read the comments in Brian's Blog for how to opt out of phased updates if you wish.


how to set hostname via DHCP in Ubuntu 20.04 or 18.04?

Disable cloud-init service:
sudo touch /etc/cloud/cloud-init.disabled

Delete file /etc/hostname:
sudo rm /etc/hostname

Remove line with 127.0.1.1 in the file /etc/hosts
Reboot


What's wrong with my cron.hourly configuration?

The default crontab file from the cron package (3.0pl1-100ubuntu2.1 this is the latest version of ubuntu 8.04) looks like this:

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user  command
17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly
25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6    * * 7   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6    1 * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )

You should just be able to take this and paste it into the file, but you might also want to make sure that you have the latest version of the package. You can do this by doing:

apt-get update
apt-get install cron

Update:

There are two different types of crontab's one is the system's crontab that is located in /etc/crontab. This crontab has this fromat:

minute hour dayOfMonth month dayOfWeek userToRunAs restOfLineIsCommand

The other type is the users crontab's this can be modified by using the crontab. The actual configuration is located in /var/spool/cron/crontabs/USERNAME and is always executed as the user that owns it, and thous the format of that file is:

minute hour dayOfMonth month dayOfWeek restOfLineIsCommand


unable to mount samba share on boot (ubuntu 15.10)

The Ubuntu Wiki I have mentioned in question is bit outdated and does not works properly with systemd. systemd was first introduced in Ubuntu 15.04
The problem can be anything, by the time /etc/fstab is read the network would not be up OR by the time /etc/fstab is read samba services would not be ready OR it can be anything, I didn't read logs much.
But basically the method shown in wiki does not work.

After roaming on web, I finally found the solution and it is to add x-systemd.automount,x-systemd.device-timeout=3, before the rest of the options in fstab file

This:

//192.168.2.2/Seagates /home/edward/samba/raspberry cifs uid=1000,gid=1000,credentials=/home/edward/.smbcredentials,iocharset=utf8,sec=ntlm 0 0

will become

//192.168.2.2/Seagates /home/edward/samba/raspberry cifs x-systemd.automount,x-systemd.device-timeout=3,uid=1000,gid=1000,credentials=/home/edward/.smbcredentials,iocharset=utf8,sec=ntlm 0 0

What happens is if the drive is not mounted on first try, systemd will wait before it gives up trying to automount. This also does not affect/increase the boot time since systemd does not wait for this to complete and keeps loading rest of the system.


Some of my friends like SuperTuxKart:

  SuperTuxKart is a Free 3d kart racing game; we want to make the game fun more than we want to make it realistic. You can play with up to 4 friends on one PC, racing against each other or just try to beat the computer (a network multiplayer feature is under development).

I haven't played it myself, and my friends are twenty-year-olds. It should support multiple controllers (or at least with a workaround: http://ubuntuforums.org/showthread.php?t=1667997).


The instructions to run Wubi are here.

Specifically relating to your question:

You are attempting to install a 32bit version of ubuntu into your 64bit O/S.  If this was intentional then

  To modify arguments, right-click Wubi.exe and select "Create
  Shortcut". Then right-click the shortcut, select Properties, and
  modify the Target line, for example: "C:\Documents and
  Settings\\Desktop\wubi.exe" --32bit

Otherwise, download the 64bit ubuntu ISO and install via wubi by double clicking the exe.


The utility that you want to use is fdisk however you should use it with sudo in orded to have permission to do such administrative task. You can use sudo fdisk -l or even more specific sudo fdisk - l dev/sda to take a look on the current state of your hdd( size, partitions,free space,etc).

Now for creating a new parttion.Use sudo fdisk  dev/sda(assuming you only have one hdd) you will be prompted with a small menu (you can alway use m for help).What you want to do is to use the n option to create a new partition. Choose p for primary or simply press Enter(it's the default option).For the first sector you can leave it empty(it will be the default option). it is on the last sector where you really choose the partition size. +500M is what you want to tpye(In other cases it could be +10G, or +200M,...) press ENTER. Now you just created a partition and you are back to the fdisk main menu.Press w to "save changes".

The next utility you want to use is called mkfs more specific mkfs.ext4(there is also mkfs.btrfs or mkfs.ntfs , mkfs.fat you got it...) sudo mkfs.ext4 /dev/sdax(where x is the number of the new created partiton(the last one if you do a fdisk -l /dev/sda again)) this will add the ext4 fs. on top fo your partition. Done!


PCIe Network card not detected by Ubuntu

Another user had a similar issue here: Installing TP-Link TL-WDN4800 Adapter with Ath9k

The solution that worked for them was too do this (provided by pppetrov):

Since lspci sees your card the following should work.

1) Get the Atheros module

sudo apt-get install firmware-atheros

2) modprobe ath9k

sudo modprobe -r ath9k

sudo modprobe ath9k

Check your Network manager and it should be working, if it doesn't immediately appear after these steps, try a reboot to make sure everything gets updated and loaded correctly.


Does the Ubuntu kernel have EFI stub loader boot support?

12.10 and newer
All Ubuntu kernels built since kernel 3.3.0 have included the EFI stub loader feature in the kernel. That means all Ubuntu releases since 12.10.
Background
Kernel build configuration can be checked with command f.e.

zcat /proc/config.gz | grep EFI_STUB, or
for release 18.0 and later with cat /boot/config-$(uname -r) | grep EFI_STUB


Is there a way to bypass my ISP's port blocking? Port forwarding, Ubuntu

One way around this situation is to change the port that your server is on (somewhere in the server.properties), change it to something like 25566, or a port that isn't blocked.

Your friends will have to add the port to the end of it (like myserverdomain:25566), or you can make an alias (through a free service like noip) to use the port, so when you navigate to myaliasdomain, it will redirect you to myserverdomain:25566.

I've done this before, and it worked well, although the free alias options are limited to certain base domains, so you may need to pay money if you want something nice.

Note, ISP's don't usually block port 25565. Are you sure your router has been port-forwarded correctly?

EDIT: More Information:

The port is not locked to 25565, you can change it, and in this case, you'll have to. I can walk you through it if you need, we can chat about it, let me know.

The only places you have to change it is:

The server properties
The server machine firewall (if the server has a firewall)
The port forwarding
The clients

For the clients, you can either:

Tell them your new address (123.456.789.123:25566)
Create an alias to your external IP then tell your clients (mydomain.org:25566 where mydomain.org points to 123.456.789.123)
Make an alias that redirects including the port (mydomain.org where mydomain.org points to 123.456.789.123:25566)

Personally, I decided to combine both the 2nd and 3rd option for changing IP. I make one alias to my ip, and another that points to my previous alias but with the port attached to the end. So I did mydomain.org = 123.456.789.123, then myminecraftserver.org = mydomain.org:25566. This way, when my external IP changes, I can just change mydomain.org, as well as the possibility of a webserver, ssh server, or other services using mydomain.org.

The problem I alluded to before is, using a direct IP in your minecraft clients is very unreliable. Your ISP will change your external IP every so often, and once that happens, all your clients will no longer see your server as online. When using a dynamic domain name service, you can update your domain (mydomain.org) to your changed IP whenever it changes, and just give all your clients the domain. That way, they just use mydomain.org or mydomain.org:25566, which is easier to type and remember, and your clients will stay connected when your external IP changes.

If you're looking for a free dynamic hosting service to get your own personal "mydomain.org", I would suggest the "NoIP" company. Search them on Google. They are free to use as long as you verify your domain is still being used every 30 days.


According to the official Skype FAQ, Skype has these bandwidth requirements for different types of calls:

Call type           Minimum down/upload speed   Recommended down/upload speed
-----------------------------------------------------------------------------

Calling             30kbps / 30kbps             100kbps / 100kbps

Video calling /
Screen sharing      128kbps / 128kbps           300kbps / 300kbps

Video calling
(high-quality)      400kbps / 400kbps           500kbps / 500kbps

Video calling
(HD)                1.2Mbps / 1.2Mbps           1.5Mbps / 1.5Mbps

Group video
(3 people)          512kbps / 128kbps           2Mbps / 512kbps

Group video
(5 people)          2Mbps / 128kbps             4Mbps / 512kbps

Group video
(7+ people)         4Mbps / 128kbps             8Mbps / 512kbps

So if you have 512 kbps symmetric upstream and downstream, you should be able to perform audio calls as well as normal and high quality video calls without problems. Even group video chats up to 3 people should be at least possible.

You pretty surely won't be able to perform HD video calls or group chats with more than 3 people though.


The problem is, that only package cryptsetup-bin is installed by default on ubuntu 13.10 (and AFAIK on older versions). That means, that you can create and manipulate dm-crypt partitions, but you also need cryptsetup package, which contains startup scripts for mounting dm-crypt volumes at boot.

sudo apt-get install cryptsetup solved that problem.


How to import a directory tree into Darktable

In Darktable 1.1 when importing a folder, you can expand "import options" and check the "import directories recursively" option.


Cream is a tweaked version of VIM. Does Cream lack any of VIM's power?

Cream is just a collection of configurations & macros (or plugins or addins or scripts or whatever you want to call them) for vim.  If you have too much time you can make vim do the same by tweaking you own vim configuration files.

So if you run "cream", it actually just starts vim with a different default configuration:

$ cat `which cream`
#!/bin/sh
#
# This wrapper script is part of the "cream" Debian GNU/Linux package
# maintained by Christoph Haas <haas@debian.org>.

# Exit on error
set -e

CREAM=/usr/share/vim/cream/
export CREAM

# Due to limitations of text consoles/terminals cream can only run
# as a GUI variant.
if [ "$DISPLAY" = "" ] ; then
        echo "Sorry. 'cream' can only be run in an X environment."
        exit 10;
fi

# Run kvim or gvim - whichever is available.
if [ -x /usr/bin/gvim ] ; then
    exec /usr/bin/gvim --servername "CREAM" -U NONE -u "\$VIM/cream/creamrc" "$@"
else
        echo "You need 'gvim' installed to run 'cream'."
        exit 10;
fi


As suggested here, the manual says that all configuration are done graphically, thereafter it can't be changed unless by compiling from source.

If someone else need a larger buffer size, I suggest to use mplayer which has very good documentation.

To change the buffer of mplayer size just add

cache=8192
cache-min=4

to the file ~/.mplayer/config.

Which means that you will have a buffer of 8MB, and that playback begins when 4% of the 8MB (~330kB) are already buffered.

Reference: 1.


Ubuntu for Android is Ubuntu Desktop running on Android when you connect your phone to a dock. Ubuntu for phones also replaces Android.


MySQL 5.7 Ubuntu 18.04 LTS VM vBOX electricity/shutdown immediately problems

Run a check/repair on your data files
assuming that your MySQL runs MyISAM tables as the default setup
systemctl and myisamchk must be run as root

systemctl stop mysql
myisamchk /var/lib/*/*.MYI

Note: if you get error 140, its a bug. There is a workaround:

find /var/lib/*/*.MYI | sed -e 's/\(\.MYI\)*$//g' | xargs myisamchk

Then restart the service and try again

systemctl mysql
mysql -u root -p -h localhost


Error with 32-bit library installing Steam

Go to Ubuntu's website and go to alternative downloads
Find a download of the point release of 14.04.1
Reinstall ubuntu
Install steam, hey presto problem gone.

I'm no expert but it looks like they upgraded some packages for the 14.04.2 release that means steam can't find the dependencies to install correctly. If you need any expansion on these points let me know.


Ubuntu 12.04 freezes with Ivy Bridge Processor

I had the same problem with a Gigabyte GA-H77-D3h Motherboard and an i5-3570 CPU.
Freezing occurred on both, the 32-bit and 64-bit Versions of Ubuntu 12.04 LTS.
Updating the kernel to 3.4.0 fixed this issue for me. The system has run without any crashes for several days know.


How to share an Internet connection over Bluetooth from the Phone to the PC

It turned out that the connection sharing has to be enabled on the phone. I installed an app on the phone which shares the connection (for the N900, it is called bluetooth-dun) and on the new pairing, Ubuntu automatically offered to use the phone's Internet connection. I guess that I must have seen the option when pairing with somebody else's phone before.

Then it showed a wizard for the setup (choosing a provider and a plan) and after I filled it out, it worked. At least that's how it works on 11.04.


Opening port with IP tables and UFW doesn't appear to open port

To open port with iptables command is

sudo iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT

For UFW

sudo ufw allow 443

Experience has learn me that it not good to mix iptables and ufw. Use only one of them.


There is a bug on Lauchpad concerning this hardware.  If you add your contact details as well, it'll get higher priority because it will affect multiple users...


This problem was caused by some application from Ubuntu/Unity. In my inspection, it was appmenu-qt5 which was setting an environment variable QT_QPA_PLATFORMTHEME incorrectly, trying to unify look and feel in GTK and QT. To solve this, we have two options
Option 1: Remove package appmenu-qt5
Just remove the offending package appmenu-qt5
sudo apt remove appmenu-qt5

But, I don't recommend it, if important packages for Unity tries to go away with it. Though, In my case, no other packages was depending on it and simply went away.
Option 2: Unset the environment variable
You can also unset the environment variable QT_QPA_PLATFORMTHEME to solve this. I recommend this solution.
Put these lines at the end of your ~/.profile file.
## Fixing QT problems caused by `appmenu-qt5` in KDE environement
if [ "x$XDG_SESSION_DESKTOP" == "xplasma" ] || [ "x$XDG_SESSION_DESKTOP" == "xKDE" ]; then
    unset QT_STYLE_OVERRIDE
    unset QT_QPA_PLATFORMTHEME
fi


It seems like partitions were not created properly during the installation. If you can use the installation medium to run a live system, then boot into live system and run the following commands to provide us with a bit more information.
sudo blkid
lsblk
sudo fdisk


Ubuntu 18.04 network icon disappeared and no internet access in VMware

I solved the problem by command nmcli network on. Thanks!


Make sure that both you and the other person logs into the same VPN.  You give them your VPN IP address and they give you theirs.

If you have VPN setup as a server, then you would have to log into your VPN Server as a client.  The other person would do the same.

You can log into your VPN network a number of ways.  The GUI way is with NetworkManager.

First install or ensure openvpn support is provided for NetworkManager.  You can do this by installing the network-type support.

$ sudo apt-get install network-manager-openvpn network-manager-openvpn-gnome

Now click the Network ICON in the Status bar; point to VPN, then click Configure VPN.

From this GUI Click Add and choose the OpenVPN type.  Fill out the credentials from your VPN server, then connect to it the same way you connect to a wireless connection.

Have your friend to the same thing.

You can check the VPN IP address with this cli:

$ hostname -I

OpenVPN's default port is UDP port 1194.  You would have to configure your router to forward port to your computer's IP address.  You can get the IP address via the hostname -I command and.


This will install PHP 7.2 as a service.

sudo apt update && sudo apt install php-fpm

This tells the PHP to start as a service, listen to localhost at port: 9000.

All you now need is to tell Apache to use this service instead of trying to load PHP as a library, old style.

Make sure Apache is not trying that load PHP as a library. Look inside your main apache config - httpd.conf and search for something starting with LoadModule php. If it is there, put it within a comment tag, save and reload your apache.

Now tell Apache to use PHP you have running on port 9000. I normally do it in my vhost config. Something like this:

<VirtualHost *:80>
    DocumentRoot "/somewhere/on/you/filesystem"
    ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000//somewhere/on/you/filesystem/$1
    ServerName example.com
</VirtualHost>

You also need to make sure these Apache modules runs. On my system I was req. to enable these:

LoadModule rewrite_module libexec/apache2/mod_rewrite.so
LoadModule proxy_module libexec/apache2/mod_proxy.so
LoadModule proxy_fcgi_module libexec/apache2/mod_proxy_fcgi.so


Another way to customize the hotkeys is to install CompizConfig Settings Manager through the Ubuntu Software Center

Upon launching the CompizConfig Settings Manager you might go through each plugin and check its hotkey configurations, but there is a Ubuntu Unity Plugin in Desktop section.

It is worth noting that certain hotkeys may be taken not by Ubuntu Unity Plugin, but by other plugins, so you might have look into other plugins' configuration as well.


Cannot change screen brightness on Ubuntu 14.04 on Lenovo G580

Try changing it to

GRUB_CMDLINE_LINUX="quiet splash acpi_osi="

Nothing after osi=" it works for me.


It's almost always best to install from the cd, just as it is less of a "port" or the installer. You need to create a username and password to install, those are your login credentials.


See How do I enable the "Other" user for login with Active Directory?. It doesn't answer 2 and 3 (not entirely), but I guess 2 might be related to the fact winbind has some startup time (try doing wbinfo -u after SSH to the box) and 3 is probably just that it lists all known users that logged in at some point.


Ubuntu 12.04 LAN settings after changing ISP and modem : The Network Path was not found !

Something like that was with me some monts ago !
Try that:

    sudo nano /etc/network/interfaces

And you shold find something like:

    iface eth0 inet static
    address 192.168.0.1
    netmask 255.255.255.0
    gateway 192.168.0.254
    auto eth0

Copy all and save somwhere, after that, delete all from interface, save and restart
If something wrong, change back your interface !


13.10 cannot login to Ubuntu default desktop environment - must use GNOME Flashback or Cinnamon

Solution :  do NOT install Cinnamon 2 if you are using Unity - good news : all is well after purging everything mentioning cinnamon


/dev/mapper/ubuntu--vg-swap_1 is not ready or not present

I don't know. I made a new one:

Boot into recovery mode
Select Drop to root shell prompt
mount drive in read-write mode: mount -o remount, rw /

Make a swap file:

fallocate -l 512m /swapfile1.swp

Format the new swapfile

$ mkswap /swapfile1.swp

Change the permissions:

$ chown root:root /swapfile1.swp

$ chmod 0600 /swapfile1swp

Edit /etc/fstab and Comment out the mapper:

#/dev/mapper/ubuntu--vg-swap_1 none swap sw 0 0
#/dev/mapper/cryptswap1 none swap sw 0 0
/swapfile1 swap swap defaults 0 0

Reboot.

Press CTRL-ALT-T

Was the swap file allocated to swap by fstab? We should have 512MB:

$ free
Swap:       524280      17148     507132


First I uninstalled from the control panel. It still would not go away even though it did not show up in the program list.

Next I opened Task Manager and closed BManager in the task manager, then rebooted computer. It no longer opened at start up. Don't know if it is totally gone but it is no longer bothering me.


I am very dizzy! Somebody help me with my Ubuntu

Friends,

Fixed the issue.

1 - Did a clean re-install of ubuntu 12.10

Started with the login screen problem first, but now i am not an amateur anymore so handled it with nomodeset.

2 - Unity was really slow. Yeah I know this so installed Gnome.

3 - Installed the NVIDIA*.173.14.36.run downloaded from Nvidia drivers website.

Lost the login screen again. But still with my windows laptop lying nearby found out the solution that I have add the following

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

The above line was taken from the article here

After adding it to the repository

sudo apt-get update

The above fixed the problems

Now I am able to see and configure both monitors in the nvidia settings panel.

Also with a minor tweak with firefox using about:config in the address bar of firefox and changed two settings after which the webgl started working like charm(but a bit slow, which I am least bothered about)

webgl.force_enabled = true
webgl.min_capability_mode = true

(even if the above settings do not exist in your machine then add it yourself)

Installed blender works without any problems. Now I have left to do is install my robotic software from scratch again :-)


Where does ntpdate get its settings from and what is the "no servers can be used" error about?

After mucking around for most of the day, I have come to the following conclusion:

ntpdate-debian is the version to use if you want to use a config script, and in that case, you would edit the /etc/default/ntpdate file.

ntpdate cannot be used without arguments nor does it have a config file. If you want to use this to update, you have to state the ntp server in an argument, such as ntpdate ntp.ubuntu.com.


How to compile a C code in one directory in another directory using GCC?

Try this for compiling.

gcc file.c -o directory/myOutput

and run it.

./directory/myOutput

if this doesn't work try this for compile and move the output file to a directory.

gcc file.c -o [compiled ouput file] & mv [compiled ouput file] [your directory]


Restart instead of shutdown after suspend

You can try this instead it near common to all Linux

    sudo init 1 (restart)

    sudo init 0 (shutdown)


You could try to run

sudo apt-get clean

It will clear out all the cached files that have been downloaded in the past. It should save you some disk space.

Thanks
Chris


Make Thunderbird to check for mails when it is closed

There is an extension you can use " MinimizeToTray revived 1.1.2", it is popular and highly praised, it should fit your needs

https://addons.mozilla.org/en-us/thunderbird/addon/minimizetotray-revived/


options and setup before create a local repository

Ok let's go.

First of all to download the packages you need to make a local repo you have to use apt-mirror.

Here is a good start tutorial how to use apt-mirror.

Sure virtualbox package is not found in the main repo so in order to make it in your local repo just add the virtualbox repository to the mirror configuration files in the tutorial above...

This link may help you

Or easily you can just download the .deb file from here and add it to your local repo

Now for your internet connection there i am sorry to say that there is no solution for that, but you can do something to reduce the number of packages. you can reduce the number of the repos in the apt-mirror configuration file.


Forgot to install login screen after removing unity and installing kubuntu-desktop

Boot to recovery mode, drop to a root shell, and run:

mount -o remount,rw /
apt-get update
apt-get install -f
apt-get install kdm

That should install and configure KDM. Reboot and post back if you have problems.

The only other potential problem you might have would be if you need propriety drivers , what graphics card do you have ?


Create read only user and grant SSH access

By default, users can only write into their home directory (which they own), any location that has 777 access (/run/shm, /tmp, and a few other places), and any other location that they have user ownership. As long as the user is not in the sudo group, the user cannot modify system directories (they can access system directories and files where the o octet has the r permission).

I recommend that instead of creating a separate group, that you just create the user and place them into the users group (which I believe is by default).

Also, the reason you can log into their accounts is because you have sudo access.


How to install Ubuntu server 19.10 on orange pi 3?

Did you use the images as supplied by orange pi or did you take the images from the main website and just chose the arm image?
http://www.orangepi.org/downloadresources/OrangePi3/2019-01-23/orangepi3_b0c3dac8d3483dab6eb392b0a9.html
This is the image you should be using.
Mind you. Orange pi offers very limited support so if you are up for it it might be better to customise something from scratch.


network:
  version: 2
  renderer: networkd
  ethernets:
    ens5:
      match:
        macaddress: 0a:60:82:f8:c1:1c
      set-name: ens5
  bridges:
    br0:
      dhcp4: true
      macaddress: 0a:60:82:f8:c1:1c
      interfaces:
        - ens5

sudo netplan --debug generate

sudo netplan apply

reboot


restore files from Ubuntu one impossible

If you encrypted your individual files before they were uploaded to Ubuntu One, and are thus stored encrypted on the server, then Ubuntu One only knows about the encrypted data you uploaded. It will only download these files as they exist on the server. You will need the private key you used for encrypting them, in order to decrypt them. If that was on your stolen laptop, and you don't have a copy or back-up of that private key to use, you will be unable to decrypt the files. That has nothing to do with Ubuntu One.

If you have files visible on https://one.ubuntu.com/files/ which are not being downloaded to your machine, and you have subscribed to the folders those files exist in, on your machine, then you should contact Ubuntu One support at https://one.ubuntu.com/help/contact/ for further assistance.


Boot time is more than one minute with ext3 FS recovery everytime

That's not normal for Wubi. Mine takes about 4 seconds to load where yours is taking 20.

The key is that your filesystem is marked as corrupted. And if it's doing that every time then whatever fsck is doing is not fixing the problem. So you could fsck it from a live CD and see if it provides any decent output. Or try running chkdsk /f from Windows - as there could be some NTFS corruption as well. Or try reinstalling.

Here's my output for the equivalent operations - and ignore the swap as it uses a partition (also my root.disk is ext4 as it was installed via the ISO but that shouldn't make any difference to the time required to mount it):

[    2.113178] usb 1-1.5: USB disconnect, device number 5
[    4.450760] EXT4-fs (loop0): mounted filesystem with ordered data mode. Opts: (null)
[    7.650487] Adding 4300796k swap on /dev/sda7.  Priority:-1 extents:1 across:4300796k
[    8.583207] EXT4-fs (loop0): re-mounted. Opts: errors=remount-ro
[    9.025386] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready


Is there a way to switch to the old netbook interface?

Old netbook launcher is at the moment available only for Natty.
Unfortunately I don't know nothing about the version for Precise.
I also like this launcher.

https://launchpad.net/~doctormo/+archive/netbook-launcher

https://launchpad.net/~doctormo/+archive/netbook-launcher/+packages


Gedit is available by default in Applications > Accessories > Text Editor However, in the future to install software on Ubuntu you won't need to compile from source as ost of the software you'll come across is available in the software center.

To do so launch the Software Center from the top Applications Menu, search for the software via the search box then select install.

apt-get is, for all intents and purposes, the command line version of the Software Center. So apt-get install gedit would be the equivalent of installing GEdit from the Software Center interface.


No sound from Chrome, sound works fine in Firefox etc (13.10)

I had the same problem.  It ended up being that my system was trying to put Chrome's sound through the HDMI even though the HDMI chord was not plugged in at the time.  Presumably, this could happen with any audio output device.  The sound settings Ubuntu offers didn't show this nor let me change it for the individual application, but pavucontrol did.

To install pavucontrol from the Terminal:

sudo apt-get install pavucontrol

To open pavucontrol from the Terminal:

pavucontrol

Select the "Playback" menu and make sure that you have it set to Show Applications.  Now, start playing something from Google Chrome.  It will show up there, and it will show what output device is being used for Google Chrome.  Make sure it is set to the output device you are trying to use.


Is it possible to automatically change the language back after one letter?

Changing a full keyboard layout for just a single character is not implemented: you must change (you can use a hotkey for this) and then change back (again, that could be done with a hotkey. In Ubuntu, Super+Space is configured to switch to the next keyboard layout, Shift+Super+Space to the previous.
So far about your Y problem. Now let's handle the X problem.
For typing single characters, there are other and better options.
Option 1: you can switch to a keyboard variant that supports entering international characters.

The English (US, intl., with dead keys) keyboard layout turns some keys into dead keys. For example, hitting " alone will show nothing. A subsequent character, e.g. u will input a character with umlaut, "ü". (Slight) drawback here is that you need two key presses also to enter the character of the dead key, e.g. "" or "Space to enter ". For programmers, that may be more than a slight drawback.
The English (intl., with AltGr dead keys) (thanks to KGIII to point this out) overcomes this drawback, but requires holding AltGr to activate the dead keys. AltGr is usually the right Alt key. Thus, umlaut is entered by holding AltGr, and then hitting Shift and ". Hitting U then enters the ü.

These two keyboard layouts in addition make many characters directly available as combinations with AltGr. ü is directly available as AltGr+u, Í is obtained from Shift+AltGr+I, and so forth.
Option 2: you could use the Linux "Compose" key feature. With that system, you define one key, for example the left Alt key, to be the compose key. Pressing that key signals that following keyboard strokes should be interpreted to mean a character. Thus, hitting Composeu" or Compose"u would yield "ü". You can set a compose key using Gnome Tweaks, on the "Keyboard" tab.
(Option 3: Only relevant if you need to do this sporadically), load the tool "Characters" and copy the character from the tool to your clipboard. Characters you use frequently appear on the "Recently used" tab. So later on, you will quickly retrieve a character you use now and then.


To hide the output of any command usually the stdout and stderr are redirected to /dev/null.

command > /dev/null 2>&1

Explanation:

1.command > /dev/null: redirects the output of command(stdout) to /dev/null
2.2>&1: redirects stderr to stdout, so errors (if any) also goes to /dev/null

Note

&>/dev/null: redirects both stdout and stderr to /dev/null. one can use it as an alternate of /dev/null 2>&1

Silent grep: grep -q "string" match the string silently or quietly without anything to standard output. It also can be used to hide the output.

In your case, you can use it like,

if dpkg -s net-tools > /dev/null 2>&1; then
    if  netstat -tlpn | grep 8080 | grep java > /dev/null 2>&1; then
    #rest thing
else
    echo "your message"
fi

Here the if conditions will be checked as it was before but there will not be any output.

Reply to the comment:

netstat -tlpn | grep 8080 | grep java > /dev/null 2>&1: It is redirecting the output raised from grep java after the second pipe. But the message you are getting from netstat -tlpn. The solution is use second if as,

if  [[ `netstat -tlpn | grep 8080 | grep java` ]] &>/dev/null; then


Ubuntu 18.04 installed on flash drive only boots on the computer it was made on

It looks like you didn't change the grub installation location when you created the USB flash drive. This means that grub was installed on the /dev/sda drive and that's why you see that option on the boot menu.

If you want a standalone USB flash drive installation, you need to tell the installer to install grub on the USB flash drive too. You can do this by selecting /dev/sdX as grub installation location in the Something else partitioning option.

In the Something else option, you can see the Device for boot loader installation. That's where you have to select the USB flash drive as the target device.

X should be the letter that corresponds to the USB flash drive.


Cannot execute binary file, install driver, wlan, ath10k, firmware

Thank you for the quick response.

I copy´d  and renamed the firmware-6.bin_WLAN.TF.2.1-00021-QCARMSWP-1 containing in the uncompressed ath10k-firmware-master file to:

cp /home/USER/Downloads/ath10k-firmware-master/QCA9377/hw1.0/WLAN.TF.2.1/firmware-6.bin_WLAN.TF.2.1-00021-QCARMSWP-1 /lib/firmware/ath10k/QCA9377/hw1.0/firmware-6.bin

and dealtet the old firmware-5.bin

rm firmware-5.bin

Then i restarted the computer and executed in the command-line: ethtool -i wlp2s0

driver: ath10k_pci
firmware-version: WLAN.TF.2.1-00021-QCARMSWP-1

The new Firmware is loaded and working fine (no ERROR anymore in journalctl).

The issue i had: My internet was slowing down after a few minutes. Now everything is OK, no more slowing down.

Thank you very much!

I have one more question.

There are three different Firmware versions (14, 16, and 21).

How can i switch between Firmware versions to test what works best for me?

firmware-6.bin_WLAN.TF.2.1-00014-QCARMSWP-1
firmware-6.bin_WLAN.TF.2.1-00016-QCARMSWP-1
firmware-6.bin_WLAN.TF.2.1-00021-QCARMSWP-1


Probably you want non-linux virtual machines on top of OpenStack.

Remember MAAS handles the hardware and is a Ubuntu solution. Once you have MAAS you install JUJU  for orchestration and building of OpenStack. OpenStack + the hypervisor of your choice (KVM i.e.) make it feasible to install VMs similar to VMware. Of course you could use SaaS (Service as a Service) instead of VMs.


How to compile a Unity scope? (Or: how to use libraries in Vala?)

Doing

 dpkg -L libunity-dev

shows that the vapi file is actually called unity.vapi. Have you tried

valac --pkg unity ./unity-scope-mpd.vala

?

In general, the package name should be equal to the pkg-config name. You can do a ls /usr/lib/pkgconfig to see that there's a unity.pc.


You wrote that you're using hsftpd, but I assume that there was a typo and it is vsftpd instead, as I can't find any software by the name hsftpd.

There are numerous guides on the internet for configuring vsftpd like you want, here are a few:

https://websiteforstudents.com/install-vsftpd-ssltls-ubuntu-17-04-17-10/
http://www.instructables.com/id/VSFTPD-Installation-Setup-on-Ubuntu/
https://www.digitalocean.com/community/tutorials/how-to-set-up-vsftpd-for-a-user-s-directory-on-ubuntu-16-04 (you can skip step 2, most likely)
https://www.howtoforge.com/tutorial/how-to-install-and-configure-vsftpd/


If You mean 'DOTA 2', then best option is wait few weeks - Valve have linux native in Dev Testing.

Otherwise install 'Play on Linux' from 'Software Center'. This usefull app have many ready configs for Windows applications, which are very usefull for everyone. It will work only if You have game files, installer etc.


Installing Java 7 Update 25 on 12.04 LTS?

To install the latest version of Oracle Java (the latest posted in the Oracle webpage), the easiest way is to use the Java Installer (as flashplugin-installer does) as here is explained: http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html

  Oracle JDK7 itself is not hosted in the PPA because that's not allowed
  by the new Java license (which is also the reason why it has been
  removed from the official Ubuntu repositories); the package in the PPA
  automatically downloads (and installs) Oracle Java JDK 7 from its
  official website and installs it on your computer, just like the
  flashplugin-installer package does.

Then, you have to do only this:

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

And type this to check the version:

java -version


How to run correctly bash script from another script?

cd /opt/sqldeveloper/sqldeveloper/bin
    unset GNOME_DESKTOP_SESSION_FALLBACK
    ./sqldeveloper "$@"

This will fix your problem


If you have downloaded upgrades when you are installing ubuntu 12.04 it happens. Do not download upgrades when installing it. After install you can freely download upgrades and restricted extras.


Error is running windows 10 over the virtual box

I solved the same problem, I'll try to explain below what I did.

First use

$ sudo apt-get remove virtualbox
$ sudo apt-get remove virtualbox-dkms

Next step: open bios setup, and security boot should be disabled.
Then install VirtualBox again via the terminal.


What version of Compiz will be installed in 10.10?

It is the old 0.8 series. At the moment it is 0.8.6 as pointed out by Takkat.


There is a topic on how to run PulseView without root privileges in the web manual: https://sigrok.org/doc/pulseview/0.4.1/manual.html

If you don’t install the PulseView distro packages (as is the case when using the AppImage or building from source), PulseView will not be able to access USB and serial port devices unless it’s run as root. Since programs shouldn’t be run as root unless absolutely necessary, we provide udev configuration files that allows PulseView access to those devices without being root. Here’s how you install them:

sudo bash
cd /etc/udev/rules.d/
wget https://sigrok.org/gitweb/?p=libsigrok.git;a=blob_plain;f=contrib/60-libsigrok.rules -O 60-libsigrok.rules
wget https://sigrok.org/gitweb/?p=libsigrok.git;a=blob_plain;f=contrib/61-libsigrok-plugdev.rules -O 61-libsigrok-plugdev.rules
wget https://sigrok.org/gitweb/?p=libsigrok.git;a=blob_plain;f=contrib/61-libsigrok-uaccess.rules -O 61-libsigrok-uaccess.rules
sudo udevadm control --reload-rules


Probably this:

You import the QuicksitesDialog first:

from brandsonicweb.QuicksitesDialog import QuicksitesDialog

And then you try to call it again:

dialog = QuicksitesDialog.QuicksitesDialog()

Without looking at your code, this can be fixed in 2 ways:

from brandsonicweb.QuicksitesDialog import QuicksitesDialog
dialog = QuicksitesDialog()

Or:

from brandsonicweb import QuicksitesDialog
dialog = QuicksitesDialog.QuicksitesDialog()

It can be a bit confusing because apparently Quickly gives the module and class both the same name.

Also notice the excellent Python error which gives you a nice indication.


Move entire OS from NTFS drive to bigger ext4 drive

I have no experience with Wubi; anyway, googling a bit:

Wubi creates a virtual file-system in a single file (you should find it in C:\wubi\disks\root.disk). You should check booting your Ubuntu if it is an ext2, ext3 or ext4 fylesystem.
Now:

you should start Ubuntu in live mode (using your Ubuntu CD or creating a boot USB);
Mount or access the partition where Ubuntu is installed in;
Once there, you can clone your file-system (if it is ext4 as you desire) with dd (see examples here http://en.wikipedia.org/wiki/Dd_%28Unix%29);
Unmount the partition where the original Ubuntu is installed;
Install grub in the new disk (try typing in a terminal sudo update-grub);

I hope this helps.


Where do I get source code for the Java APIs?

To get the source code, run (as a regular user, not root)

apt-get source openjdk-7-jre

It will download the source tree used to generate all the openjdk-7 packages. It downloads it to your current directory, so you may want to run something like mkdir -p ~/src && cd ~/src first.

The compressed archive jdk-dfsg.tar.gz at the root of the source tree appears to contain all the standard classes.

You might need to enable source code repositories:

How do I enable the source code repositories?


Virtual Machine Windows 7 USB webcam connection lost when switching back to Ubuntu

We can not help you on issues from your Windows software, and how this software may deactivate your webcam when it thinks you are away from keyboard.

It may however be worth to install the Guest Additions to allow a much better desktop integration of the guest Windows with the host Ubuntu. Also read this question and answers here on USB integration with Virtual Box. You may want to try out if a USB filter gives you a better result, but I doubt it will change much.

USB devices routed to the guest OS will be deactivated from host access. However as soon as you terminate your virtual machine any USB device routed to the VM will be released again.


Why is my disc always blank after a reportedly successful burn?

I had once that problem:
- disc ain't closing properly
- disc is low quality
- lens from burner is worn out

If the disk is really burning (you can see the tracks) check other it with different driver.


How to install pantheon-greeter in 13.04 Raring?

It's sad but I'll answer it myself ...

The packages in the other question was incomplete hence it's crashing. I had to add 2 additional packages - elementary-icon-theme and notify-osd-icons-elementary. Refered to this BUG REPORT. notify-osd-icons-elementary wasnt actually part of the bug report but itwas recommended by apt-get so I included it.

So the more complete instruction would be

sudo add-apt-repository ppa:elementary-os/daily && sudo apt-get update && sudo apt-get install pantheon-greeter elementary-theme fonts-open-sans fonts-raleway elementary-icon-theme notify-osd-icons-elementary


How would one know a charms dependencies?

What you're talking about is called the "dependency resolver" in package managers.

juju doesn't have one of these right now. But the idea is that it would work like apt, if you did a juju deploy wordpress it would know that you needed mysql or another database and give you some recommendations.

This is actually more complicated than it seems, which is why we don't have it. In terms of deployment let's say you are deploying mediawiki and you have 3 mysql services already  deployed, do we prompt you for a new one or do we just let you decide if you want to deploy a new one or explicitly specify which one you want to use? And that's just a 1-to-1 service relationship, when you have more levels to the stack each level complicates what you'd think you'd want to recommend. (This is why it's not in juju, we need to carefully think about how this would work before building assumptions into the tool).

However there are 2 ways we're working on this to make it better:

Charms should have a README file that explains how to use them. So a charm could say in it's deployment directions "I need mysql", but not all charms have them, including what other services are required. This is something we hope to improve by 12.04.
We're working on the Charm browser to make it more obvious what a charm requires right on the charm's web page.

Here is the bug report for the spec for the feature:

https://bugs.launchpad.net/juju/+bug/732194
How do I subscribe to a bug?


Installing LAMP - PHP not connecting with MySQL - Why?

ok after I installed MyPHPAdmin it is working suddendly the PHP file, and i get back all the time: Connected successfully

So I appreciate you time and your ideas!


Yes, it is possible. See this Video  and follow the xda-developers thread linked there. In development.


ASUS N580VD-DM129T with several problems on Ubuntu Gnome 16.04

I haven't found a single fix for all the problems. But here's a list of the individual solutions:

Selection of filenames has bad contrast

Couldn't solve this one in Ubuntu 16.04, but it is solved in Ubuntu 18.04

Hibernate and sleep options missing

Actually, if you press Alt, the shutdown button  turns into a sleep button

Configuration options of touchpad missing and Tap function in touchpad not working

Solution for both here: https://askubuntu.com/a/778766/315699

Weak wifi signal

I didn't find a solution for this. And it is not solved nor in Ubuntu 17.10, nor in Ubuntu 18.04.
Check these links for more information
https://appuals.com/increase-signal-strength-weak-wifi-signal-linux/

or

https://wiki.archlinux.org/index.php/Wireless_network_configuration#iwlwifi

or this question I made:
How to make Intel wi-fi signal stronger in Ubuntu Gnome 16.04?

Missing "new file" option in the floating menu when pressing right mouse button inside a folder

Solution described here: "Create new document" - right-click option missing in Ubuntu GNOME

After some time turned on, the system starts to become slow.

Only normalizes when I restart gnome shell by pressing Alt+F2, typing r, then pressing ENTER. I haven't found anything better than this.

Battery icon never shows as 100%, although being charged

Check here: http://ubuntuhandbook.org/index.php/2017/10/show-battery-percentage-ubuntu-17-10/

Takes more time to boot and to shutdown than Windows 10, which is the inverse of what used to be in my old notebook.

This is actually because Windows 10 has a new functionality called fast startup that maintains part of the system information stored for faster startup, which is somewhat similar to a hibernation. If this functionality is disabled, then the boot times are similar.

BONUS

Notification for caps lock key

sudo add-apt-repository ppa:tsbarnes/indicator-keylock
sudo apt-get update
sudo apt-get install indicator-keylock


unable to print or scan on Ubuntu 20.04 Brother DCP-195C and Canon LBP6020

Had maybe same problem with official drivers.
My DCP195C says waiting for Tasklist, but did no print.
Just deinstalled the printers in the printer menu.
Activities -> Printer-Options -> Extended Options
They were created by the drivers on the official brother website.
I installed cups with sudo, but it seems to be installed already. I plug in my printer and choose to install it over usb-port. Now it printed the testpage correctly.
Scanning not tested, maybe try by xsane.


How to run a Python program on Ubuntu server?

There are several different versions of python:

$ ls /usr/bin/python*
/usr/bin/python  /usr/bin/python2  /usr/bin/python2.7  /usr/bin/python3  /usr/bin/python3.5  /usr/bin/python3.5m  /usr/bin/python3m  /usr/bin/pythontex  /usr/bin/pythontex3

Pick the one you want, I'll use /usr/bin/python for the example. Make the 1st line of your script be:

#!/usr/bin/python


Installing Ubuntu 14.04--Grub Rescue Error after failing to turn off secure boot

So I just now was able to successfully make my laptop a dual boot.

The way I got rid of the grub rescue prompt was actually by changing my boot mode from Legacy Mode to UEFI. I did this by booting into the bios menu when I turned on my computer by pressing f2 (for me). I then scrolled over to Boot and switched this under the Boot Mode option.

This got rid of the grub rescue screen upon powering up my machine. When I turned it on, it took me straight into Windows with no option to choose Ubuntu. My next step was to disable secure boot (see http://technet.microsoft.com/en-us/library/dn481258.aspx for more info on this).

NOTE: the disable secure boot option does not appear until after you switch to UEFI. I was now able to turn Secure Boot Off. The way to do this was also on the BIOS menu. I simply scrolled left to the Security tab (NOTICE: you should see an option for Secure Boot on the Bottom. You need not disable this, since my next instruction will disable it). I scrolled all the way down to Reset to Setup Mode and pressed enter. This Clears PK, disables Secure Boot (see for yourself on that screen) and enters Setup Mode. On a side note: I tried simply disabling Secure boot many times, saving it each time but this did not change anything when I restarted my computer (still booted to Windows automatically).

After this, when I rebooted I had the option to choose Ubuntu or Windows (since Ubuntu was already installed).

I did this on a Lenovo P400. My understanding is that this whole UEFI thing is unique to new operating systems, including but not limited to Windows (8 and 8.1)


Three infected files in wine-staging. How I should proceed?

Do you want an advice? Do not trust Linux antivirus software. Besides not being strictly needed, they usually detect (and may even remove) some important files as if they were malware. That's it. If you downloaded wine through the official repositories or directly from the Wine website, you don't need to worry. And those files are a DOS/Windows executable and two shared libraries, they won't affect your system. Do not remove /opt, it's a system directory and you may lose your programs.


Run python script when a file has been added to a folder?

Considering a unique folder where you add files often.

Build a script (Python and Bash are good options) that loops for folder size every 'n' seconds (or minutes, how often do you add files?).
Whenever a new file is created, the size will change and the script should trigger a function that search the last file added and get necessary file info and launches your Python script.

You could easily integrate the above descriptions to your existing Python script.

If you have several folders, you could make it recursive.

Let me know if you can't realize how to do it and I will help you.

Good luck!


Eye strain on Kubuntu but not on windows

Any OS,you should work longtime you get eyestrain.

try the iris, it reduce the direct bluelight.
just take a break.


How to transfer files between Ubuntu and Windows?

Share Folders in Ubuntu 11.10

Objectives: Share a folder in Ubuntu and access it from Windows

To get started,  right-click on the folder you wish to share and select ‘Sharing Options’

When prompted to install Samba services, do it.

After installing Samba services, click ‘Restart session’

Then click ‘Create Share’ to complete the process.

  Open Terminal Replace USERNAME with your account name.

sudo smbpasswd -a USERNAME

sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.old
sudo nano /etc/samba/smb.conf

scroll to the global section, and add the lines

encrypt passwords = true
wins support = yes

press ctrl+o and ctrl+x to save, and exit nano

sudo service smbd restart

On the Windows machine, go to Start –> All Programs –> Accessories –> run and type the command:

\\computer_name\share_name

computer name can be ip address of ubuntu machine , to check ip of ubuntu machine , go to ubuntu machine & open terminal & type ifconfig

Type the Ubuntu computer name and the share name of the resource.

You will get a prompted to enter your credentials.  Type your Ubuntu username and password and click ‘OK’

Now try again to access the shares from your Windows machine

Transfer files From Ubuntu To Windows

On Ubuntu Machine install openssh-server

sudo apt-get install openssh-server

after installing go to windows machine & download / install FileZilla  & open it

Host = Ubuntu Machine Ip address
Username = Your Ubuntu Machine Username
Password = You Username Password
Port = 22

Done Now you can easily transfer files from Windows to Ubuntu OR Ubuntu to windows