User Tools

Site Tools


blog:fall2015:rsanche1:start

Raymond's Fall 2015 Opus

MY OPTIONAL SUBTITLE

Introduction

My name is Raymond, and I am a person. To be more precise, I am a Homo sapien. And to be pedantic, I am a Homo sapien sapien.

I am a computer science major with an interest in computer science. Yeah…

Sept 19th, 2015

cat needs input. The pipe (|) is magic.

cat file|more cat file|less

|less is more, and Iceland is green.

output|input

grep -for text files

grep ' ' and grep '[ ]'

(<,>) output redirection

“ half quotes -variable expansion ' Full quotes -literal ` back tick -command expansion

$ variable access

Wildcards * 0 or more ? 1 of anything [] 1 of enclosed -character class [^ ] not 1 of enclosed -inverted character class

ls ??|wc -c Returns number of two character files in folder

alias name command

meme=“Long cat” alias cm=“echo $meme” echo meme Long cat

Sept 22, 2015

More on Wild Cards

ls [aeiou]?|wc -c returns two character file which begins with aeiou

ls [^aeiou]*[aeiou]*[aeiou]|wc -w returns number of files which contain aeiou, but the first and last characters are not aeiou.

starts with anything *.conf ends in .config starts with .config .config* end with anything

Sept 24, 2015

VI text editor introduction

h-left j-down k-up l-left

m- move right by word M- move right by space b- move left by word B- move left by space

u- undo ctrl+r- redo

i- enter text mode esc- enter command mode

Sept 26, 2015

Downloaded Ubuntu onto a flash drive last week in the hopes that I could boot from such and play around with it. I use to run Ubuntu -The Lucid Lynx, then the Hardy Heron- and decided to try the Trusty Tahr. Booting from the flash became a pain, so I downloaded VirtualBox so I can run numerous OS's inside my current OS. It's fantastic. I can now run Ubuntu and Debian inside windows. I need to reinstall Debian, as it's not functioning right now, but the future looks bright.

Oct 15, 2015

Remodeled my room so I have more space to play with my computers. I was able to pull out my Raspberry Pi and boot Raspian -the Debian OS, on her. I am now in the process of editing bash as I enjoy it and otherwise exploring the system as the root user. To note: Raspbian is substantially more GUI-ed than the Debian we utilize in The Best Class We've Ever Taken.

Oct 16, 2015

Yippi!!!

I began Vim Adventures. I cannot orient myself properly with hjkl directionally, so I'm using the directional keys. It has otherwise been enjoyably informative.

I have also explored Raspbian and made extensive use of VI and the file command to view files. It seems as though there are many unnecessary files I'll need to expunge, once I'm sure that they're not compulsory.

Oct 18, 2015

Experimenting with booting Ubuntu from a flash drive to view files on locked user accounts on a PC. Fun stuff.

The root user on Raspbian is not password protected, so I am in the process of figuring that out. I've also been exploring the interwebs with midori, which is a decent alternative to Chrome for browsing, and is exceptional compared to such in terms of security.

Debian still won't boot properly on from my VirtualBox, so I will be reinstalling it soon.

October 26, 2015

cat file > file2

dd if= file of=file2 bs=1 count =1

pscp - windows scp -unix

scp file destination

November 2, 2015

The beginning of November.

Nearing the last of the semester.

Spoke to the professor about how one goes about running unix and linux as an administrator and was advised to sudo bash, which has been working quite well.

I still need to reinstall Debian on my Virtualbox and figure out running such as the administrator.

November 8, 2015

I am scouring the interwebs to find a good tutorial on bash scripting to supplement what we've done in class.

I've found one which implements the date, which may be useful for the upcoming project.

I also found a great one on Lynda.com, but she wants me to pay. Aint nobody got time for that.

November 10, 2015

Worked through a tutorial for bash scripting and created a script which copies a file and appends the current date and time to the end of the file name.

My habit of creating numerous backup files while working on projects will be simpler now.

The script is aptly named backdate, as in backup-date.

update:

I was only able to use the script I made within the directory in which it was located.

To resolve this and make it world usable I tried to create a bin directory, which is what the path is set to.

