Posted on Leave a comment

WhatPulse on Ubuntu

WhatPulse on Linux

Installing WhatPulse on Ubuntu (or on any other Linux distribution) is not as easy as installing it on Windows or Mac. Here is the procedure I use every time I have to install it.
[block id=”responsive-ads-inside-posts”]

First you need to download the binaries from the official WhatPulse site (http://whatpulse.org/downloads/) and extract the files into a folder. You will have to install the dependencies using the terminal. These dependencies are required to allow WhatPulse gather different stats (i.e. network stats):

You will need to run the the setup-input-permissions.sh script and follow the instructions:

[block id=”google-ads”]
Make sure you add your username when requested and select Yes for other questions. Press Ctrl + C to finish the installation.

What to do if network traffic is not captured

In case your network stats are not captured (network traffic is monitored but not captured) you will be asked if you want to fix it automatically. If you still have issues, then you need to tun the following command (CD to the executable directory in a terminal):

Now restart WhatPulse and everything should be OK.

 

 

Posted on 1 Comment

Evernote on Linux Mint or Ubuntu

Evernote Logo

 

Even if there is no official client available for Linux, you can still install Evernote via Wine. If you don’t have Wine installed already just paste the commands below in a terminal.

Install Wine

Once Wine is installed you can install Evernote. First you have to download it from Evernote website: https://evernote.com/download/get.php?file=Win

Install Evernote on Linux Mint 

Once the installtion file has been downloaded paste the command below in a terminal:

The download location and file name will be different, so make sure you change /home/nicu/Downloads/Evernote_5.8.13.8152.exe accordingly.

Follow the installation wizard and you are ready to go.

 
Posted on 7 Comments

Install OneDrive on Ubuntu based distros

If you are migrating from Windows and you used OneDrive to sync your files, like I did, a wise step is to install OneDrive-D which is a Microsoft OneDrive desktop client / daemon on Linux, written in Python 3.

Install OneDrive on Ubuntu

First you need to download the zip file from github. Extract the zip file and run the install.sh script inside onedrive-d folder. Run the following command in a Terminal:

I am using Elementary Freya and I got an error:  

Cannot Install OneDrive-D

In case you get the same error (./inst: command not found) drag and drop install.sh in your terminal and type sudo ./install.sh

Run install.sh for OneDrive-D

After OneDrive-D is successfully installed run command onedrive-pref to setup the application. 

 There are 4 steps in the configuration process, but the most import is the first one, to authorize sign in with your OneDrive account. You need to click on the URL provided and after you authenticate with your OneDrive credentials you will end up at an empty page – just copy the URL and paste it in your Terminal.

Authorize sign in with your OneDrive account

For next steps you can select n and use default settings

Finish installing OneDrive on Ubuntu

After finishing the OneDrive configuration run command onedrive-d start to start syncing your OneDrive files.

 Notes: 

  1. Files and folders deleted locally can be found in Trash and files and folders deleted remotely can be found in OneDrive recycle bin.
  2. Files that are overwritten remotely may not be synced, because OneDrive-D performs overwriting only when it is 100% sure that one file is older than its counterpart.
  3. Copying and moving files are treated as uploading and when you copy/ or move a folder OneDrive-D will upload the entire folder.

I still need to figure out how to enable it in top panel. On Elementary Freya I have the same issue with Dropbox, even though both apps work and sync as they should.

Posted on 7 Comments

How to create bootable Windows USB in Linux Mint

WinUSB - create Bootable Windows USB

If you need to create a bootable Linux USB stick from Linux Mint it is very easy, just right click on the image file and select Make Bootable USB Stick option. However, if you need a bootable Windows USB you cannot use the same method because it will not work. So, you need another tool for this: WinUSB.

WinUSB allows you to create bootable Windows USB stick from an ISO image or a DVD – Windows 7 or Windows 8.

WinUSB - create Bootable Windows USB

Installing WinUSB on Linux Mint 15

WinUSB package includes two programs:

  • WinUSB-gui: a graphical interface which is very easy to use.
  • winusb: the command line tool.

To install WinUSB open your terminal and paste the following commands:

Open WinUSB and select the source (from a disk image – ISO, or from a CD/DVD) then select the target device (if you have several USB sticks connected they are automatically recognized and displayed in the Target device section). Click Install and wait for the image file to be written.

Now you will be able to create bootable Windows USB in Linux Mint. This also works for Ubuntu users.

Installing WinUSB in Ubuntu 14.04

First you need to download the files:

For 32-bit:

For 64-bit:

Then run the following command to install it:

Fix dependencies errors:

Posted on 1 Comment

Thunderbird “Copying message to Sent folder” hangs forever

Thunderbird

I am using Thunderbird 31.5.0 on Linux Mint 17.1 Rebecca. I prefer using IMAP over POP3 to have my emails synced with my Android email client (Outlook Preview). Everything works OK and all my emails and folders have been imported/synced correctly with the server. However, every time I send an email I get the following message which hangs forever, even though the message is sent correctly: 

Copying message to Sent Folder

If I click Cancel I get the following message and if select to retry i get the initial message again.

There was an error saving the message to Sent

Solution to fix Copying message to Sent folder 

Thunderbird is trying to save a copy of the sent message in the Sent folder which is located in the root of the account folders. If this folder doesn’t exist then Thunderbird will try to create the folder and if it cannot be created then you get the “Copying message to Sent folder”  message which hangs  until you click Cancel. Since I have an IMAP account, the Sent folder exists so I get stuck with that message.

The solution is very easy and you just need to disable saving the sent messages. There is no need to keep a copy of the sent messages since I am using IMAP – the Sent folder is automatically synced with the server: 

  • Go to Preferences > Account Settings

Thunderbird Preferences

  • Select Copies & Folders and uncheck the Place a copy in option

Thunderbird Copies & Folders

And that’s it, now the “Copying message to Sent folder” will not be displayed anymore.

Posted on 2 Comments

How To Install Silverlight on Ubuntu 14.04

This is actually an alternative to Silverlight, called Pipelight. It works for many Linux distros and browsers: Firefox, Chrome, Midori, Opera etc.Pipelight Distro Support

So, in order to install Silverlight on Ubuntu you need to add Pipelight to repository and install it. Open a terminal window and paste the following commands:

After installation you must enable Silverlight plugin by executing the following command in your terminal:

To disable Silverlight plugin run:

 

Posted on 12 Comments

ThinkPad Fingerprint In Ubuntu 14.04

ThinkPad Fingerprint In Ubuntu

ThinkPad Fingerprint In Ubuntu or Linux Mint

Recently I switched to Ubuntu 14.04 trying to give Linux another chance (previously I tried Linux Mint which I find  an excellent distro for users migrating from Windows) and after finishing setting up my ThinkPad W520 I wanted to enable the fingerprint reader.

I found multiple solutions describing how to enable the fingerprint reader using, one of them was using fPrint but it wasn’t so “elegant” as Fingerprint GUI.

[block id=”responsive-ads-inside-posts”]

Installing ThinkPad Fingerprint In Ubuntu

To enable the ThinkPad fingerprint in Ubuntu 14.04 you will need to add the following PPA and install Fingerprint GUI: ppa:fingerprint/fingerprint Continue reading ThinkPad Fingerprint In Ubuntu 14.04

Posted on Leave a comment

Linux Terminal Commands

Linux Commands

I recently started to use Linux Mint 11 (Katya) on my laptop. I am a newbie in Linux and I found Mint is probably the most easiest Linux distro – it’s out-of-the-box, everything worked from the beginning (especially playing YouTube videos) and the software manager is one of the best, in my opinion. You just enter the program you want to install and it will do the rest – with one click you have the program installed.

So far I’ve tried Ubuntu and Fedora (different versions) but none compares with Mint – an excellent distro for beginners.

The Linux Mint Community is a great place to start learning, lots of tutorials and very helpful people – below is a list with terminal commands:

System Info

date – Show the current date and time
cal – Show this month’s calendar
uptime – Show current uptime
w – Display who is online
whoami – Who you are logged in as
finger user – Display information about user
uname -a – Show kernel information
cat /proc/cpuinfo – CPU information
cat /proc/meminfo – Memory information
df – Show disk usage
du – Show directory space usage
free – Show memory and swap usage

Keyboard Shortcuts

Enter – Run the command
Up Arrow – Show the previous command
Ctrl + R – Allows you to type a part of the command you’re looking for and finds it

Ctrl + Z – Stops the current command, resume with fg in the foreground or bg in the background
Ctrl + C – Halts the current command, cancel the current operation and/or start with a fresh new line
Ctrl + L – Clear the screen

command | less – Allows the scrolling of the bash command window using Shift + Up Arrow and Shift + Down Arrow
!! – Repeats the last command
command !$ – Repeats the last argument of the previous command
Esc + . (a period) – Insert the last argument of the previous command on the fly, which enables you to edit it before executing the command

Ctrl + A – Return to the start of the command you’re typing
Ctrl + E – Go to the end of the command you’re typing
Ctrl + U – Cut everything before the cursor to a special clipboard, erases the whole line
Ctrl + K – Cut everything after the cursor to a special clipboard
Ctrl + Y – Paste from the special clipboard that Ctrl + U and Ctrl + K save their data to
Ctrl + T – Swap the two characters before the cursor (you can actually use this to transport a character from the left to the right, try it!)
Ctrl + W – Delete the word / argument left of the cursor in the current line

Ctrl + D – Log out of current session, similar to exit

Learn the Commands

apropos subject – List manual pages for subject
man -k keyword – Display man pages containing keyword
man command – Show the manual for command
man -t man | ps2pdf – > man.pdf  – Make a pdf of a manual page
which command – Show full path name of command
time command – See how long a command takes

whereis app – Show possible locations of app
which app – Show which app will be run by default; it shows the full path

Searching

grep pattern files – Search for pattern in files
grep -r pattern dir – Search recursively for pattern in dir
command | grep pattern – Search for pattern in the output of command
locate file – Find all instances of file
find / -name filename – Starting with the root directory, look for the file called filename
find / -name ”*filename*” – Starting with the root directory, look for the file containing the stringfilename
locate filename – Find a file called filename using the locate command; this assumes you have already used the command updatedb (see next)
updatedb – Create or update the database of files on all file systems attached to the Linux root directory
which filename – Show the subdirectory containing the executable file  called filename
grep TextStringToFind /dir – Starting with the directory called dir, look for and list all files containingTextStringToFind

File Permissions

chmod octal file – Change the permissions of file to octal, which can be found separately for user, group, and world by adding: 4 – read (r), 2 – write (w), 1 – execute (x)
Examples:
chmod 777 – read, write, execute for all
chmod 755 – rwx for owner, rx for group and world
For more options, see man chmod.

File Commands

ls – Directory listing
ls -l – List files in current directory using long format
ls -laC – List all files in current directory in long format and display in columns
ls -F – List files in current directory and indicate the file type
ls -al – Formatted listing with hidden files

cd dir – Change directory to dir
cd – Change to home
mkdir dir – Create a directory dir
pwd – Show current directory

rm name – Remove a file or directory called name
rm -r dir – Delete directory dir
rm -f file – Force remove file
rm -rf dir – Force remove an entire directory dir and all it’s included files and subdirectories (use with extreme caution)

cp file1 file2 – Copy file1 to file2
cp -r dir1 dir2 – Copy dir1 to dir2; create dir2 if it doesn’t exist
cp file /home/dirname – Copy the file called filename to the /home/dirname directory

mv file /home/dirname – Move the file called filename to the /home/dirname directory
mv file1 file2 – Rename or move file1 to file2; if file2 is an existing directory, moves file1 into directoryfile2

ln -s file link – Create symbolic link link to file
touch file – Create or update file
cat > file – Places standard input into file
cat file – Display the file called file

more file – Display the file called file one page at a time, proceed to next page using the spacebar
head file – Output the first 10 lines of file
head -20 file – Display the first 20 lines of the file called file
tail file – Output the last 10 lines of file
tail -20 file – Display the last 20 lines of the file called file
tail -f file – Output the contents of file as it grows, starting with the last 10 lines

Compression

tar cf file.tar files– Create a tar named file.tar containing files
tar xf file.tar – Extract the files from file.tar

tar czf file.tar.gz files – Create a tar with Gzip compression
tar xzf file.tar.gz – Extract a tar using Gzip

tar cjf file.tar.bz2 – Create a tar with Bzip2 compression
tar xjf file.tar.bz2 – Extract a tar using Bzip2

gzip file – Compresses file and renames it to file.gz
gzip -d file.gz – Decompresses file.gz back to file

Printing

/etc/rc.d/init.d/lpd start – Start the print daemon
/etc/rc.d/init.d/lpd stop – Stop the print daemon
/etc/rc.d/init.d/lpd status – Display status of the print daemon
lpq – Display jobs in print queue
lprm – Remove jobs from queue
lpr – Print a file
lpc – Printer control tool
man subject | lpr – Print the manual page called subject as plain text
man -t subject | lpr – Print the manual page called subject as Postscript output
printtool – Start X printer setup interface

Network

ifconfig – List IP addresses for all devices on the local machine
ping host – Ping host and output results
whois domain – Get whois information for domain
dig domain – Get DNS information for domain
dig -x host – Reverse lookup host
wget file – Download file
wget -c file – Continue a stopped download

SSH

ssh user@host – Connect to host as user
ssh -p port user@host – Connect to host on port port as user
ssh-copy-id user@host – Add your key to host for user to enable a keyed or passwordless login

User Administration

adduser accountname – Create a new user call accountname
passwd accountname – Give accountname a new password
su – Log in as superuser from current login
exit – Stop being superuser and revert to normal user

Process Management

ps – Display your currently active processes
top – Display all running processes
kill pid – Kill process id pid
killall proc – Kill all processes named proc (use with extreme caution)
bg – Lists stopped or background jobs; resume a stopped job in the background
fg – Brings the most recent job to foreground
fg n – Brings job n to the foreground

Installation from source

./configure
make
make install
dpkg -i pkg.deb – install a DEB package (Debian / Ubuntu / Linux Mint)
rpm -Uvh pkg.rpm – install a RPM package (Red Hat / Fedora)

Stopping & Starting

shutdown -h now – Shutdown the system now and do not reboot
halt – Stop all processes – same as above
shutdown -r 5 – Shutdown the system in 5 minutes and reboot
shutdown -r now – Shutdown the system now and reboot
reboot – Stop all processes and then reboot – same as above
startx – Start the X system