Needed to connect to another ubuntu linux machine on a local network.
On the remote machine, from the home screen, search for and open Desktop Sharing and you’ll see the screen below. Select the Options listed:
Remote Desktop Sharing Preferences
On the machine from which you want to connect, install a Remote Desktop Client search as remmina:
whiscardz@whiscardz ~ $ sudo apt-get install remmina remmina-plugin-*
[sudo] password for projets:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'remmina-plugin-telepathy' for regex 'remmina-plugin-*'
Note, selecting 'remmina-plugin-gnome' for regex 'remmina-plugin-*'
Note, selecting 'remmina-plugin-rdp' for regex 'remmina-plugin-*'
Note, selecting 'remmina-plugin-xdmcp' for regex 'remmina-plugin-*'
Note, selecting 'remmina-plugin-nx' for regex 'remmina-plugin-*'
Note, selecting 'remmina-plugin-vnc' for regex 'remmina-plugin-*'
Note, selecting 'remmina-plugin-data' for regex 'remmina-plugin-*'
Once it’s installed, then open remmina and add ip and username of the remote machine:
Remmina Remote Desktop Client
Enter Name, Protocol, IP, Username, Color Depth and Quality
Then Click on Connect and your’ll be promoted for the password you entered in the Desktop Sharing Preferences of the remote machine:
Connect to the remote machine
Enter desktop sharing password
Remote Desktop connection successful
How To Enable Desktop Sharing In Ubuntu and Linux Mint
Enabling SSH and Remote Desktop Access
How to connect from a Linux machine to an Ubuntu machine on internal network only?
I noticed that my machine would take abit of time to boot. On bootup I pressed ESC to see what was happening, and noticed one of my partitions would take a couple of seconds to be scanned and would then throw a Connection Refused message.
I initially thought that my hard disk what dying but turns out there was a non existent volume in my /etc/fstab file that was trying to be loaded.
When I checked the systemd-journal logs, I saw the error below:
disk device has failed
When I searced, I got
a clue from this post that this was due to a mis-configured /etc/fstab.
The above swap volume with the UUID starting with “5f1d11af” was trying to be mounted but it doesn’t exist.
The pointer shows the incorrect volume
Confirm the correct existing volumes, using blkid:
check correct volumes
Open the /etc/fstab file and comment out this volume (the one on the last line) as shown:
Comment out the wrong volume in /etc/fstab
After commenting the above, then restart your machine.
dev-disk-by\x2duuid.device/start timed out.
GRUB2: Timed out waiting for device (was anciently a swap partition)
Manage Log Messages Under Systemd Using Journalctl
I needed to capture an error / stack trace (
list of the method calls that the application was in the middle of when an Exception was thrown – explanation from stackoverflow) from a log file to another file for attaching to a bug tracker
Used this answer from unix.stackexchange that proposed using a shell function that used sed that you could enter the from,to line numbers, log file and output file as shown
In the user’s .bashrc file add:
$ tail .bashrc
#Printing section of a Line From A logFile
sed -n -e "$1p" "$2"
Useage: $ printLine 2000,2250 /var/log/tomcat/catalina.out > java_error.txt
Easy way to copy lines from one file to another
What is a stack trace, and how can I use it to debug my application errors?
I downloaded a presentation where the video file and audio files were separate and I needed to merge the video and audio into one file.
Used the solution posted on super user
on this link:
Merging video and audio, with audio re-encoding:
@whiscardz ~ $ ffmpeg -i video.mp4 -i audio.wav -c:v copy -c:a aac -strict experimental output.mp4
Copying the audio without re-encoding:
@whiscardz ~ $ ffmpeg -i video.mp4 -i audio.wav -c copy output.mkv
How to merge audio and video file in ffmpeg