I accidentally named the directory .bin and it didn't work, so I renamed it correctly and can now utilise the backdate script for all of my files.

November 30, 2015

I have done absolutely nothing over break.

Well, I haven't done anything productive, that is.

Actually, “productive” could be a subjective word.

I didn't do anything scholastically productive. That seems accurate.

The only thing I accomplished was re-watching seasons 1-4 of The Game of Thrones then finish season five. It was amazing. The only issue I had with season five is that they decided to place “previously on” portions before each episode, which I loath, though not as much as “Next on.” Who the hell is watching episode five of season five of an epoch without having seen the previous episodes? It's nonsense.

Binge watching the series also made me realize that there aren't many Game of Thrones memes, and such pondering is loosely related to The Best Class Ever, so perchance I did manage something scholastic, and should certainly get points for this Opus entry.

new

Portfolio

unix

Reflections on project arc0

I found the pony. I named him Steve.

I made extensive use of the tac and rev commands (for hours). The cat command was utilized with the path redirection and append commands to place Steve into and appropriate txt file wherein he was then compressed using the tar command.

tar took some tinkering with, and I managed to find help from someone's opus posted last semester who encountered the same difficulty as I. I was missing part of the command, -c, to create the file.

I then had some difficulty with the .zip file, which the professor aided me with. I was again missing a command, -f, which was to follow -c in the creation of the file.

Steve is now in a better place, compressed, zipped and submitted to the professor, who I assume has many ^s for him.

Reflections of project cus0

Editing config files

prompt color enabled and set to green with PS1. Somehow it made all of my text green, which is cool, though I will endeavor to make it do what I want.

Enabled alias ll='ls -al' which returns a long list of current directory files with ll command

set message state to n by default

#set view with nano, but only after forgetting to do so.

Reflections on Project pbx0

Using the file utility one can find file types. Once the file type is discovered one will be able to find the tools required to work with it.

Some files were uuencoded and needed to be uudecoded. I'm still not sure what occurs when they are decoded, though I know that the result is another file appearing.

ASCII text file.

This is a simple text file. It contains ASCII text.

gzip compressed data, was “file.txt”, last modified: Tue…, From Unix

ASCII txt

gzip compressed data, was “file.txt”, last modified: Tue…, max speed, from Unix

Reflections on Project pbx1

The return of the puzzle box.

I found more uuencoded files to uudecode and made use of the cp and append to make a bat.

I encountered some passwords, the final of which was perturbing -making blank space at the end of the password is a jerk move.

I edited the C code provided to convert octal and compiled it to get said password and make the mentioned bat.

Reflections on Project wpa0

Web Page Adventure

I am creating a Web Page Adventure called Welcome To the Internet, I'll Be your Guide, which will lead one through some popular cultural aspects of the internet. Such mostly includes cats.

As one traverses through the adventure they may also encounter some other less positive aspects of note from the internet. While one can not truly experience the internet with a filter, I managed to keep explicit content out.

I ran into some issues embedding videos. Upon viewing embedded videos with the developer tools in Chrome I was able to find the information i needed and use ?autoplay=1 to autoplay videos when viewers enter the page.

Making the pages was tedious and I'll likely not do such again.

Reflections on project udr0

Data recovery.

This took some time to figure out -it was submitted late, though was quite enlightening.

Explored hex editing with hexedit to view data in a file.

Used bc to convert hex and octal into base ten to make use of the dd command, which only used base ten.

Made extensive use of the dd command to extract and copy data from the corrupt file.

I smell pork-chops cooking and it's making me super hungry.

Used netpbm to edit the image data to find a taco cat, which is a palindrome.

Reflections on project sfp0

Scripting for fun or profit was not profitable, though after some frustration was found to be fun.

Because of my lack of confidence with bash scripting I waited until the day the project was due to complete it, though such time was ample.

For the project I made extensive use of if statments, variables and arithmatic.

I also used source to pull variables from a file. Becuase source does not have a man page one must use “help source” to find information on it.

I had issues comparing certain variables and had to use the -gt, -ge, -lt commands to overcome such.

blog/fall2015/rsanche1/start.txt · Last modified: 2015/08/27 09:44 by 127.0.0.1