Showing posts with label Penguin School. Show all posts
Showing posts with label Penguin School. Show all posts

Monday, 8 October 2018

Mounting your Google Drive as a file system on OpenSUSE Linux (42.3)


Mounting your Google Drive as a file system on OpenSUSE Linux (42.3)

I know I've talked about this in the past and some of you have been using it for a long time as well, but I never really felt like it was the best solution. I kept hoping something better would come along, or Google themselves would stop being dicks and release a proper, official Google Drive Client for Linux. Alas neither has happened and the OCAML solution isn't that bad actually. So here it is.
If you're not using OpenSUSE, oh well, you'll have to figure out the install part for yourself, but the setting up and running should be similar.

For OpenSUSE 42.3 users, just do as follows, for users of other OpenSUSE releases, you can go to the repo link in your browser, hit up (parent dir) and move into the folder for your version and copy the repo link and substitute that into the following.

Step 1 - Open a root shell
Step 2 - type
zypper ar https://download.opensuse.org/repositories/home:/inescid:/grid/openSUSE_Leap_42.3/home:inescid:grid.repo
Step 3 - type
zypper in google-drive-ocamlfuse
Answer "a" when asked about trusting the repo.
Step 4 - leave root shell, go to regular user shell
Step 5 - Make a directory to mount your Google Drive on, eg.
mkdir ~/G-Drive
Step 6 - Run the application
google-drive-ocamlfuse
Step 7 - Authorize the application
step 6 should have caused a browser window to pop up and taken you to your Google Login page. Login, pick your google account with the G-Drive you want to mount, and follow the directions to allow the ocaml client to access your G-Drive.
Step 8 - Be patient.
Wait until the following message appears in the terminal window under the command you typed in step 6.
"Access token retrieved correctly."
Step 9 - Mount your G Drive by typing
google-drive-ocamlfuse ~/G-Drive
Step 10 - Test / Enjoy
Either type ls ~/G-Drive or open it in your file manager

Monday, 24 September 2018

Linux from the command line | Linux for sysadmins -- analyzing net traffic with TCPflow

Linux from the command line | Linux for sysadmins -- analyzing net traffic with TCPflow

FTA:
TCPflow is a free, open source, powerful command line based tool for analyzing network traffic on Unix-like systems such as Linux. It captures data received or transferred over TCP connections, and stores it in a file for later analysis, in a useful format that allows for protocol analysis and debugging...
https://www.tecmint.com/tcpflow-analyze-debug-network-traffic-in-linux/

Tuesday, 18 September 2018

Linux from the command line | Linux tips & tricks - powerful document conversion with Pandoc

Linux from the command line | Linux tips & tricks - powerful document conversion with Pandoc

We've all been there. You like application A, but some place you deal with, IE Work, school, etc., only accepts documents in application B's format.

Document conversion to the rescue.
https://opensource.com/article/18/9/intro-pandoc

Sunday, 22 July 2018

Manage your torrents with Linux and Deluge

Manage your torrents with Linux and Deluge

Who want's to leave their desktop PC logged in and running all day for a Torrent? What if you want to play a game or need to reboot?
Solution: Setup a Deluge server and let it deal with these things.
https://linuxconfig.org/set-up-a-headless-deluge-server-on-linux

Saturday, 21 July 2018

Linux tips & tricks -- monitoring hard drive temperature with hddtemp

Linux tips & tricks -- monitoring hard drive temperature with hddtemp
https://www.cyberciti.biz/tips/howto-monitor-hard-drive-temperature.html

Linux from the command line -- Take control of your files with chattr

Linux from the command line -- Take control of your files with chattr

File attributes are one of the more powerful features of Unix like operating systems like Linux. Learning to use them is an important skill.
https://www.howtoforge.com/linux-chattr-command/

Saturday, 7 July 2018

Linux from the command line | Learning Linux -- The basename command

Linux from the command line | Learning Linux -- The basename command

FTA:
Sometimes, while working on the command line (especially when dealing with shell scripts), you might be interested in only the filename, but what's available to you is the complete path of the file. So, the requirement is to strip the directory component of the path. You'll be glad to know there exists a command - basename - that does this job.
https://www.howtoforge.com/linux-basename-command/

Linux from the command line -- Learning VIM by playing games

Linux from the command line -- Learning VIM by playing games

You're not a real sysadmin until you've mastered Vim of course ;')
But it doesn't have to be painful. Learn by playing a game.
https://www.tecmint.com/learn-vi-commands-with-pacvim-game/#

Learning Linux -- Using dd to copy drives and partitions without destroying your data

Learning Linux -- Using dd to copy drives and partitions without destroying your data
https://opensource.com/article/18/7/how-use-dd-linux

Tuesday, 26 June 2018

Linux from the command line | Linux for sysadmins -- Automating with SSH

Linux from the command line | Linux for sysadmins -- Automating with SSH

It's more than just a remote terminal tool, ssh has a lot of other powerful features for Linux users and sysadmins.

Once you get things in this article worked out, look up and play with ssh -Y

https://www.linuxjournal.com/content/easy-ssh-automation

Linux from the command line -- Checking disk space

Linux from the command line -- Checking disk space

One note here, with df you'll probably want to use "df -h" and not "df -H" as the latter will use the stupid damned si units nonsense where 1k=1000 bytes instead of a proper 1024.
Other than that, carry on.
https://www.linux.com/learn/intro-to-linux/2018/6how-check-disk-space-linux-command-line

Friday, 22 June 2018

Linux for sysadmins -- Removing Docker images, containers, and volumes

Linux for sysadmins -- Removing Docker images, containers, and volumes

So you're done with that Docker container. It served you well, but you don't need it any more. Now what?
https://www.tecmint.com/remove-docker-images-containers-and-volumes/#

Linux from the command line -- using the netstat command

Linux from the command line -- using the netstat command

What's going on with your Linux box's network?
https://www.howtoforge.com/linux-netstat-command/

Wednesday, 20 June 2018

Linux for sysadmins -- checking user groups

Linux for sysadmins -- checking user groups

The Linux user and group systems allow powerful, fine-grained access control to system applications, files, and resources. It's important to know how to list and manage user and group membership.

As an example, to use VirtualBox on Linux, users must be a member of the vboxusers group.
Other applications require a user to be a member of the group dialout.
https://www.2daygeek.com/how-to-check-which-groups-a-user-belongs-to-on-linux/#

Linux from the command line -- manipulating text file formatting with expand and unexpand

Linux from the command line -- manipulating text file formatting with expand and unexpand


The link is for the expand command. Find info on it's counterpart, unexpand, at this link: https://www.howtoforge.com/linux-unexpand-command/
https://www.howtoforge.com/linux-expand-command/

Linux for sysadmins -- Processes and process management for Linux

Linux for sysadmins -- Processes and process management for Linux
https://www.tecmint.com/linux-process-management/

Linux tips & tricks -- Managing multiple monitors with umonitor

Linux tips & tricks -- Managing multiple monitors with umonitor

The umonitor app basically lets you backup and restore multiple display configurations. An ability which you can use to switch between multiple monitors easily.
https://linoxide.com/linux-how-to/umonitor-update-positions-resolutions-monitors/

Linux for sysadmins -- Backing up and restoring MySQL databases with Mysqldump

Linux for sysadmins -- Backing up and restoring MySQL databases with Mysqldump

Backups are for more than just file systems, your databases need to be backed up too..

Monday, 18 June 2018

Linux from the command line -- Setting up Passwordless SSH Logins

Linux from the command line -- Setting up Passwordless SSH Logins

This is an important thing to know how to do and it makes your life much easier too. Once you learn this, you can expand this technique to use with less PC like devices. For example the ConnectBot app for your phone.